@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function setUp(): void |
| 11 | 11 | { |
| 12 | - parent::setUp(); |
|
| 12 | + parent::setUp(); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | protected function defineDatabaseMigrations() |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | |
| 20 | 20 | protected function getPackageProviders($app): array |
| 21 | 21 | { |
| 22 | - return [MakeServiceServiceProvider::class]; |
|
| 22 | + return [ MakeServiceServiceProvider::class ]; |
|
| 23 | 23 | } |
| 24 | 24 | } |
@@ -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 request 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 request class for this service' ], |
|
| 132 | 132 | ]; |
| 133 | 133 | } |
| 134 | 134 | } |