Test Failed
Pull Request — main (#2)
by Stephen
10:45
created
src/Console/Commands/ResourceMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     public function handle()
15 15
     {
16
-        if (! is_string($this->argument('name'))) {
16
+        if (!is_string($this->argument('name'))) {
17 17
             return;
18 18
         }
19 19
 
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
         }
95 95
 
96 96
         foreach (config('api-toolkit.controllers') as $controller) {
97
-            $this->comment("Creating {$controller['name']} for model {$name}");
97
+            $this->comment("Creating {$controller[ 'name' ]} for model {$name}");
98 98
             $this->call('make:controller', [
99
-                'name' => "{$name}\\{$controller['name']}",
100
-                implode(' ', $controller['options']),
99
+                'name' => "{$name}\\{$controller[ 'name' ]}",
100
+                implode(' ', $controller[ 'options' ]),
101 101
             ]);
102 102
         }
103 103
     }
Please login to merge, or discard this patch.