@@ -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 | /** |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function getNamespace(): string |
178 | 178 | { |
179 | - return $this->get( 'namespace', config('modules.namespace') ); |
|
179 | + return $this->get('namespace', config('modules.namespace')); |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | { |
219 | 219 | $lowerName = $this->getLowerName(); |
220 | 220 | |
221 | - $langPath = $this->getPath() . '/Resources/lang'; |
|
221 | + $langPath = $this->getPath().'/Resources/lang'; |
|
222 | 222 | |
223 | 223 | if (is_dir($langPath)) { |
224 | 224 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -238,8 +238,8 @@ discard block |
||
238 | 238 | $file = 'module.json'; |
239 | 239 | } |
240 | 240 | |
241 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
242 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files); |
|
241 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
242 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files); |
|
243 | 243 | }); |
244 | 244 | } |
245 | 245 | |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | */ |
293 | 293 | protected function fireEvent($event): void |
294 | 294 | { |
295 | - $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
295 | + $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
296 | 296 | } |
297 | 297 | /** |
298 | 298 | * Register the aliases from this module. |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | protected function registerFiles(): void |
318 | 318 | { |
319 | 319 | foreach ($this->get('files', []) as $file) { |
320 | - include $this->path . '/' . $file; |
|
320 | + include $this->path.'/'.$file; |
|
321 | 321 | } |
322 | 322 | } |
323 | 323 | |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | */ |
423 | 423 | public function getExtraPath(string $path): string |
424 | 424 | { |
425 | - return $this->getPath() . '/' . $path; |
|
425 | + return $this->getPath().'/'.$path; |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |