Completed
Pull Request — master (#1926)
by Solomon
05:44
created
src/FileRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $paths = array_merge($paths, $this->config('scan.paths'));
119 119
         }
120 120
 
121
-        $paths = array_map(function ($path) {
121
+        $paths = array_map(function($path) {
122 122
             return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*');
123 123
         }, $paths);
124 124
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function scan()
144 144
     {
145
-        if (! empty(self::$modules) && ! $this->app->runningUnitTests()) {
145
+        if (!empty(self::$modules) && !$this->app->runningUnitTests()) {
146 146
             return self::$modules;
147 147
         }
148 148
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $modules = $this->allEnabled();
244 244
 
245
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
245
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
246 246
             if ($a->get('priority') === $b->get('priority')) {
247 247
                 return 0;
248 248
             }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         }
363 363
 
364 364
         $path = storage_path('app/modules/modules.used');
365
-        if (! $this->getFiles()->exists($path)) {
365
+        if (!$this->getFiles()->exists($path)) {
366 366
             $this->getFiles()->put($path, '');
367 367
         }
368 368
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     public function isDisabled(string $name): bool
456 456
     {
457
-        return ! $this->isEnabled($name);
457
+        return !$this->isEnabled($name);
458 458
     }
459 459
 
460 460
     /**
Please login to merge, or discard this patch.