@@ -143,11 +143,11 @@ discard block |
||
143 | 143 | public function recursiveSearch(string $folder, string $filename): array |
144 | 144 | { |
145 | 145 | // if that folder doesn't exist, then return an empty array to indicate that there is no $filename in such dir |
146 | - if (! is_dir($folder)) { |
|
146 | + if (!is_dir($folder)) { |
|
147 | 147 | return []; |
148 | 148 | } |
149 | 149 | |
150 | - $ignoreFiles = function ($fileInfo) { |
|
150 | + $ignoreFiles = function($fileInfo) { |
|
151 | 151 | $filesToIgnore = ['.git', '.idea']; |
152 | 152 | |
153 | 153 | if (in_array($fileInfo->getFilename(), $filesToIgnore)) { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | return true; |
158 | 158 | }; |
159 | 159 | |
160 | - $dir = new \RecursiveDirectoryIterator($folder, \FilesystemIterator::KEY_AS_PATHNAME|\FilesystemIterator::CURRENT_AS_FILEINFO|\FilesystemIterator::FOLLOW_SYMLINKS); |
|
160 | + $dir = new \RecursiveDirectoryIterator($folder, \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::FOLLOW_SYMLINKS); |
|
161 | 161 | $filtered = new \RecursiveCallbackFilterIterator($dir, $ignoreFiles); |
162 | 162 | $ite = new \RecursiveIteratorIterator($filtered); |
163 | 163 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function all() : array |
207 | 207 | { |
208 | - if (! $this->config('cache.enabled')) { |
|
208 | + if (!$this->config('cache.enabled')) { |
|
209 | 209 | return $this->scan(); |
210 | 210 | } |
211 | 211 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function getCached() |
241 | 241 | { |
242 | - return $this->cache->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
242 | + return $this->cache->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
243 | 243 | return $this->toCollection()->toArray(); |
244 | 244 | }); |
245 | 245 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | { |
329 | 329 | $modules = $this->allEnabled(); |
330 | 330 | |
331 | - uasort($modules, function (Module $a, Module $b) use ($direction) { |
|
331 | + uasort($modules, function(Module $a, Module $b) use ($direction) { |
|
332 | 332 | if ($a->get('priority') === $b->get('priority')) { |
333 | 333 | return 0; |
334 | 334 | } |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | } |
489 | 489 | |
490 | 490 | $path = storage_path('app/modules/modules.used'); |
491 | - if (! $this->getFiles()->exists($path)) { |
|
491 | + if (!$this->getFiles()->exists($path)) { |
|
492 | 492 | $this->getFiles()->put($path, ''); |
493 | 493 | } |
494 | 494 | |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | */ |
583 | 583 | public function isDisabled(string $name) : bool |
584 | 584 | { |
585 | - return ! $this->isEnabled($name); |
|
585 | + return !$this->isEnabled($name); |
|
586 | 586 | } |
587 | 587 | |
588 | 588 | /** |