Passed
Push — master ( 3089dd...b3b4c7 )
by Arthur
39:50 queued 30:29
created
src/Foundation/Generator/Commands/SeedMakeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     protected function getArguments()
39 39
     {
40 40
         return [
41
-            ['name', InputArgument::REQUIRED, 'The name of seeder will be created.'],
42
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
41
+            [ 'name', InputArgument::REQUIRED, 'The name of seeder will be created.' ],
42
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
43 43
         ];
44 44
     }
45 45
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function getTemplateContents()
67 67
     {
68
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
68
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
69 69
 
70 70
         return (new Stub('/seeder.stub', [
71 71
             'NAME' => $this->getSeederName(),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $this->clearCache();
84 84
 
85
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
85
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
86 86
 
87 87
         $seederPath = GenerateConfigReader::read('seeder');
88 88
 
@@ -108,6 +108,6 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function getDefaultNamespace() : string
110 110
     {
111
-        return $this->laravel['modules']->config('paths.generator.seeder.path', 'Database/Seeders');
111
+        return $this->laravel[ 'modules' ]->config('paths.generator.seeder.path', 'Database/Seeders');
112 112
     }
113 113
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/ResourceMakeCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function getDefaultNamespace() : string
21 21
     {
22
-        return $this->laravel['modules']->config('paths.generator.resource.path', 'Transformers');
22
+        return $this->laravel[ 'modules' ]->config('paths.generator.resource.path', 'Transformers');
23 23
     }
24 24
 
25 25
     /**
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
     protected function getArguments()
31 31
     {
32 32
         return [
33
-            ['name', InputArgument::REQUIRED, 'The name of the resource class.'],
34
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
33
+            [ 'name', InputArgument::REQUIRED, 'The name of the resource class.' ],
34
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
35 35
         ];
36 36
     }
37 37
 
38 38
     protected function getOptions()
39 39
     {
40 40
         return [
41
-            ['collection', 'c', InputOption::VALUE_NONE, 'Create a resource collection.'],
41
+            [ 'collection', 'c', InputOption::VALUE_NONE, 'Create a resource collection.' ],
42 42
         ];
43 43
     }
44 44
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function getTemplateContents()
49 49
     {
50
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
50
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
51 51
 
52 52
         return (new Stub($this->getStubName(), [
53 53
             'NAMESPACE' => $this->getClassNamespace($module),
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function getDestinationFilePath()
62 62
     {
63
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
63
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
64 64
 
65 65
         $resourcePath = GenerateConfigReader::read('resource');
66 66
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/FactoryMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
 
45 45
     protected function getModelName(): string
46 46
     {
47
-        return once(function () {
48
-            return $this->option('model') ?? $this->anticipate('For what model would you like to generate a factory?', [$this->getModuleName()], $this->getModuleName());
47
+        return once(function() {
48
+            return $this->option('model') ?? $this->anticipate('For what model would you like to generate a factory?', [ $this->getModuleName() ], $this->getModuleName());
49 49
         });
50 50
     }
51 51
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     protected function getOptions()
72 72
     {
73 73
         return [
74
-            ['model', null, InputOption::VALUE_OPTIONAL, 'The Model name for the factory.', null],
74
+            [ 'model', null, InputOption::VALUE_OPTIONAL, 'The Model name for the factory.', null ],
75 75
         ];
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/CommandMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     protected function getOptions()
60 60
     {
61 61
         return [
62
-            ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned.', null],
62
+            [ 'command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned.', null ],
63 63
         ];
64 64
     }
65 65
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/JobMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,16 +51,16 @@
 block discarded – undo
51 51
     protected function getOptions()
52 52
     {
53 53
         return [
54
-            ['sync', null, InputOption::VALUE_NONE, 'Indicates that job should be synchronous.'],
54
+            [ 'sync', null, InputOption::VALUE_NONE, 'Indicates that job should be synchronous.' ],
55 55
         ];
56 56
     }
57 57
 
58 58
     protected function isJobSynchronous(): bool
59 59
     {
60
-        return once(function () {
60
+        return once(function() {
61 61
             $option = $this->option('sync');
62 62
 
63
-            return app()->runningInConsole() && ! $option ? $this->confirm('Should the job run Synchronously?', false) : $option;
63
+            return app()->runningInConsole() && !$option ? $this->confirm('Should the job run Synchronously?', false) : $option;
64 64
         });
65 65
     }
66 66
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/ProviderMakeCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function getDefaultNamespace() : string
39 39
     {
40
-        return $this->laravel['modules']->config('paths.generator.provider.path', 'Providers');
40
+        return $this->laravel[ 'modules' ]->config('paths.generator.provider.path', 'Providers');
41 41
     }
42 42
 
43 43
     /**
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     protected function getArguments()
49 49
     {
50 50
         return [
51
-            ['name', InputArgument::REQUIRED, 'The service provider name.'],
52
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
51
+            [ 'name', InputArgument::REQUIRED, 'The service provider name.' ],
52
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
53 53
         ];
54 54
     }
55 55
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     protected function getOptions()
62 62
     {
63 63
         return [
64
-            ['master', null, InputOption::VALUE_NONE, 'Indicates the master service provider', null],
64
+            [ 'master', null, InputOption::VALUE_NONE, 'Indicates the master service provider', null ],
65 65
         ];
66 66
     }
67 67
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $stub = $this->option('master') ? 'scaffold/provider' : 'provider';
74 74
 
75 75
         /** @var Module $module */
76
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
76
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
77 77
 
78 78
         return (new Stub('/'.$stub.'.stub', [
79 79
             'NAMESPACE'         => $this->getClassNamespace($module),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             'MODULE'            => $this->getModuleName(),
83 83
             'NAME'              => $this->getFileName(),
84 84
             'STUDLY_NAME'       => $module->getStudlyName(),
85
-            'MODULE_NAMESPACE'  => $this->laravel['modules']->config('namespace'),
85
+            'MODULE_NAMESPACE'  => $this->laravel[ 'modules' ]->config('namespace'),
86 86
             'PATH_VIEWS'        => GenerateConfigReader::read('views')->getPath(),
87 87
             'PATH_LANG'         => GenerateConfigReader::read('lang')->getPath(),
88 88
             'PATH_CONFIG'       => GenerateConfigReader::read('config')->getPath(),
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     protected function getDestinationFilePath()
98 98
     {
99
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
99
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
100 100
 
101 101
         $generatorPath = GenerateConfigReader::read('provider');
102 102
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/MiddlewareMakeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getDefaultNamespace() : string
37 37
     {
38
-        return $this->laravel['modules']->config('paths.generator.filter.path', 'Http/Middleware');
38
+        return $this->laravel[ 'modules' ]->config('paths.generator.filter.path', 'Http/Middleware');
39 39
     }
40 40
 
41 41
     /**
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     protected function getArguments()
47 47
     {
48 48
         return [
49
-            ['name', InputArgument::REQUIRED, 'The name of the command.'],
50
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
49
+            [ 'name', InputArgument::REQUIRED, 'The name of the command.' ],
50
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
51 51
         ];
52 52
     }
53 53
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function getTemplateContents()
58 58
     {
59
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
59
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
60 60
 
61 61
         return (new Stub('/middleware.stub', [
62 62
             'NAMESPACE' => $this->getClassNamespace($module),
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function getDestinationFilePath()
71 71
     {
72
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
72
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
73 73
 
74 74
         $middlewarePath = GenerateConfigReader::read('filter');
75 75
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/TestMakeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function getDefaultNamespace() : string
20 20
     {
21
-        return $this->laravel['modules']->config('paths.generator.test.path', 'Tests');
21
+        return $this->laravel[ 'modules' ]->config('paths.generator.test.path', 'Tests');
22 22
     }
23 23
 
24 24
     /**
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     protected function getArguments()
30 30
     {
31 31
         return [
32
-            ['name', InputArgument::REQUIRED, 'The name of the form request class.'],
33
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
32
+            [ 'name', InputArgument::REQUIRED, 'The name of the form request class.' ],
33
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
34 34
         ];
35 35
     }
36 36
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function getTemplateContents()
41 41
     {
42
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
42
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
43 43
 
44 44
         return (new Stub('/unit-test.stub', [
45 45
             'NAMESPACE' => $this->getClassNamespace($module),
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function getDestinationFilePath()
54 54
     {
55
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
55
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
56 56
 
57 57
         $testPath = GenerateConfigReader::read('test');
58 58
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/NotificationMakeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function getDefaultNamespace() : string
31 31
     {
32
-        return $this->laravel['modules']->config('paths.generator.notifications.path', 'Notifications');
32
+        return $this->laravel[ 'modules' ]->config('paths.generator.notifications.path', 'Notifications');
33 33
     }
34 34
 
35 35
     /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function getTemplateContents()
41 41
     {
42
-        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
42
+        $module = $this->laravel[ 'modules' ]->findOrFail($this->getModuleName());
43 43
 
44 44
         return (new Stub('/notification.stub', [
45 45
             'NAMESPACE' => $this->getClassNamespace($module),
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function getDestinationFilePath()
56 56
     {
57
-        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
57
+        $path = $this->laravel[ 'modules' ]->getModulePath($this->getModuleName());
58 58
 
59 59
         $notificationPath = GenerateConfigReader::read('notifications');
60 60
 
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     protected function getArguments()
78 78
     {
79 79
         return [
80
-            ['name', InputArgument::REQUIRED, 'The name of the notification class.'],
81
-            ['module', InputArgument::OPTIONAL, 'The name of module will be used.'],
80
+            [ 'name', InputArgument::REQUIRED, 'The name of the notification class.' ],
81
+            [ 'module', InputArgument::OPTIONAL, 'The name of module will be used.' ],
82 82
         ];
83 83
     }
84 84
 }
Please login to merge, or discard this patch.