Completed
Push — master ( 9dc639...1aa652 )
by Randall
02:27
created
src/Process/Updater.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $concatenatedPackages .= "\"{$name}:{$version}\" ";
38 38
         }
39 39
 
40
-        if (! empty($concatenatedPackages)) {
40
+        if (!empty($concatenatedPackages)) {
41 41
             $this->run("composer require {$concatenatedPackages}");
42 42
         }
43 43
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $concatenatedPackages .= "\"{$name}:{$version}\" ";
57 57
         }
58 58
 
59
-        if (! empty($concatenatedPackages)) {
59
+        if (!empty($concatenatedPackages)) {
60 60
             $this->run("composer require --dev {$concatenatedPackages}");
61 61
         }
62 62
     }
Please login to merge, or discard this patch.
src/Process/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $process->setTimeout($this->timeout);
139 139
 
140 140
         if ($this->console instanceof Command) {
141
-            $process->run(function ($type, $line) {
141
+            $process->run(function($type, $line) {
142 142
                 $this->console->line($line);
143 143
             });
144 144
         }
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function toArray()
26 26
     {
27
-        return array_map(function ($value) {
27
+        return array_map(function($value) {
28 28
             if ($value instanceof Module) {
29 29
                 $attributes = $value->json()->getAttributes();
30 30
                 $attributes['path'] = $value->getPath();
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $paths = array_merge($paths, $this->config('scan.paths'));
93 93
         }
94 94
 
95
-        return array_map(function ($path) {
95
+        return array_map(function($path) {
96 96
             return ends_with($path, '/*') ? $path : str_finish($path, '/*');
97 97
         }, $paths);
98 98
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function all() : array
139 139
     {
140
-        if (! $this->config('cache.enabled')) {
140
+        if (!$this->config('cache.enabled')) {
141 141
             return $this->scan();
142 142
         }
143 143
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function getCached()
172 172
     {
173
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
173
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
174 174
             return $this->toCollection()->toArray();
175 175
         });
176 176
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     {
256 256
         $modules = $this->allEnabled();
257 257
 
258
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
258
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
259 259
             if ($a->order == $b->order) {
260 260
                 return 0;
261 261
             }
@@ -285,19 +285,19 @@  discard block
 block discarded – undo
285 285
         foreach ($modules as $module) {
286 286
             $path = $module->getExtraPath('config') . '/module-views.php';
287 287
 
288
-            if (! $this->app['files']->exists($path)) {
288
+            if (!$this->app['files']->exists($path)) {
289 289
                 continue;
290 290
             }
291 291
 
292 292
             $moduleViews = $this->app['files']->getRequire($path);
293 293
             $moduleViews = array_get($moduleViews, $moduleKey, []);
294 294
 
295
-            if (! empty($moduleViews)) {
295
+            if (!empty($moduleViews)) {
296 296
                 $viewPartials = array_merge($viewPartials, $moduleViews);
297 297
             }
298 298
         }
299 299
 
300
-        uasort($viewPartials, function ($a, $b) {
300
+        uasort($viewPartials, function($a, $b) {
301 301
             $aPriority = $a['priority'] ?? 0;
302 302
             $bPriority = $b['priority'] ?? 0;
303 303
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     {
408 408
         $module = $this->find($name);
409 409
 
410
-        if (! is_null($module)) {
410
+        if (!is_null($module)) {
411 411
             return $module;
412 412
         }
413 413
 
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 
479 479
         $path = storage_path('app/modules/modules.used');
480 480
 
481
-        if (! $this->app['files']->exists($path)) {
481
+        if (!$this->app['files']->exists($path)) {
482 482
             $this->app['files']->put($path, '');
483 483
         }
484 484
 
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
      */
583 583
     public function disabled($name) : bool
584 584
     {
585
-        return ! $this->enabled($name);
585
+        return !$this->enabled($name);
586 586
     }
587 587
 
588 588
     /**
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
      */
655 655
     public function getStubPath()
656 656
     {
657
-        if (! is_null($this->stubPath)) {
657
+        if (!is_null($this->stubPath)) {
658 658
             return $this->stubPath;
659 659
         }
660 660
 
Please login to merge, or discard this patch.