@@ -61,7 +61,7 @@ |
||
61 | 61 | |
62 | 62 | $channelPath = GenerateConfigReader::read('channels'); |
63 | 63 | |
64 | - return $path . $channelPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
64 | + return $path.$channelPath->getPath().'/'.$this->getFileName().'.php'; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
56 | 56 | return (new Stub('/observer.stub', [ |
57 | - 'NAMESPACE' => $this->getClassNamespace($module) . '\Observers', |
|
57 | + 'NAMESPACE' => $this->getClassNamespace($module).'\Observers', |
|
58 | 58 | 'NAME' => $this->getModelName(), |
59 | 59 | 'MODEL_NAMESPACE' => $this->getModelNamespace(), |
60 | 60 | 'NAME_VARIABLE' => $this->getModelVariable(), |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | $path = str_replace('/', '\\', $path); |
74 | 74 | |
75 | - return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path; |
|
75 | + return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $observerPath = GenerateConfigReader::read('observer'); |
102 | 102 | |
103 | - return $path . $observerPath->getPath() . '/' . $this->getFileName(); |
|
103 | + return $path.$observerPath->getPath().'/'.$this->getFileName(); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | private function getFileName() |
110 | 110 | { |
111 | - return Str::studly($this->argument('name')) . 'Observer.php'; |
|
111 | + return Str::studly($this->argument('name')).'Observer.php'; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | $seederPath = GenerateConfigReader::read('seeder'); |
75 | 75 | |
76 | - return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php'; |
|
76 | + return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -367,8 +367,8 @@ discard block |
||
367 | 367 | foreach ($this->getFiles() as $stub => $file) { |
368 | 368 | $path = $this->module->getModulePath($this->getName()).$file; |
369 | 369 | |
370 | - $this->component->task("Generating file {$path}", function () use ($stub, $path) { |
|
371 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
370 | + $this->component->task("Generating file {$path}", function() use ($stub, $path) { |
|
371 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
372 | 372 | $this->filesystem->makeDirectory($dir, 0775, true); |
373 | 373 | } |
374 | 374 | |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | { |
447 | 447 | $replacements = $this->module->config('stubs.replacements'); |
448 | 448 | |
449 | - if (! isset($replacements[$stub])) { |
|
449 | + if (!isset($replacements[$stub])) { |
|
450 | 450 | return []; |
451 | 451 | } |
452 | 452 | |
@@ -477,8 +477,8 @@ discard block |
||
477 | 477 | { |
478 | 478 | $path = $this->module->getModulePath($this->getName()).'module.json'; |
479 | 479 | |
480 | - $this->component->task("Generating file $path", function () use ($path) { |
|
481 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
480 | + $this->component->task("Generating file $path", function() use ($path) { |
|
481 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
482 | 482 | $this->filesystem->makeDirectory($dir, 0775, true); |
483 | 483 | } |
484 | 484 |