Completed
Push — master ( ab77c9...43e42d )
by
unknown
05:51
created
src/Process/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         $process->setTimeout($this->timeout);
136 136
 
137 137
         if ($this->console instanceof Command) {
138
-            $process->run(function ($type, $line) {
138
+            $process->run(function($type, $line) {
139 139
                 $this->console->line($line);
140 140
             });
141 141
         }
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/LaravelModulesServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs';
38 38
         Stub::setBasePath($path);
39 39
 
40
-        $this->app->booted(function ($app) {
40
+        $this->app->booted(function($app) {
41 41
             /** @var RepositoryInterface $moduleRepository */
42 42
             $moduleRepository = $app[RepositoryInterface::class];
43 43
             if ($moduleRepository->config('stubs.enabled') === true) {
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function registerServices()
53 53
     {
54
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
54
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
55 55
             $path = $app['config']->get('modules.paths.modules');
56 56
 
57 57
             return new Laravel\LaravelFileRepository($app, $path);
58 58
         });
59
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
59
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
60 60
             $activator = $app['config']->get('modules.activator');
61 61
             $class     = $app['config']->get('modules.activators.'.$activator)['class'];
62 62
 
Please login to merge, or discard this patch.
src/Publishing/Publisher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,17 +169,17 @@
 block discarded – undo
169 169
      */
170 170
     public function publish()
171 171
     {
172
-        if (! $this->console instanceof Command) {
172
+        if (!$this->console instanceof Command) {
173 173
             $message = "The 'console' property must instance of \\Illuminate\\Console\\Command.";
174 174
 
175 175
             throw new \RuntimeException($message);
176 176
         }
177 177
 
178
-        if (! $this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) {
178
+        if (!$this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) {
179 179
             return;
180 180
         }
181 181
 
182
-        if (! $this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) {
182
+        if (!$this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) {
183 183
             $this->getFilesystem()->makeDirectory($destinationPath, 0775, true);
184 184
         }
185 185
 
Please login to merge, or discard this patch.
src/FileRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
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
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function all() : array
195 195
     {
196
-        if (! $this->config('cache.enabled')) {
196
+        if (!$this->config('cache.enabled')) {
197 197
             return $this->scan();
198 198
         }
199 199
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function getCached()
229 229
     {
230
-        return $this->cache->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
230
+        return $this->cache->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
231 231
             return $this->toCollection()->toArray();
232 232
         });
233 233
     }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
         $modules = $this->allEnabled();
318 318
 
319
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
319
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
320 320
             if ($a->get('priority') === $b->get('priority')) {
321 321
                 return 0;
322 322
             }
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
         }
479 479
 
480 480
         $path = storage_path('app/modules/modules.used');
481
-        if (! $this->getFiles()->exists($path)) {
481
+        if (!$this->getFiles()->exists($path)) {
482 482
             $this->getFiles()->put($path, '');
483 483
         }
484 484
 
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     public function isDisabled(string $name) : bool
574 574
     {
575
-        return ! $this->isEnabled($name);
575
+        return !$this->isEnabled($name);
576 576
     }
577 577
 
578 578
     /**
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('module_path')) {
3
+if (!function_exists('module_path')) {
4 4
     function module_path($name, $path = '')
5 5
     {
6 6
         $module = app('modules')->find($name);
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     }
10 10
 }
11 11
 
12
-if (! function_exists('config_path')) {
12
+if (!function_exists('config_path')) {
13 13
     /**
14 14
      * Get the configuration path.
15 15
      *
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     }
23 23
 }
24 24
 
25
-if (! function_exists('public_path')) {
25
+if (!function_exists('public_path')) {
26 26
     /**
27 27
      * Get the path to the public folder.
28 28
      *
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             $file = 'module.json';
264 264
         }
265 265
 
266
-        return Arr::get($this->moduleJson, $file, function () use ($file) {
266
+        return Arr::get($this->moduleJson, $file, function() use ($file) {
267 267
             return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files);
268 268
         });
269 269
     }
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      */
387 387
     public function isDisabled() : bool
388 388
     {
389
-        return ! $this->isEnabled();
389
+        return !$this->isEnabled();
390 390
     }
391 391
 
392 392
     /**
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     {
461 461
         return config('modules.register.files', 'register') === 'boot' &&
462 462
             // force register method if option == boot && app is AsgardCms
463
-            ! class_exists('\Modules\Core\Foundation\AsgardCms');
463
+            !class_exists('\Modules\Core\Foundation\AsgardCms');
464 464
     }
465 465
 
466 466
     private function flushCache(): void
Please login to merge, or discard this patch.
src/Commands/ModuleMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                 ->setConsole($this)
42 42
                 ->setForce($this->option('force'))
43 43
                 ->setType($this->getModuleType())
44
-                ->setActive(! $this->option('disabled'))
44
+                ->setActive(!$this->option('disabled'))
45 45
                 ->generate();
46 46
 
47 47
             if ($code === E_ERROR) {
Please login to merge, or discard this patch.
src/Commands/SetupCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     protected function generateDirectory($dir, $success, $error) : int
66 66
     {
67
-        if (! $this->laravel['files']->isDirectory($dir)) {
67
+        if (!$this->laravel['files']->isDirectory($dir)) {
68 68
             $this->laravel['files']->makeDirectory($dir, 0755, true, true);
69 69
 
70 70
             $this->info($success);
Please login to merge, or discard this patch.