@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * The entity's model namespace. |
22 | 22 | */ |
23 | - 'namespace' => 'Modelmu', // output: namespace App\Models; |
|
23 | + 'namespace' => 'Modelmu', // output: namespace App\Models; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Set a base model for your entity |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * It purpose is to make a dummy (obviously) data. |
42 | 42 | */ |
43 | 43 | 'dummy' => [ |
44 | - 'should_create' => true, // Whether the dummy seeds has to be created |
|
45 | - 'directory' => 'dummies', // /database/seeds/dummies |
|
44 | + 'should_create' => true, // Whether the dummy seeds has to be created |
|
45 | + 'directory' => 'dummies', // /database/seeds/dummies |
|
46 | 46 | ], |
47 | 47 | ]; |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | protected $pluralizedEntity; |
19 | 19 | protected $requestStoreName; |
20 | 20 | protected $requestUpdateName; |
21 | - protected $additionalSteps = []; |
|
22 | - protected $tableContents = []; |
|
23 | - protected $tableHeaders = ['Artefact', 'Filename and/or Location']; |
|
21 | + protected $additionalSteps = [ ]; |
|
22 | + protected $tableContents = [ ]; |
|
23 | + protected $tableHeaders = [ 'Artefact', 'Filename and/or Location' ]; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * The name and signature of the console command. |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | $this->addToTable('Model', $this->modelNamespace.'/'.$this->modelName); |
192 | 192 | |
193 | - $this->info($this->data['artefact'].' created.'); |
|
193 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
@@ -203,12 +203,12 @@ discard block |
||
203 | 203 | $path = app_path(config('entity.model.custom_base_directory')); |
204 | 204 | $file = $path.'/'.config('entity.model.custom_base_name').'.php'; |
205 | 205 | |
206 | - if (! $this->files->exists($file)) { |
|
206 | + if (!$this->files->exists($file)) { |
|
207 | 207 | $stub = $this->files->get(__DIR__.'/stubs/model.base.custom.stub'); |
208 | 208 | |
209 | 209 | $classNamepace = 'App'; |
210 | 210 | |
211 | - if (! empty(config('entity.model.custom_base_directory'))) { |
|
211 | + if (!empty(config('entity.model.custom_base_directory'))) { |
|
212 | 212 | $classNamepace .= '\\'.config('entity.model.custom_base_directory'); |
213 | 213 | } |
214 | 214 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | $customBaseModelNamepace = ''; |
253 | 253 | |
254 | - if (! empty(config('entity.model.custom_base_directory'))) { |
|
254 | + if (!empty(config('entity.model.custom_base_directory'))) { |
|
255 | 255 | $customBaseModelNamepace = config('entity.model.custom_base_directory').'\\'; |
256 | 256 | } |
257 | 257 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | |
288 | 288 | $this->addToTable('Migration', $migration.'.php'); |
289 | 289 | |
290 | - $this->info($this->data['artefact'].' created.'); |
|
290 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
291 | 291 | } |
292 | 292 | } |
293 | 293 | |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | } |
441 | 441 | |
442 | 442 | if ($this->option('request')) { |
443 | - $this->info($this->data['artefact'].' created.'); |
|
443 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
444 | 444 | } |
445 | 445 | } |
446 | 446 | } |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | } |
524 | 524 | |
525 | 525 | if ($this->option('controller')) { |
526 | - $this->info($this->data['artefact'].' created.'); |
|
526 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
527 | 527 | } |
528 | 528 | } |
529 | 529 | } |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | |
587 | 587 | $this->addToTable('Factory', $factory.'.php'); |
588 | 588 | |
589 | - $this->info($this->data['artefact'].' created.'); |
|
589 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
590 | 590 | } |
591 | 591 | } |
592 | 592 | |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | |
634 | 634 | $this->addToTable('Policy', $policy.'.php'); |
635 | 635 | |
636 | - $this->info($this->data['artefact'].' created.'); |
|
636 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
637 | 637 | |
638 | 638 | array_push($this->additionalSteps, 'Register the Policy'); |
639 | 639 | } |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | |
664 | 664 | $this->addToTable('Table Seeder', $seederTable); |
665 | 665 | |
666 | - $this->info($this->data['artefact'].' created.'); |
|
666 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
667 | 667 | |
668 | 668 | array_push($this->additionalSteps, 'Call the Table Seeder in DatabaseSeeder'); |
669 | 669 | } |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | |
688 | 688 | $this->addToTable('Dummy Seeder', config('entity.dummy.dummies').$seederDummy); |
689 | 689 | |
690 | - $this->info($this->data['artefact'].' created.'); |
|
690 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
691 | 691 | |
692 | 692 | array_push($this->additionalSteps, 'Call the Dummy seeder in DummyDataSeeder'); |
693 | 693 | } |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | */ |
725 | 725 | protected function makeDummyDataSeeder() |
726 | 726 | { |
727 | - if (! $this->files->exists( |
|
727 | + if (!$this->files->exists( |
|
728 | 728 | $path = database_path('seeds/DummyDataSeeder.php') |
729 | 729 | )) { |
730 | 730 | $stub = $this->files->get(__DIR__.'/stubs/dataseeder.dummy.stub'); |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | |
759 | 759 | $this->addToTable('Test: Feature', 'Feature/'.$test.'.php'); |
760 | 760 | |
761 | - $this->info($this->data['artefact'].' created.'); |
|
761 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
762 | 762 | } |
763 | 763 | |
764 | 764 | /** Unit test */ |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | |
777 | 777 | $this->addToTable('Test: Unit', 'Unit/'.$test.'.php'); |
778 | 778 | |
779 | - $this->info($this->data['artefact'].' created.'); |
|
779 | + $this->info($this->data[ 'artefact' ].' created.'); |
|
780 | 780 | } |
781 | 781 | } |
782 | 782 | } |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | */ |
790 | 790 | protected function makeDirectory($path) |
791 | 791 | { |
792 | - if (! $this->files->isDirectory(dirname($path))) { |
|
792 | + if (!$this->files->isDirectory(dirname($path))) { |
|
793 | 793 | $this->files->makeDirectory(dirname($path), 0777, true, true); |
794 | 794 | } |
795 | 795 | } |
@@ -848,8 +848,8 @@ discard block |
||
848 | 848 | */ |
849 | 849 | protected function addToTable($artefact, $location) |
850 | 850 | { |
851 | - $this->data['artefact'] = $artefact; |
|
852 | - $this->data['location'] = $location; |
|
851 | + $this->data[ 'artefact' ] = $artefact; |
|
852 | + $this->data[ 'location' ] = $location; |
|
853 | 853 | |
854 | 854 | array_push($this->tableContents, $this->data); |
855 | 855 | } |