@@ -407,8 +407,8 @@ discard block |
||
| 407 | 407 | foreach ($this->getFiles() as $stub => $file) { |
| 408 | 408 | $path = $this->module->getModulePath($this->getName()).$file; |
| 409 | 409 | |
| 410 | - $this->component->task("Generating file {$path}", function () use ($stub, $path) { |
|
| 411 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 410 | + $this->component->task("Generating file {$path}", function() use ($stub, $path) { |
|
| 411 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 412 | 412 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 413 | 413 | } |
| 414 | 414 | |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | $eventGeneratorConfig = GenerateConfigReader::read('event-provider'); |
| 451 | 451 | if ( |
| 452 | 452 | (is_null($eventGeneratorConfig->getPath()) && $providerGenerator->generate()) |
| 453 | - || (! is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
| 453 | + || (!is_null($eventGeneratorConfig->getPath()) && $eventGeneratorConfig->generate()) |
|
| 454 | 454 | ) { |
| 455 | 455 | $this->console->call('module:make-event-provider', [ |
| 456 | 456 | 'module' => $this->getName(), |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | $routeGeneratorConfig = GenerateConfigReader::read('route-provider'); |
| 470 | 470 | if ( |
| 471 | 471 | (is_null($routeGeneratorConfig->getPath()) && $providerGenerator->generate()) |
| 472 | - || (! is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
| 472 | + || (!is_null($routeGeneratorConfig->getPath()) && $routeGeneratorConfig->generate()) |
|
| 473 | 473 | ) { |
| 474 | 474 | $this->console->call('module:route-provider', [ |
| 475 | 475 | 'module' => $this->getName(), |
@@ -524,11 +524,11 @@ discard block |
||
| 524 | 524 | { |
| 525 | 525 | $replacements = $this->module->config('stubs.replacements'); |
| 526 | 526 | |
| 527 | - if (! isset($replacements['composer']['APP_PATH'])) { |
|
| 527 | + if (!isset($replacements['composer']['APP_PATH'])) { |
|
| 528 | 528 | $replacements['composer'][] = 'APP_PATH'; |
| 529 | 529 | } |
| 530 | 530 | |
| 531 | - if (! isset($replacements[$stub])) { |
|
| 531 | + if (!isset($replacements[$stub])) { |
|
| 532 | 532 | return []; |
| 533 | 533 | } |
| 534 | 534 | |
@@ -654,8 +654,8 @@ discard block |
||
| 654 | 654 | { |
| 655 | 655 | $path = $this->module->getModulePath($this->getName()).'module.json'; |
| 656 | 656 | |
| 657 | - $this->component->task("Generating file $path", function () use ($path) { |
|
| 658 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 657 | + $this->component->task("Generating file $path", function() use ($path) { |
|
| 658 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 659 | 659 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 660 | 660 | } |
| 661 | 661 | |