@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 | } |