Completed
Pull Request — master (#1811)
by
unknown
06:50
created
src/Commands/Actions/ListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function handle(): int
29 29
     {
30 30
         $this->components->twoColumnDetail('<fg=gray>Status / Name</>', '<fg=gray>Path / priority</>');
31
-        collect($this->getRows())->each(function ($row) {
31
+        collect($this->getRows())->each(function($row) {
32 32
 
33 33
             $this->components->twoColumnDetail("[{$row[1]}] {$row[0]}", "{$row[3]} [{$row[2]}]");
34 34
         });
Please login to merge, or discard this patch.
src/Commands/Database/MigrateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
     {
27 27
         $module = $this->getModuleModel($name);
28 28
 
29
-        $this->components->task("Running Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
29
+        $this->components->task("Running Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
30 30
             $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath());
31 31
 
32 32
             if ($this->option('subpath')) {
33
-                $path = $path . "/" . $this->option("subpath");
33
+                $path = $path."/".$this->option("subpath");
34 34
             }
35 35
 
36 36
             $this->call('migrate', [
Please login to merge, or discard this patch.
src/Commands/Database/MigrateRefreshCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $module = $this->getModuleModel($name);
27 27
 
28
-        $this->components->task("Refreshing Migration {$module->getName()} module", function () use ($module) {
28
+        $this->components->task("Refreshing Migration {$module->getName()} module", function() use ($module) {
29 29
             $this->call('module:migrate-reset', [
30 30
                 'module'     => $module->getStudlyName(),
31 31
                 '--database' => $this->option('database'),
Please login to merge, or discard this patch.
src/Commands/Make/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/Make/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/ComposerUpdateCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,21 +24,21 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
 
29
-            $composer_path = $module->getPath() . DIRECTORY_SEPARATOR . 'composer.json';
29
+            $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json';
30 30
 
31 31
             $composer = json_decode(File::get($composer_path), true);
32 32
 
33 33
             $autoload = data_get($composer, 'autoload.psr-4');
34 34
 
35
-            if (! $autoload) {
35
+            if (!$autoload) {
36 36
                 return;
37 37
             }
38 38
 
39 39
             $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName());
40 40
 
41
-            if (! array_key_exists($key_name_with_app, $autoload)) {
41
+            if (!array_key_exists($key_name_with_app, $autoload)) {
42 42
                 return;
43 43
             }
44 44
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         });
54 54
     }
55 55
 
56
-    public function getInfo(): string|null
56
+    public function getInfo(): string | null
57 57
     {
58 58
         return 'Updating Composer.json of modules...';
59 59
     }
Please login to merge, or discard this patch.
src/Commands/Actions/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
-    public function getInfo(): string|null
30
+    public function getInfo(): string | null
31 31
     {
32 32
         return 'Updating Module ...';
33 33
     }
Please login to merge, or discard this patch.
src/Commands/Actions/DisableCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
             ? '<fg=red;options=bold>Disabled</>'
34 34
             : '<fg=green;options=bold>Enabled</>';
35 35
 
36
-        $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) {
36
+        $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) {
37 37
             $module->disable();
38 38
         });
39 39
     }
40 40
 
41
-    public function getInfo(): string|null
41
+    public function getInfo(): string | null
42 42
     {
43 43
         return 'Disabling module ...';
44 44
     }
Please login to merge, or discard this patch.
src/Commands/Actions/UseCommand.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("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
25
+        $this->components->task("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
26 26
             $this->laravel['modules']->setUsed($module);
27 27
         });
28 28
     }
29 29
 
30
-    public function getInfo(): string|null
30
+    public function getInfo(): string | null
31 31
     {
32 32
         return 'Using Module ...';
33 33
     }
Please login to merge, or discard this patch.