@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | $paths = array_merge($paths, $this->config('scan.paths')); |
254 | 254 | } |
255 | 255 | |
256 | - $paths = array_map(function ($path) { |
|
256 | + $paths = array_map(function($path) { |
|
257 | 257 | return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*'); |
258 | 258 | }, $paths); |
259 | 259 | |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function cached(): array |
275 | 275 | { |
276 | - return $this->cache->store($this->config->get('modules.cache.driver'))->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
276 | + return $this->cache->store($this->config->get('modules.cache.driver'))->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
277 | 277 | return $this->toCollection()->toArray(); |
278 | 278 | }); |
279 | 279 | } |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | { |
334 | 334 | $modules = $this->all(true); |
335 | 335 | |
336 | - uasort($modules, function (Module $a, Module $b) use ($sort) { |
|
336 | + uasort($modules, function(Module $a, Module $b) use ($sort) { |
|
337 | 337 | if ($a->get('priority') === $b->get('priority')) { |
338 | 338 | return 0; |
339 | 339 | } |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | */ |
378 | 378 | public function config(string $key, ?string $default = null): mixed |
379 | 379 | { |
380 | - return $this->config->get('modules.' . $key, $default); |
|
380 | + return $this->config->get('modules.'.$key, $default); |
|
381 | 381 | } |
382 | 382 | |
383 | 383 | /** |
@@ -510,9 +510,9 @@ discard block |
||
510 | 510 | public function modulePath($module): string |
511 | 511 | { |
512 | 512 | try { |
513 | - return $this->findOrFail($module)->getPath() . '/'; |
|
513 | + return $this->findOrFail($module)->getPath().'/'; |
|
514 | 514 | } catch (ModuleNotFoundException $e) { |
515 | - return $this->path() . '/' . Str::studly($module) . '/'; |
|
515 | + return $this->path().'/'.Str::studly($module).'/'; |
|
516 | 516 | } |
517 | 517 | } |
518 | 518 | |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | */ |
602 | 602 | public function assetPath(string $module): string |
603 | 603 | { |
604 | - return $this->config('paths.assets') . '/' . $module; |
|
604 | + return $this->config('paths.assets').'/'.$module; |
|
605 | 605 | } |
606 | 606 | |
607 | 607 | /** |