@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $file = 'module.json'; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
| 224 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
| 225 | 225 | return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files); |
| 226 | 226 | }); |
| 227 | 227 | } |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | */ |
| 329 | 329 | public function isDisabled(): bool |
| 330 | 330 | { |
| 331 | - return ! $this->isEnabled(); |
|
| 331 | + return !$this->isEnabled(); |
|
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /** |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | { |
| 395 | 395 | return config('modules.register.files', 'register') === 'boot' && |
| 396 | 396 | // force register method if option == boot && app is AsgardCms |
| 397 | - ! class_exists('\Modules\Core\Foundation\AsgardCms'); |
|
| 397 | + !class_exists('\Modules\Core\Foundation\AsgardCms'); |
|
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function hasStatus(Module $module, bool $status): bool |
| 90 | 90 | { |
| 91 | - if (! isset($this->modulesStatuses[$module->getName()])) { |
|
| 91 | + if (!isset($this->modulesStatuses[$module->getName()])) { |
|
| 92 | 92 | return $status === false; |
| 93 | 93 | } |
| 94 | 94 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public function delete(Module $module): void |
| 119 | 119 | { |
| 120 | - if (! isset($this->modulesStatuses[$module->getName()])) { |
|
| 120 | + if (!isset($this->modulesStatuses[$module->getName()])) { |
|
| 121 | 121 | return; |
| 122 | 122 | } |
| 123 | 123 | unset($this->modulesStatuses[$module->getName()]); |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | private function readJson(): array |
| 141 | 141 | { |
| 142 | - if (! $this->files->exists($this->statusesFile)) { |
|
| 142 | + if (!$this->files->exists($this->statusesFile)) { |
|
| 143 | 143 | return []; |
| 144 | 144 | } |
| 145 | 145 | |