@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | /** |
| 264 | 264 | * Set force status. |
| 265 | 265 | */ |
| 266 | - public function setForce(bool|int $force): self |
|
| 266 | + public function setForce(bool | int $force): self |
|
| 267 | 267 | { |
| 268 | 268 | $this->force = $force; |
| 269 | 269 | |
@@ -354,8 +354,8 @@ discard block |
||
| 354 | 354 | foreach ($this->getFiles() as $stub => $file) { |
| 355 | 355 | $path = $this->module->getModulePath($this->getName()).$file; |
| 356 | 356 | |
| 357 | - $this->component->task("Generating file {$path}", function () use ($stub, $path) { |
|
| 358 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 357 | + $this->component->task("Generating file {$path}", function() use ($stub, $path) { |
|
| 358 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 359 | 359 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 360 | 360 | } |
| 361 | 361 | |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | $eventGeneratorConfig = GenerateConfigReader::read('event-provider'); |
| 398 | 398 | if ( |
| 399 | 399 | (is_null($eventGeneratorConfig->getPath()) && $providerGenerator->generate()) |
| 400 | - || (! is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
| 400 | + || (!is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
| 401 | 401 | ) { |
| 402 | 402 | $this->console->call('module:make-event-provider', [ |
| 403 | 403 | 'module' => $this->getName(), |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | $routeGeneratorConfig = GenerateConfigReader::read('route-provider'); |
| 417 | 417 | if ( |
| 418 | 418 | (is_null($routeGeneratorConfig->getPath()) && $providerGenerator->generate()) |
| 419 | - || (! is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
| 419 | + || (!is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
| 420 | 420 | ) { |
| 421 | 421 | $this->console->call('module:route-provider', [ |
| 422 | 422 | 'module' => $this->getName(), |
@@ -469,17 +469,17 @@ discard block |
||
| 469 | 469 | $replacements = $this->module->config('stubs.replacements'); |
| 470 | 470 | |
| 471 | 471 | // Temporarily check if the replacements are defined; remove in the next major version. |
| 472 | - if (! isset($replacements['composer']['APP_FOLDER_NAME'])) { |
|
| 472 | + if (!isset($replacements['composer']['APP_FOLDER_NAME'])) { |
|
| 473 | 473 | $replacements['composer'][] = 'APP_FOLDER_NAME'; |
| 474 | 474 | } |
| 475 | - if (! isset($replacements['routes/web']['PLURAL_LOWER_NAME'])) { |
|
| 475 | + if (!isset($replacements['routes/web']['PLURAL_LOWER_NAME'])) { |
|
| 476 | 476 | $replacements['routes/web'][] = 'PLURAL_LOWER_NAME'; |
| 477 | 477 | } |
| 478 | - if (! isset($replacements['routes/api']['PLURAL_LOWER_NAME'])) { |
|
| 478 | + if (!isset($replacements['routes/api']['PLURAL_LOWER_NAME'])) { |
|
| 479 | 479 | $replacements['routes/api'][] = 'PLURAL_LOWER_NAME'; |
| 480 | 480 | } |
| 481 | 481 | |
| 482 | - if (! isset($replacements[$stub])) { |
|
| 482 | + if (!isset($replacements[$stub])) { |
|
| 483 | 483 | return []; |
| 484 | 484 | } |
| 485 | 485 | |
@@ -519,8 +519,8 @@ discard block |
||
| 519 | 519 | { |
| 520 | 520 | $path = $this->module->getModulePath($this->getName()).'module.json'; |
| 521 | 521 | |
| 522 | - $this->component->task("Generating file $path", function () use ($path) { |
|
| 523 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 522 | + $this->component->task("Generating file $path", function() use ($path) { |
|
| 523 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 524 | 524 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 525 | 525 | } |
| 526 | 526 | |