Skip to content

Commit 7956ee3

Browse files
authored
Merge pull request #40 from moumenz/master
Missing closing parenthesis causing artisan command error
2 parents 4b90e4f + 64572d2 commit 7956ee3

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

src/Commands/CreateLanguageCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use CrestApps\CodeGenerator\Support\ViewLabelsGenerator;
1111
use CrestApps\CodeGenerator\Traits\CommonCommand;
1212
use Illuminate\Console\Command;
13+
use Exception;
1314

1415
class CreateLanguageCommand extends Command
1516
{

src/DatabaseParsers/MysqlParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected function getDataType($type, $columnType)
331331
{
332332
$map = Config::dataTypeMap();
333333

334-
if (in_array($columnType, ['bit', 'tinyint(1)']) {
334+
if (in_array($columnType, ['bit', 'tinyint(1)'])) {
335335
return 'boolean';
336336
}
337337

src/Support/ResourceMapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use CrestApps\CodeGenerator\Models\Resource;
66
use CrestApps\CodeGenerator\Support\Helpers;
7-
use File;
87
use Illuminate\Console\Command;
8+
use File;
9+
use Exception;
910

1011
class ResourceMapper
1112
{

templates/default-collective/controller.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace [% namespace %];
44

55
[% use_command_placeholder %]
6+
use Exception;
67

78
class [% controller_name %] [% controller_extends %]
89
{
@@ -137,4 +138,4 @@ class [% controller_name %] [% controller_extends %]
137138
[% affirm_method %]
138139
[% get_data_method %]
139140
[% upload_method %]
140-
}
141+
}

templates/default/controller.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace [% namespace %];
44

55
[% use_command_placeholder %]
6+
use Exception;
67

78
class [% controller_name %] [% controller_extends %]
89
{
@@ -137,4 +138,4 @@ class [% controller_name %] [% controller_extends %]
137138
[% affirm_method %]
138139
[% get_data_method %]
139140
[% upload_method %]
140-
}
141+
}

0 commit comments

Comments
 (0)