Completed
Push — master ( 5f2f6b...82c2e6 )
by
unknown
13s queued 11s
created
src/Migrations/Migrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             return [];
98 98
         }
99 99
 
100
-        $files = array_map(function ($file) {
100
+        $files = array_map(function($file) {
101 101
             return str_replace('.php', '', basename($file));
102 102
         }, $files);
103 103
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $class = Str::studly($name);
204 204
 
205
-        if (! class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) {
205
+        if (!class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) {
206 206
             return include $this->getPath().'/'.$file.'.php';
207 207
         }
208 208
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         $result = $query->orderBy('migration', 'desc')->get();
303 303
 
304
-        return collect($result)->map(function ($item) {
304
+        return collect($result)->map(function($item) {
305 305
             return (array) $item;
306 306
         })->pluck('migration');
307 307
     }
Please login to merge, or discard this patch.
src/Activators/FileActivator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function hasStatus(Module $module, bool $status): bool
113 113
     {
114
-        if (! isset($this->modulesStatuses[$module->getName()])) {
114
+        if (!isset($this->modulesStatuses[$module->getName()])) {
115 115
             return $status === false;
116 116
         }
117 117
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function delete(Module $module): void
143 143
     {
144
-        if (! isset($this->modulesStatuses[$module->getName()])) {
144
+        if (!isset($this->modulesStatuses[$module->getName()])) {
145 145
             return;
146 146
         }
147 147
         unset($this->modulesStatuses[$module->getName()]);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     private function readJson(): array
166 166
     {
167
-        if (! $this->files->exists($this->statusesFile)) {
167
+        if (!$this->files->exists($this->statusesFile)) {
168 168
             return [];
169 169
         }
170 170
 
@@ -179,11 +179,11 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function getModulesStatuses(): array
181 181
     {
182
-        if (! $this->config->get('modules.cache.enabled')) {
182
+        if (!$this->config->get('modules.cache.enabled')) {
183 183
             return $this->readJson();
184 184
         }
185 185
 
186
-        return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function () {
186
+        return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function() {
187 187
             return $this->readJson();
188 188
         });
189 189
     }
Please login to merge, or discard this patch.
src/Generators/ModuleGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         foreach ($this->getFiles() as $stub => $file) {
364 364
             $path = $this->module->getModulePath($this->getName()).$file;
365 365
 
366
-            if (! $this->filesystem->isDirectory($dir = dirname($path))) {
366
+            if (!$this->filesystem->isDirectory($dir = dirname($path))) {
367 367
                 $this->filesystem->makeDirectory($dir, 0775, true);
368 368
             }
369 369
 
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
     {
443 443
         $replacements = $this->module->config('stubs.replacements');
444 444
 
445
-        if (! isset($replacements[$stub])) {
445
+        if (!isset($replacements[$stub])) {
446 446
             return [];
447 447
         }
448 448
 
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
     {
475 475
         $path = $this->module->getModulePath($this->getName()).'module.json';
476 476
 
477
-        if (! $this->filesystem->isDirectory($dir = dirname($path))) {
477
+        if (!$this->filesystem->isDirectory($dir = dirname($path))) {
478 478
             $this->filesystem->makeDirectory($dir, 0775, true);
479 479
         }
480 480
 
Please login to merge, or discard this patch.
src/Generators/FileGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     public function generate()
133 133
     {
134 134
         $path = $this->getPath();
135
-        if (! $this->filesystem->exists($path)) {
135
+        if (!$this->filesystem->exists($path)) {
136 136
             return $this->filesystem->put($path, $this->getContents());
137 137
         }
138 138
         if ($this->overwriteFile === true) {
Please login to merge, or discard this patch.
src/LumenModulesServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
      */
43 43
     protected function registerServices()
44 44
     {
45
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
45
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
46 46
             $path = $app['config']->get('modules.paths.modules');
47 47
 
48 48
             return new Lumen\LumenFileRepository($app, $path);
49 49
         });
50
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
50
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
51 51
             $activator = $app['config']->get('modules.activator');
52 52
             $class     = $app['config']->get('modules.activators.'.$activator)['class'];
53 53
 
Please login to merge, or discard this patch.
src/Process/Updater.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $concatenatedPackages .= "\"{$name}:{$version}\" ";
45 45
         }
46 46
 
47
-        if (! empty($concatenatedPackages)) {
47
+        if (!empty($concatenatedPackages)) {
48 48
             $this->run("composer require {$concatenatedPackages}{$this->isComposerSilenced()}");
49 49
         }
50 50
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $concatenatedPackages .= "\"{$name}:{$version}\" ";
62 62
         }
63 63
 
64
-        if (! empty($concatenatedPackages)) {
64
+        if (!empty($concatenatedPackages)) {
65 65
             $this->run("composer require --dev {$concatenatedPackages}{$this->isComposerSilenced()}");
66 66
         }
67 67
     }
Please login to merge, or discard this patch.
src/Commands/MigrateRefreshCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $module = $this->argument('module');
34 34
 
35
-        if ($module && ! $this->getModuleName()) {
35
+        if ($module && !$this->getModuleName()) {
36 36
             $this->error("Module [$module] does not exists.");
37 37
 
38 38
             return E_ERROR;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $module = $this->argument('module');
82 82
 
83
-        if (! $module) {
83
+        if (!$module) {
84 84
             return null;
85 85
         }
86 86
 
Please login to merge, or discard this patch.