@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | /** |
281 | 281 | * Set force status. |
282 | 282 | */ |
283 | - public function setForce(bool|int $force): self |
|
283 | + public function setForce(bool | int $force): self |
|
284 | 284 | { |
285 | 285 | $this->force = $force; |
286 | 286 | |
@@ -364,8 +364,8 @@ discard block |
||
364 | 364 | foreach ($this->getFiles() as $stub => $file) { |
365 | 365 | $path = $this->module->getModulePath($this->getName()).$file; |
366 | 366 | |
367 | - $this->component->task("Generating file {$path}", function () use ($stub, $path) { |
|
368 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
367 | + $this->component->task("Generating file {$path}", function() use ($stub, $path) { |
|
368 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
369 | 369 | $this->filesystem->makeDirectory($dir, 0775, true); |
370 | 370 | } |
371 | 371 | |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | $eventGeneratorConfig = GenerateConfigReader::read('event-provider'); |
408 | 408 | if ( |
409 | 409 | (is_null($eventGeneratorConfig->getPath()) && $providerGenerator->generate()) |
410 | - || (! is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
410 | + || (!is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
411 | 411 | ) { |
412 | 412 | $this->console->call('module:make-event-provider', [ |
413 | 413 | 'module' => $this->getName(), |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $routeGeneratorConfig = GenerateConfigReader::read('route-provider'); |
427 | 427 | if ( |
428 | 428 | (is_null($routeGeneratorConfig->getPath()) && $providerGenerator->generate()) |
429 | - || (! is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
429 | + || (!is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
430 | 430 | ) { |
431 | 431 | $this->console->call('module:route-provider', [ |
432 | 432 | 'module' => $this->getName(), |
@@ -478,11 +478,11 @@ discard block |
||
478 | 478 | { |
479 | 479 | $replacements = $this->module->config('stubs.replacements'); |
480 | 480 | |
481 | - if (! isset($replacements['composer']['APP_FOLDER_NAME'])) { |
|
481 | + if (!isset($replacements['composer']['APP_FOLDER_NAME'])) { |
|
482 | 482 | $replacements['composer'][] = 'APP_FOLDER_NAME'; |
483 | 483 | } |
484 | 484 | |
485 | - if (! isset($replacements[$stub])) { |
|
485 | + if (!isset($replacements[$stub])) { |
|
486 | 486 | return []; |
487 | 487 | } |
488 | 488 | |
@@ -513,8 +513,8 @@ discard block |
||
513 | 513 | { |
514 | 514 | $path = $this->module->getModulePath($this->getName()).'module.json'; |
515 | 515 | |
516 | - $this->component->task("Generating file $path", function () use ($path) { |
|
517 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
516 | + $this->component->task("Generating file $path", function() use ($path) { |
|
517 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
518 | 518 | $this->filesystem->makeDirectory($dir, 0775, true); |
519 | 519 | } |
520 | 520 |