Skip to content

Commit 5365849

Browse files
committed
Fixes a bug in the create migration command. It also adds documentation to new methods
1 parent dae23e6 commit 5365849

21 files changed

+104
-38
lines changed

src/Commands/.php_cs.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"5.6.24","version":"2.1.2:","rules":{"encoding":true,"full_opening_tag":true,"blank_line_after_namespace":true,"braces":true,"class_definition":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_constants":true,"lowercase_keywords":true,"method_argument_space":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":["property"],"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true},"hashes":{"CreateControllerCommand.php":1668938608,"CreateCreateViewCommand.php":131691758,"CreateEditViewCommand.php":1171483022,"CreateFieldsFileCommand.php":1361178139,"CreateFormRequestCommand.php":194589446,"CreateFormViewCommand.php":623765643,"CreateIndexViewCommand.php":-1734787902,"CreateLanguageCommand.php":-1844147042,"CreateLayoutCommand.php":396331127,"CreateMigrationCommand.php":1405553898,"CreateModelCommand.php":271158263,"CreateResourcesCommand.php":-1298335991,"CreateRoutesCommand.php":1075556265,"CreateShowViewCommand.php":2103655095,"CreateViewLayoutCommand.php":213476386,"CreateViewsCommand.php":-986690200}}
1+
{"php":"5.6.24","version":"2.1.2:","rules":{"encoding":true,"full_opening_tag":true,"blank_line_after_namespace":true,"braces":true,"class_definition":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_constants":true,"lowercase_keywords":true,"method_argument_space":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":["property"],"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true},"hashes":{"CreateControllerCommand.php":-1155478208,"CreateCreateViewCommand.php":131691758,"CreateEditViewCommand.php":1171483022,"CreateFieldsFileCommand.php":1361178139,"CreateFormRequestCommand.php":194589446,"CreateFormViewCommand.php":1806670607,"CreateIndexViewCommand.php":-1734787902,"CreateLanguageCommand.php":-1844147042,"CreateLayoutCommand.php":396331127,"CreateMigrationCommand.php":1405553898,"CreateModelCommand.php":271158263,"CreateResourcesCommand.php":-1298335991,"CreateRoutesCommand.php":-1996040625,"CreateShowViewCommand.php":2103655095,"CreateViewLayoutCommand.php":213476386,"CreateViewsCommand.php":651544166}}

src/Commands/CreateControllerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateControllerCommand extends GeneratorCommand
3535
*
3636
* @var string
3737
*/
38-
protected $description = 'Create a new resource controller.';
38+
protected $description = 'Create a new controller.';
3939

4040
/**
4141
* The type of class being generated.

src/Commands/CreateCreateViewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CreateCreateViewCommand extends ViewsCommand
2727
*
2828
* @var string
2929
*/
30-
protected $description = 'Create views for the model.';
30+
protected $description = 'Create a create-views for the model.';
3131

3232
/**
3333
* Create a new command instance.

src/Commands/CreateEditViewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CreateEditViewCommand extends ViewsCommand
2727
*
2828
* @var string
2929
*/
30-
protected $description = 'Edit views for the model.';
30+
protected $description = 'Create an edit-views for the model.';
3131

3232
/**
3333
* Create a new command instance.

src/Commands/CreateFieldsFileCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CreateFieldsFileCommand extends Command
3131
*
3232
* @var string
3333
*/
34-
protected $description = 'Create json fields file from existing database table.';
34+
protected $description = 'Create a json fields file from existing database table.';
3535

3636
/**
3737
* The supported database drivers. lowercase only

src/Commands/CreateFormRequestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CreateFormRequestCommand extends Command
2929
*
3030
* @var string
3131
*/
32-
protected $description = 'Create form-request file for the model.';
32+
protected $description = 'Create a form-request file for the model.';
3333

3434
/**
3535
* Create a new command instance.

src/Commands/CreateFormViewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CreateFormViewCommand extends ViewsCommand
2828
*
2929
* @var string
3030
*/
31-
protected $description = 'From views for the model.';
31+
protected $description = 'Create a from-view for the model.';
3232

3333
/**
3434
* Create a new command instance.

src/Commands/CreateIndexViewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CreateIndexViewCommand extends ViewsCommand
2828
*
2929
* @var string
3030
*/
31-
protected $description = 'Index views for the model.';
31+
protected $description = 'Create an index-views for the model.';
3232

3333
/**
3434
* Create a new command instance.

src/Commands/CreateLanguageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CreateLanguageCommand extends Command
2929
*
3030
* @var string
3131
*/
32-
protected $description = 'Create language file for the model.';
32+
protected $description = 'Create a language file for the model.';
3333

3434
/**
3535
* Create a new command instance.

src/Commands/CreateLayoutCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CreateLayoutCommand extends Command
3030
*
3131
* @var string
3232
*/
33-
protected $description = 'Create layout for the views.';
33+
protected $description = 'Create a layout for the views.';
3434

3535
/**
3636
* Create a new command instance.

0 commit comments

Comments
 (0)