Completed
Pull Request — master (#1456)
by
unknown
08:51
created
src/Commands/UpdateCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
 
61 61
         if ($name instanceof Module) {
62 62
             $module = $name;
63
-        }else {
63
+        } else {
64 64
             $module = $this->laravel['modules']->findOrFail($name);
65 65
         }
66 66
 
67
-        $this->components->task("Updating {$module->getName()} module", function () use ($module) {
67
+        $this->components->task("Updating {$module->getName()} module", function() use ($module) {
68 68
             $this->laravel['modules']->update($module);
69 69
         });
70 70
         $this->laravel['modules']->update($name);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         if ($name instanceof Module) {
62 62
             $module = $name;
63
-        }else {
63
+        } else {
64 64
             $module = $this->laravel['modules']->findOrFail($name);
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Commands/DisableCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->components->info('Disabling module ...');
31 31
 
32
-        if ($name = $this->argument('module') ) {
32
+        if ($name = $this->argument('module')) {
33 33
             $this->disable($name);
34 34
 
35 35
             return 0;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         if ($name instanceof Module) {
67 67
             $module = $name;
68
-        }else {
68
+        } else {
69 69
             $module = $this->laravel['modules']->findOrFail($name);
70 70
         }
71 71
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     {
66 66
         if ($name instanceof Module) {
67 67
             $module = $name;
68
-        }else {
68
+        } else {
69 69
             $module = $this->laravel['modules']->findOrFail($name);
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/Commands/EnableCommand.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $this->components->info('Enabling module ...');
32 32
 
33
-        if ($name = $this->argument('module') ) {
33
+        if ($name = $this->argument('module')) {
34 34
             $this->enable($name);
35 35
 
36 36
             return 0;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         if ($name instanceof Module) {
68 68
             $module = $name;
69
-        }else {
69
+        } else {
70 70
             $module = $this->laravel['modules']->findOrFail($name);
71 71
         }
72 72
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $module->enable();
75 75
 
76 76
             $this->components->info("Module [{$module}] enabled successful.");
77
-        }else {
77
+        } else {
78 78
             $this->components->warn("Module [{$module}] has already enabled.");
79 79
         }
80 80
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         if ($name instanceof Module) {
68 68
             $module = $name;
69
-        }else {
69
+        } else {
70 70
             $module = $this->laravel['modules']->findOrFail($name);
71 71
         }
72 72
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $module->enable();
75 75
 
76 76
             $this->components->info("Module [{$module}] enabled successful.");
77
-        }else {
77
+        } else {
78 78
             $this->components->warn("Module [{$module}] has already enabled.");
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/Commands/DumpCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->components->info('Generating optimized autoload modules.');
31 31
 
32
-        if ($name = $this->argument('module') ) {
32
+        if ($name = $this->argument('module')) {
33 33
             $this->dump($name);
34 34
 
35 35
             return 0;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $module = $this->laravel['modules']->findOrFail($name);
64 64
         }
65 65
 
66
-        $this->components->task("$module", function () use ($module) {
66
+        $this->components->task("$module", function() use ($module) {
67 67
             chdir($module->getPath());
68 68
 
69 69
             passthru('composer dump -o -n -q');
Please login to merge, or discard this patch.