@@ -94,11 +94,11 @@ discard block |
||
94 | 94 | return Str::studly($this->name); |
95 | 95 | } |
96 | 96 | |
97 | - /** |
|
98 | - * Get name in snake case. |
|
99 | - * |
|
100 | - * @return string |
|
101 | - */ |
|
97 | + /** |
|
98 | + * Get name in snake case. |
|
99 | + * |
|
100 | + * @return string |
|
101 | + */ |
|
102 | 102 | public function getSnakeName() |
103 | 103 | { |
104 | 104 | return Str::snake($this->name); |
@@ -284,11 +284,11 @@ discard block |
||
284 | 284 | ->load($this->get('providers', [])); |
285 | 285 | } |
286 | 286 | |
287 | - /** |
|
288 | - * Get the path to the cached *_module.php file. |
|
289 | - * |
|
290 | - * @return string |
|
291 | - */ |
|
287 | + /** |
|
288 | + * Get the path to the cached *_module.php file. |
|
289 | + * |
|
290 | + * @return string |
|
291 | + */ |
|
292 | 292 | public function getCachedServicesPath() |
293 | 293 | { |
294 | 294 | return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->getCachedServicesPath()); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | { |
190 | 190 | $lowerName = $this->getLowerName(); |
191 | 191 | |
192 | - $langPath = $this->getPath() . "/Resources/lang"; |
|
192 | + $langPath = $this->getPath()."/Resources/lang"; |
|
193 | 193 | |
194 | 194 | if (is_dir($langPath)) { |
195 | 195 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -209,8 +209,8 @@ discard block |
||
209 | 209 | $file = 'module.json'; |
210 | 210 | } |
211 | 211 | |
212 | - return array_get($this->moduleJson, $file, function () use ($file) { |
|
213 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->app['files']); |
|
212 | + return array_get($this->moduleJson, $file, function() use ($file) { |
|
213 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->app['files']); |
|
214 | 214 | }); |
215 | 215 | } |
216 | 216 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | */ |
262 | 262 | protected function fireEvent($event) |
263 | 263 | { |
264 | - $this->app['events']->fire(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
264 | + $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | */ |
292 | 292 | public function getCachedServicesPath() |
293 | 293 | { |
294 | - return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->getCachedServicesPath()); |
|
294 | + return Str::replaceLast('services.php', $this->getSnakeName().'_module.php', $this->app->getCachedServicesPath()); |
|
295 | 295 | } |
296 | 296 | |
297 | 297 | /** |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | protected function registerFiles() |
301 | 301 | { |
302 | 302 | foreach ($this->get('files', []) as $file) { |
303 | - include $this->path . '/' . $file; |
|
303 | + include $this->path.'/'.$file; |
|
304 | 304 | } |
305 | 305 | } |
306 | 306 | |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | */ |
422 | 422 | public function getExtraPath($path) |
423 | 423 | { |
424 | - return $this->getPath() . '/' . $path; |
|
424 | + return $this->getPath().'/'.$path; |
|
425 | 425 | } |
426 | 426 | |
427 | 427 | /** |