Test Setup Failed
Push — main ( bb9d3d...7f1001 )
by Stephen
129:41 queued 114:43
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
 
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
     protected function makeControllers(string $name): void
86 86
     {
87 87
         foreach (config('api-toolkit.controllers') as $controller) {
88
-            $this->comment("Creating {$controller['name']} for model {$name}");
88
+            $this->comment("Creating {$controller[ 'name' ]} for model {$name}");
89 89
             $this->call('make:controller', [
90
-                'name' => "{$name}\\{$controller['name']}",
91
-                implode(' ', $controller['options']),
90
+                'name' => "{$name}\\{$controller[ 'name' ]}",
91
+                implode(' ', $controller[ 'options' ]),
92 92
             ]);
93 93
         }
94 94
     }
Please login to merge, or discard this patch.