@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | */ |
217 | 217 | public function getByStatus($status): array |
218 | 218 | { |
219 | - if (! empty(self::$modules) && ! $this->app->runningUnitTests()) { |
|
219 | + if (!empty(self::$modules) && !$this->app->runningUnitTests()) { |
|
220 | 220 | return self::$modules; |
221 | 221 | } |
222 | 222 | |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | $paths = array_merge($paths, $this->config('scan.paths')); |
266 | 266 | } |
267 | 267 | |
268 | - $paths = array_map(function ($path) { |
|
268 | + $paths = array_map(function($path) { |
|
269 | 269 | return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*'); |
270 | 270 | }, $paths); |
271 | 271 | |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | return $this->cache->store($this->config->get('modules.cache.driver'))->remember( |
289 | 289 | key: $this->config('cache.key'), |
290 | 290 | ttl: $this->config('cache.lifetime'), |
291 | - callback: function () { |
|
291 | + callback: function() { |
|
292 | 292 | return $this->toCollection()->toArray(); |
293 | 293 | } |
294 | 294 | ); |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | { |
359 | 359 | $modules = $this->all(true); |
360 | 360 | |
361 | - uasort($modules, function (Module $a, Module $b) use ($sort) { |
|
361 | + uasort($modules, function(Module $a, Module $b) use ($sort) { |
|
362 | 362 | if ($a->get('priority') === $b->get('priority')) { |
363 | 363 | return 0; |
364 | 364 | } |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | */ |
403 | 403 | public function config(string $key, ?string $default = null): mixed |
404 | 404 | { |
405 | - return $this->config->get('modules.' . $key, $default); |
|
405 | + return $this->config->get('modules.'.$key, $default); |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | /** |
@@ -527,9 +527,9 @@ discard block |
||
527 | 527 | public function modulePath($module): string |
528 | 528 | { |
529 | 529 | try { |
530 | - return $this->findOrFail($module)->getPath() . '/'; |
|
530 | + return $this->findOrFail($module)->getPath().'/'; |
|
531 | 531 | } catch (ModuleNotFoundException $e) { |
532 | - return $this->path() . '/' . Str::studly($module) . '/'; |
|
532 | + return $this->path().'/'.Str::studly($module).'/'; |
|
533 | 533 | } |
534 | 534 | } |
535 | 535 | |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | */ |
619 | 619 | public function assetPath(string $module): string |
620 | 620 | { |
621 | - return $this->config('paths.assets') . '/' . $module; |
|
621 | + return $this->config('paths.assets').'/'.$module; |
|
622 | 622 | } |
623 | 623 | |
624 | 624 | /** |