@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $paths = array_merge($paths, $this->config('scan.paths')); |
119 | 119 | } |
120 | 120 | |
121 | - $paths = array_map(function ($path) { |
|
121 | + $paths = array_map(function($path) { |
|
122 | 122 | return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*'); |
123 | 123 | }, $paths); |
124 | 124 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function scan() |
144 | 144 | { |
145 | - if (! empty(self::$modules) && ! $this->app->runningUnitTests()) { |
|
145 | + if (!empty(self::$modules) && !$this->app->runningUnitTests()) { |
|
146 | 146 | return self::$modules; |
147 | 147 | } |
148 | 148 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function all(): array |
175 | 175 | { |
176 | - if (! $this->config('cache.enabled')) { |
|
176 | + if (!$this->config('cache.enabled')) { |
|
177 | 177 | return $this->scan(); |
178 | 178 | } |
179 | 179 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return $this->cache->store($this->config->get('modules.cache.driver'))->remember( |
210 | 210 | key: $this->config('cache.key'), |
211 | 211 | ttl: $this->config('cache.lifetime'), |
212 | - callback: function () { |
|
212 | + callback: function() { |
|
213 | 213 | return $this->toCollection()->toArray(); |
214 | 214 | } |
215 | 215 | ); |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | { |
282 | 282 | $modules = $this->allEnabled(); |
283 | 283 | |
284 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
284 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
285 | 285 | if ($a->get('priority') === $b->get('priority')) { |
286 | 286 | return 0; |
287 | 287 | } |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | } |
402 | 402 | |
403 | 403 | $path = storage_path('app/modules/modules.used'); |
404 | - if (! $this->getFiles()->exists($path)) { |
|
404 | + if (!$this->getFiles()->exists($path)) { |
|
405 | 405 | $this->getFiles()->put($path, ''); |
406 | 406 | } |
407 | 407 | |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | */ |
494 | 494 | public function isDisabled(string $name): bool |
495 | 495 | { |
496 | - return ! $this->isEnabled($name); |
|
496 | + return !$this->isEnabled($name); |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | /** |