Completed
Push — master ( 8d1efe...0b6479 )
by
unknown
07:43 queued 29s
created
src/Migrations/Migrator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
     public function getMigrations($reverse = false)
100 100
     {
101 101
         if (!empty($this->subpath)) {
102
-            $files = $this->laravel['files']->glob($this->getPath() . '/' . $this->subpath);
102
+            $files = $this->laravel['files']->glob($this->getPath().'/'.$this->subpath);
103 103
         } else {
104
-            $files = $this->laravel['files']->glob($this->getPath() . '/*_*.php');
104
+            $files = $this->laravel['files']->glob($this->getPath().'/*_*.php');
105 105
         }
106 106
 
107 107
         // Once we have the array of files in the directory we will just remove the
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             return [];
112 112
         }
113 113
 
114
-        $files = array_map(function ($file) {
114
+        $files = array_map(function($file) {
115 115
             return str_replace('.php', '', basename($file));
116 116
         }, $files);
117 117
 
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
 
217 217
         $class = Str::studly($name);
218 218
 
219
-        if (!class_exists($class) && file_exists($this->getPath() . '/' . $file . '.php')) {
220
-            return include $this->getPath() . '/' . $file . '.php';
219
+        if (!class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) {
220
+            return include $this->getPath().'/'.$file.'.php';
221 221
         }
222 222
 
223 223
         return new $class();
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
     {
233 233
         $path = $this->getPath();
234 234
         foreach ($files as $file) {
235
-            $this->laravel['files']->requireOnce($path . '/' . $file . '.php');
235
+            $this->laravel['files']->requireOnce($path.'/'.$file.'.php');
236 236
         }
237 237
     }
238 238
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
         $result = $query->orderBy('migration', 'desc')->get();
317 317
 
318
-        return collect($result)->map(function ($item) {
318
+        return collect($result)->map(function($item) {
319 319
             return (array) $item;
320 320
         })->pluck('migration');
321 321
     }
Please login to merge, or discard this patch.
src/Commands/ChannelMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $channelPath = GenerateConfigReader::read('channels');
63 63
 
64
-        return $path . $channelPath->getPath() . '/' . $this->getFileName() . '.php';
64
+        return $path.$channelPath->getPath().'/'.$this->getFileName().'.php';
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
src/Commands/SeedMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
         $seederPath = GenerateConfigReader::read('seeder');
75 75
 
76
-        return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php';
76
+        return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php';
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
src/Commands/ObserverMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $path = str_replace('/', '\\', $path);
74 74
 
75
-        return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path;
75
+        return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path;
76 76
     }
77 77
 
78 78
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $observerPath = GenerateConfigReader::read('observer');
102 102
 
103
-        return $path . $observerPath->getPath() . '/' . $this->getFileName();
103
+        return $path.$observerPath->getPath().'/'.$this->getFileName();
104 104
     }
105 105
 
106 106
     /**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function getFileName()
110 110
     {
111
-        return Str::studly($this->argument('name')) . 'Observer.php';
111
+        return Str::studly($this->argument('name')).'Observer.php';
112 112
     }
113 113
 
114 114
 
Please login to merge, or discard this patch.
src/Commands/ModelPruneCommand.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -70,15 +70,15 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function models(): Collection
72 72
     {
73
-        if (! empty($models = $this->option('model'))) {
74
-            return collect($models)->filter(function ($model) {
73
+        if (!empty($models = $this->option('model'))) {
74
+            return collect($models)->filter(function($model) {
75 75
                 return class_exists($model);
76 76
             })->values();
77 77
         }
78 78
 
79 79
         $except = $this->option('except');
80 80
 
81
-        if (! empty($models) && ! empty($except)) {
81
+        if (!empty($models) && !empty($except)) {
82 82
             throw new InvalidArgumentException('The --models and --except options cannot be combined.');
83 83
         }
84 84
 
@@ -96,22 +96,22 @@  discard block
 block discarded – undo
96 96
         }
97 97
 
98 98
         return collect(Finder::create()->in($path)->files()->name('*.php'))
99
-            ->map(function ($model) {
99
+            ->map(function($model) {
100 100
 
101 101
                 $namespace = config('modules.namespace');
102
-                return $namespace . str_replace(
102
+                return $namespace.str_replace(
103 103
                         ['/', '.php'],
104 104
                         ['\\', ''],
105 105
                         Str::after($model->getRealPath(), realpath(config('modules.paths.modules')))
106 106
                     );
107 107
             })->values()
108
-            ->when(! empty($except), function ($models) use ($except) {
109
-                return $models->reject(function ($model) use ($except) {
108
+            ->when(!empty($except), function($models) use ($except) {
109
+                return $models->reject(function($model) use ($except) {
110 110
                     return in_array($model, $except);
111 111
                 });
112
-            })->filter(function ($model) {
112
+            })->filter(function($model) {
113 113
                 return class_exists($model);
114
-            })->filter(function ($model) {
114
+            })->filter(function($model) {
115 115
                 return $this->isPrunable($model);
116 116
             })->values();
117 117
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
                 config('modules.paths.modules'),
88 88
                 config('modules.paths.generator.model.path')
89 89
             );
90
-        }
91
-        else {
90
+        } else {
92 91
             $path = sprintf('%s/{%s}/%s',
93 92
                 config('modules.paths.modules'),
94 93
                 collect($this->argument('module'))->implode(','),
Please login to merge, or discard this patch.
src/Commands/BaseCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     abstract function executeAction($name);
41 41
 
42
-    public function getInfo(): string|null
42
+    public function getInfo(): string | null
43 43
     {
44 44
         return NULL;
45 45
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function handle()
51 51
     {
52
-        if (! is_null($info = $this->getInfo())) {
52
+        if (!is_null($info = $this->getInfo())) {
53 53
             $this->components->info($info);
54 54
         }
55 55
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return;
70 70
         }
71 71
 
72
-        if (! empty($input->getArgument('module'))) {
72
+        if (!empty($input->getArgument('module'))) {
73 73
             return;
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Commands/UnUseCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
             $this->laravel['modules']->forgetUsed($module);
29 29
         });
30 30
     }
31 31
 
32
-    function getInfo(): string|null
32
+    function getInfo(): string | null
33 33
     {
34 34
         return 'Forget Using Module ...';
35 35
     }
Please login to merge, or discard this patch.
src/Commands/UpdateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
     {
23 23
         $module = $this->getModuleModel($name);
24 24
 
25
-        $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
25
+        $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
26 26
             $this->laravel['modules']->update($module);
27 27
         });
28 28
     }
29 29
 
30
-    function getInfo(): string|null
30
+    function getInfo(): string | null
31 31
     {
32 32
         return 'Updating Module ...';
33 33
     }
Please login to merge, or discard this patch.
src/Commands/PublishCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $module = $this->getModuleModel($name);
27 27
 
28
-        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
28
+        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
29 29
             with(new AssetPublisher($module))
30 30
                 ->setRepository($this->laravel['modules'])
31 31
                 ->setConsole($this)
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     }
36 36
 
37
-    function getInfo(): string|null
37
+    function getInfo(): string | null
38 38
     {
39 39
         return 'Publishing module asset files ...';
40 40
     }
Please login to merge, or discard this patch.