@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $rulePath = GenerateConfigReader::read('rules'); |
| 78 | 78 | |
| 79 | - return $path . $rulePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 79 | + return $path.$rulePath->getPath().'/'.$this->getFileName().'.php'; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | $factoryPath = GenerateConfigReader::read('factory'); |
| 71 | 71 | |
| 72 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
| 72 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | private function getFileName() |
| 79 | 79 | { |
| 80 | - return Str::studly($this->argument('name')) . 'Factory.php'; |
|
| 80 | + return Str::studly($this->argument('name')).'Factory.php'; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -111,6 +111,6 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | $path = str_replace('/', '\\', $path); |
| 113 | 113 | |
| 114 | - return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path; |
|
| 114 | + return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path; |
|
| 115 | 115 | } |
| 116 | 116 | } |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function getDestinationFilePath() |
| 41 | 41 | { |
| 42 | - $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
| 42 | + $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
| 43 | 43 | |
| 44 | 44 | $eventPath = GenerateConfigReader::read('event'); |
| 45 | 45 | |
| 46 | - return $path . $eventPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 46 | + return $path.$eventPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $testPath = GenerateConfigReader::read('test-unit'); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - return $path . $testPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 83 | + return $path.$testPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | { |
| 224 | 224 | $lowerName = $this->getLowerName(); |
| 225 | 225 | |
| 226 | - $langPath = $this->getPath() . '/Resources/lang'; |
|
| 226 | + $langPath = $this->getPath().'/Resources/lang'; |
|
| 227 | 227 | |
| 228 | 228 | if (is_dir($langPath)) { |
| 229 | 229 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -243,8 +243,8 @@ discard block |
||
| 243 | 243 | $file = 'module.json'; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
| 247 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files); |
|
| 246 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
| 247 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files); |
|
| 248 | 248 | }); |
| 249 | 249 | } |
| 250 | 250 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | */ |
| 298 | 298 | protected function fireEvent($event): void |
| 299 | 299 | { |
| 300 | - $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
| 300 | + $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | /** |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | protected function registerFiles(): void |
| 324 | 324 | { |
| 325 | 325 | foreach ($this->get('files', []) as $file) { |
| 326 | - include $this->path . '/' . $file; |
|
| 326 | + include $this->path.'/'.$file; |
|
| 327 | 327 | } |
| 328 | 328 | } |
| 329 | 329 | |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | */ |
| 429 | 429 | public function getExtraPath(string $path): string |
| 430 | 430 | { |
| 431 | - return $this->getPath() . '/' . $path; |
|
| 431 | + return $this->getPath().'/'.$path; |
|
| 432 | 432 | } |
| 433 | 433 | |
| 434 | 434 | /** |