@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function getCached() |
| 151 | 151 | { |
| 152 | - return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
| 152 | + return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
| 153 | 153 | return $this->toCollection()->toArray(); |
| 154 | 154 | }); |
| 155 | 155 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | { |
| 238 | 238 | $modules = $this->enabled(); |
| 239 | 239 | |
| 240 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
| 240 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
| 241 | 241 | if ($a->order == $b->order) { |
| 242 | 242 | return 0; |
| 243 | 243 | } |
@@ -387,9 +387,9 @@ discard block |
||
| 387 | 387 | public function getModulePath($module) |
| 388 | 388 | { |
| 389 | 389 | try { |
| 390 | - return $this->findOrFail($module)->getPath() . '/'; |
|
| 390 | + return $this->findOrFail($module)->getPath().'/'; |
|
| 391 | 391 | } catch (ModuleNotFoundException $e) { |
| 392 | - return $this->getPath() . '/' . Str::studly($module) . '/'; |
|
| 392 | + return $this->getPath().'/'.Str::studly($module).'/'; |
|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | */ |
| 403 | 403 | public function assetPath($module) : string |
| 404 | 404 | { |
| 405 | - return $this->config('paths.assets') . '/' . $module; |
|
| 405 | + return $this->config('paths.assets').'/'.$module; |
|
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | /** |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | public function config($key, $default = null) |
| 417 | 417 | { |
| 418 | - return $this->app['config']->get('modules.' . $key, $default); |
|
| 418 | + return $this->app['config']->get('modules.'.$key, $default); |
|
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | /** |
@@ -516,9 +516,9 @@ discard block |
||
| 516 | 516 | } |
| 517 | 517 | list($name, $url) = explode(':', $asset); |
| 518 | 518 | |
| 519 | - $baseUrl = str_replace(public_path() . DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
| 519 | + $baseUrl = str_replace(public_path().DIRECTORY_SEPARATOR, '', $this->getAssetsPath()); |
|
| 520 | 520 | |
| 521 | - $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url); |
|
| 521 | + $url = $this->app['url']->asset($baseUrl."/{$name}/".$url); |
|
| 522 | 522 | |
| 523 | 523 | return str_replace(['http://', 'https://'], '//', $url); |
| 524 | 524 | } |