@@ -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:trait')] |
|
| 10 | +#[AsCommand(name: 'make:trait') ] |
|
| 11 | 11 | class MakeTraitCommand extends GeneratorCommand |
| 12 | 12 | { |
| 13 | 13 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | protected function getOptions() |
| 97 | 97 | { |
| 98 | 98 | return [ |
| 99 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the trait already exists'], |
|
| 99 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the trait already exists' ], |
|
| 100 | 100 | ]; |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | use Symfony\Component\Console\Attribute\AsCommand; |
| 9 | 9 | use Symfony\Component\Console\Input\InputOption; |
| 10 | 10 | |
| 11 | -#[AsCommand(name: 'make:repository')] |
|
| 11 | +#[AsCommand(name: 'make:repository') ] |
|
| 12 | 12 | class MakeRepositoryCommand extends GeneratorCommand |
| 13 | 13 | { |
| 14 | 14 | /** |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $model = $this->option('model'); |
| 55 | 55 | $interface = $this->option('interface'); |
| 56 | 56 | |
| 57 | - if (! Str::startsWith($model, [ |
|
| 57 | + if (!Str::startsWith($model, [ |
|
| 58 | 58 | $this->laravel->getNamespace(), |
| 59 | 59 | 'Illuminate', |
| 60 | 60 | '\\', |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $model = $this->laravel->getNamespace().'Models\\'.str_replace('/', '\\', $model); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if (! Str::startsWith($interface, [ |
|
| 65 | + if (!Str::startsWith($interface, [ |
|
| 66 | 66 | $this->laravel->getNamespace(), |
| 67 | 67 | 'Illuminate', |
| 68 | 68 | '\\', |
@@ -71,19 +71,19 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | $stub = str_replace( |
| 74 | - ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) |
|
| 74 | + [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) |
|
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | 77 | $stub = str_replace( |
| 78 | - ['DummyFullModel', '{{ modelNamespace }}'], trim($model, '\\'), $stub |
|
| 78 | + [ 'DummyFullModel', '{{ modelNamespace }}' ], trim($model, '\\'), $stub |
|
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $stub = str_replace( |
| 82 | - ['DummyInterface', '{{ interface }}'], class_basename($interface), $stub |
|
| 82 | + [ 'DummyInterface', '{{ interface }}' ], class_basename($interface), $stub |
|
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | return str_replace( |
| 86 | - ['DummyFullInterface', '{{ interfaceNamespace }}'], trim($interface, '\\'), $stub |
|
| 86 | + [ 'DummyFullInterface', '{{ interfaceNamespace }}' ], trim($interface, '\\'), $stub |
|
| 87 | 87 | ); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -141,9 +141,9 @@ discard block |
||
| 141 | 141 | protected function getOptions() |
| 142 | 142 | { |
| 143 | 143 | return [ |
| 144 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the repository already exists'], |
|
| 145 | - ['model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this repository'], |
|
| 146 | - ['interface', 'i', InputOption::VALUE_REQUIRED, 'Create an interface namespace for this repository'], |
|
| 144 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the repository already exists' ], |
|
| 145 | + [ 'model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this repository' ], |
|
| 146 | + [ 'interface', 'i', InputOption::VALUE_REQUIRED, 'Create an interface namespace for this repository' ], |
|
| 147 | 147 | ]; |
| 148 | 148 | } |
| 149 | 149 | |
@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | $path = $this->getPath($name); |
| 183 | 183 | |
| 184 | - if ((! $this->hasOption('force') || |
|
| 185 | - ! $this->option('force')) && |
|
| 184 | + if ((!$this->hasOption('force') || |
|
| 185 | + !$this->option('force')) && |
|
| 186 | 186 | $this->alreadyExists($this->getNameInput())) { |
| 187 | 187 | $this->components->error($this->type.' already exists.'); |
| 188 | 188 | |
@@ -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:service')] |
|
| 10 | +#[AsCommand(name: 'make:service') ] |
|
| 11 | 11 | class MakeServiceCommand extends GeneratorCommand |
| 12 | 12 | { |
| 13 | 13 | /** |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $request = $this->option('request'); |
| 54 | 54 | |
| 55 | - if (! Str::startsWith($request, [ |
|
| 55 | + if (!Str::startsWith($request, [ |
|
| 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 | - ['DummyRequest', '{{ request }}'], class_basename($request), parent::buildClass($name) |
|
| 64 | + [ 'DummyRequest', '{{ request }}' ], class_basename($request), parent::buildClass($name) |
|
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | return str_replace( |
| 68 | - ['DummyFullRequest', '{{ requestNamespace }}'], trim($request, '\\'), $stub |
|
| 68 | + [ 'DummyFullRequest', '{{ requestNamespace }}' ], trim($request, '\\'), $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 service already exists'], |
|
| 131 | - ['request', 'r', InputOption::VALUE_REQUIRED, 'Create a form namespace class for this service'], |
|
| 130 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the service already exists' ], |
|
| 131 | + [ 'request', 'r', InputOption::VALUE_REQUIRED, 'Create a form namespace class for this service' ], |
|
| 132 | 132 | ]; |
| 133 | 133 | } |
| 134 | 134 | } |
@@ -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:interface')] |
|
| 10 | +#[AsCommand(name: 'make:interface') ] |
|
| 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 | } |