Completed
Push — master ( ecea05...a7e643 )
by
unknown
08:06
created
src/FileRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $paths = array_merge($paths, $this->config('scan.paths'));
116 116
         }
117 117
 
118
-        $paths = array_map(function ($path) {
118
+        $paths = array_map(function($path) {
119 119
             return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*');
120 120
         }, $paths);
121 121
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function all(): array
165 165
     {
166
-        if (! $this->config('cache.enabled')) {
166
+        if (!$this->config('cache.enabled')) {
167 167
             return $this->scan();
168 168
         }
169 169
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function getCached()
198 198
     {
199
-        return $this->cache->store($this->config->get('modules.cache.driver'))->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
199
+        return $this->cache->store($this->config->get('modules.cache.driver'))->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
200 200
             return $this->toCollection()->toArray();
201 201
         });
202 202
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $modules = $this->allEnabled();
269 269
 
270
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
270
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
271 271
             if ($a->get('priority') === $b->get('priority')) {
272 272
                 return 0;
273 273
             }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         }
393 393
 
394 394
         $path = storage_path('app/modules/modules.used');
395
-        if (! $this->getFiles()->exists($path)) {
395
+        if (!$this->getFiles()->exists($path)) {
396 396
             $this->getFiles()->put($path, '');
397 397
         }
398 398
 
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
      */
483 483
     public function isDisabled(string $name): bool
484 484
     {
485
-        return ! $this->isEnabled($name);
485
+        return !$this->isEnabled($name);
486 486
     }
487 487
 
488 488
     /**
Please login to merge, or discard this patch.