@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; |
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; |
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'make:interfaceclass')] |
|
| 10 | +#[AsCommand(name: 'make:interfaceclass') ] |
|
| 11 | 11 | class MakeInterfaceCommand extends GeneratorCommand |
| 12 | 12 | { |
| 13 | 13 | /** |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $model = $this->option('model'); |
| 54 | 54 | |
| 55 | - if (! Str::startsWith($model, [ |
|
| 55 | + if (!Str::startsWith($model, [ |
|
| 56 | 56 | $this->laravel->getNamespace(), |
| 57 | 57 | 'Illuminate', |
| 58 | 58 | '\\', |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $stub = str_replace( |
| 64 | - ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) |
|
| 64 | + [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) |
|
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | return str_replace( |
| 68 | - ['DummyFullModel', '{{ modelNamespace }}'], trim($model, '\\'), $stub |
|
| 68 | + [ 'DummyFullModel', '{{ modelNamespace }}' ], trim($model, '\\'), $stub |
|
| 69 | 69 | ); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -127,8 +127,8 @@ discard block |
||
| 127 | 127 | protected function getOptions() |
| 128 | 128 | { |
| 129 | 129 | return [ |
| 130 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the interface already exists'], |
|
| 131 | - ['model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this interface'], |
|
| 130 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the interface already exists' ], |
|
| 131 | + [ 'model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this interface' ], |
|
| 132 | 132 | ]; |
| 133 | 133 | } |
| 134 | 134 | } |