@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | { |
178 | 178 | $lowerName = $this->getLowerName(); |
179 | 179 | |
180 | - $langPath = $this->getPath() . "/Resources/lang"; |
|
180 | + $langPath = $this->getPath()."/Resources/lang"; |
|
181 | 181 | |
182 | 182 | if (is_dir($langPath)) { |
183 | 183 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | $file = 'module.json'; |
198 | 198 | } |
199 | 199 | |
200 | - return array_get($this->moduleJson, $file, function () use ($file) { |
|
201 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->app['files']); |
|
200 | + return array_get($this->moduleJson, $file, function() use ($file) { |
|
201 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->app['files']); |
|
202 | 202 | }); |
203 | 203 | } |
204 | 204 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | protected function fireEvent($event) |
251 | 251 | { |
252 | - $this->app['events']->fire(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
252 | + $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | /** |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | protected function registerFiles() |
280 | 280 | { |
281 | 281 | foreach ($this->get('files', []) as $file) { |
282 | - include $this->path . '/' . $file; |
|
282 | + include $this->path.'/'.$file; |
|
283 | 283 | } |
284 | 284 | } |
285 | 285 | |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | */ |
401 | 401 | public function getExtraPath($path) |
402 | 402 | { |
403 | - return $this->getPath() . '/' . $path; |
|
403 | + return $this->getPath().'/'.$path; |
|
404 | 404 | } |
405 | 405 | |
406 | 406 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | $paths = $this->paths; |
101 | 101 | |
102 | - $paths[] = $this->getPath() . '/*'; |
|
102 | + $paths[] = $this->getPath().'/*'; |
|
103 | 103 | |
104 | 104 | if ($this->config('scan.enabled')) { |
105 | 105 | $paths = array_merge($paths, $this->config('scan.paths')); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $modules = []; |
161 | 161 | |
162 | 162 | foreach ($cached as $name => $module) { |
163 | - $path = $this->config('paths.modules') . '/' . $name; |
|
163 | + $path = $this->config('paths.modules').'/'.$name; |
|
164 | 164 | |
165 | 165 | $modules[$name] = new Module($this->app, $name, $path); |
166 | 166 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function getCached() |
177 | 177 | { |
178 | - return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
178 | + return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
179 | 179 | return $this->toCollection()->toArray(); |
180 | 180 | }); |
181 | 181 | } |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | { |
264 | 264 | $modules = $this->enabled(); |
265 | 265 | |
266 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
266 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
267 | 267 | if ($a->order == $b->order) { |
268 | 268 | return 0; |
269 | 269 | } |
@@ -412,9 +412,9 @@ discard block |
||
412 | 412 | public function getModulePath($module) |
413 | 413 | { |
414 | 414 | try { |
415 | - return $this->findOrFail($module)->getPath() . '/'; |
|
415 | + return $this->findOrFail($module)->getPath().'/'; |
|
416 | 416 | } catch (ModuleNotFoundException $e) { |
417 | - return $this->getPath() . '/' . Str::studly($module) . '/'; |
|
417 | + return $this->getPath().'/'.Str::studly($module).'/'; |
|
418 | 418 | } |
419 | 419 | } |
420 | 420 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | */ |
428 | 428 | public function assetPath($module) |
429 | 429 | { |
430 | - return $this->config('paths.assets') . '/' . $module; |
|
430 | + return $this->config('paths.assets').'/'.$module; |
|
431 | 431 | } |
432 | 432 | |
433 | 433 | /** |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | */ |
441 | 441 | public function config($key, $default = null) |
442 | 442 | { |
443 | - return $this->app['config']->get('modules.' . $key, $default); |
|
443 | + return $this->app['config']->get('modules.'.$key, $default); |
|
444 | 444 | } |
445 | 445 | |
446 | 446 | /** |
@@ -525,9 +525,9 @@ discard block |
||
525 | 525 | } |
526 | 526 | list($name, $url) = explode(':', $asset); |
527 | 527 | |
528 | - $baseUrl = str_replace(public_path() . DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
528 | + $baseUrl = str_replace(public_path().DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
529 | 529 | |
530 | - $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url); |
|
530 | + $url = $this->app['url']->asset($baseUrl."/{$name}/".$url); |
|
531 | 531 | |
532 | 532 | return str_replace(['http://', 'https://'], '//', $url); |
533 | 533 | } |