@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $paths = array_merge($paths, $this->config('scan.paths')); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $paths = array_map(function ($path) { |
|
| 113 | + $paths = array_map(function($path) { |
|
| 114 | 114 | return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*'); |
| 115 | 115 | }, $paths); |
| 116 | 116 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function scan(): array |
| 129 | 129 | { |
| 130 | - if (! empty(self::$modules) && ! $this->app->runningUnitTests()) { |
|
| 130 | + if (!empty(self::$modules) && !$this->app->runningUnitTests()) { |
|
| 131 | 131 | return self::$modules; |
| 132 | 132 | } |
| 133 | 133 | |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | { |
| 224 | 224 | $modules = $this->allEnabled(); |
| 225 | 225 | |
| 226 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
| 226 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
| 227 | 227 | if ($a->get('priority') === $b->get('priority')) { |
| 228 | 228 | return 0; |
| 229 | 229 | } |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | $path = storage_path('app/modules/modules.used'); |
| 340 | - if (! $this->getFiles()->exists($path)) { |
|
| 340 | + if (!$this->getFiles()->exists($path)) { |
|
| 341 | 341 | $this->getFiles()->put($path, ''); |
| 342 | 342 | } |
| 343 | 343 | |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | public function isDisabled(string $name): bool |
| 428 | 428 | { |
| 429 | - return ! $this->isEnabled($name); |
|
| 429 | + return !$this->isEnabled($name); |
|
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | /** |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | use Illuminate\Foundation\Vite; |
| 4 | 4 | use Illuminate\Support\Facades\Vite as ViteFacade; |
| 5 | 5 | |
| 6 | -if (! function_exists('module_path')) { |
|
| 6 | +if (!function_exists('module_path')) { |
|
| 7 | 7 | function module_path($name, $path = '') |
| 8 | 8 | { |
| 9 | 9 | $module = app('modules')->find($name); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | } |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | -if (! function_exists('config_path')) { |
|
| 15 | +if (!function_exists('config_path')) { |
|
| 16 | 16 | /** |
| 17 | 17 | * Get the configuration path. |
| 18 | 18 | */ |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -if (! function_exists('public_path')) { |
|
| 25 | +if (!function_exists('public_path')) { |
|
| 26 | 26 | /** |
| 27 | 27 | * Get the path to the public folder. |
| 28 | 28 | */ |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | -if (! function_exists('module_vite')) { |
|
| 35 | +if (!function_exists('module_vite')) { |
|
| 36 | 36 | /** |
| 37 | 37 | * support for vite |
| 38 | 38 | */ |
@@ -31,13 +31,13 @@ |
||
| 31 | 31 | $phpunitXmlPath = base_path('phpunit.xml'); |
| 32 | 32 | $modulesStatusPath = base_path('modules_statuses.json'); |
| 33 | 33 | |
| 34 | - if (! file_exists($phpunitXmlPath)) { |
|
| 34 | + if (!file_exists($phpunitXmlPath)) { |
|
| 35 | 35 | $this->error("phpunit.xml file not found: {$phpunitXmlPath}"); |
| 36 | 36 | |
| 37 | 37 | return 100; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if (! file_exists($modulesStatusPath)) { |
|
| 40 | + if (!file_exists($modulesStatusPath)) { |
|
| 41 | 41 | $this->error("Modules statuses file not found: {$modulesStatusPath}"); |
| 42 | 42 | |
| 43 | 43 | return 99; |