@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $paths = array_merge($paths, $this->config('scan.paths')); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - return array_map(function ($path) { |
|
| 95 | + return array_map(function($path) { |
|
| 96 | 96 | return ends_with($path, '/*') ? $path : str_finish($path, '/*'); |
| 97 | 97 | }, $paths); |
| 98 | 98 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function all() : array |
| 139 | 139 | { |
| 140 | - if (! $this->config('cache.enabled')) { |
|
| 140 | + if (!$this->config('cache.enabled')) { |
|
| 141 | 141 | return $this->scan(); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | public function getCached() |
| 172 | 172 | { |
| 173 | - return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
| 173 | + return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
| 174 | 174 | return $this->toCollection()->toArray(); |
| 175 | 175 | }); |
| 176 | 176 | } |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | { |
| 256 | 256 | $modules = $this->allEnabled(); |
| 257 | 257 | |
| 258 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
| 258 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
| 259 | 259 | if ($a->order == $b->order) { |
| 260 | 260 | return 0; |
| 261 | 261 | } |
@@ -285,19 +285,19 @@ discard block |
||
| 285 | 285 | foreach ($modules as $module) { |
| 286 | 286 | $path = $module->getExtraPath('config') . '/module-views.php'; |
| 287 | 287 | |
| 288 | - if (! $this->app['files']->exists($path)) { |
|
| 288 | + if (!$this->app['files']->exists($path)) { |
|
| 289 | 289 | continue; |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | 292 | $moduleViews = $this->app['files']->getRequire($path); |
| 293 | 293 | $moduleViews = array_get($moduleViews, $moduleKey, []); |
| 294 | 294 | |
| 295 | - if (! empty($moduleViews)) { |
|
| 295 | + if (!empty($moduleViews)) { |
|
| 296 | 296 | $viewPartials = array_merge($viewPartials, $moduleViews); |
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | - uasort($viewPartials, function ($a, $b) { |
|
| 300 | + uasort($viewPartials, function($a, $b) { |
|
| 301 | 301 | $aPriority = $a['priority'] ?? 0; |
| 302 | 302 | $bPriority = $b['priority'] ?? 0; |
| 303 | 303 | |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | { |
| 408 | 408 | $module = $this->find($name); |
| 409 | 409 | |
| 410 | - if (! is_null($module)) { |
|
| 410 | + if (!is_null($module)) { |
|
| 411 | 411 | return $module; |
| 412 | 412 | } |
| 413 | 413 | |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | |
| 479 | 479 | $path = storage_path('app/modules/modules.used'); |
| 480 | 480 | |
| 481 | - if (! $this->app['files']->exists($path)) { |
|
| 481 | + if (!$this->app['files']->exists($path)) { |
|
| 482 | 482 | $this->app['files']->put($path, ''); |
| 483 | 483 | } |
| 484 | 484 | |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | */ |
| 583 | 583 | public function disabled($name) : bool |
| 584 | 584 | { |
| 585 | - return ! $this->enabled($name); |
|
| 585 | + return !$this->enabled($name); |
|
| 586 | 586 | } |
| 587 | 587 | |
| 588 | 588 | /** |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | */ |
| 655 | 655 | public function getStubPath() |
| 656 | 656 | { |
| 657 | - if (! is_null($this->stubPath)) { |
|
| 657 | + if (!is_null($this->stubPath)) { |
|
| 658 | 658 | return $this->stubPath; |
| 659 | 659 | } |
| 660 | 660 | |