Completed
Push — master ( 3331bf...96fe4f )
by
unknown
14s queued 12s
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/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.
src/Commands/MigrateRollbackCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $name = $this->argument('module');
42 42
 
43
-        if (! empty($name)) {
43
+        if (!empty($name)) {
44 44
             $this->rollback($name);
45 45
 
46 46
             return 0;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $database = $this->option('database');
72 72
 
73
-        if (! empty($database)) {
73
+        if (!empty($database)) {
74 74
             $migrator->setDatabase($database);
75 75
         }
76 76
 
Please login to merge, or discard this patch.