Passed
Push — develop ( 3cb944...e03f3c )
by nguereza
02:52
created
src/Console/Command/MaintenanceCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $this->config = $config;
86 86
 
87 87
         $this->setName('maintenance')
88
-             ->setDescription('Command to manage application maintenance');
88
+                ->setDescription('Command to manage application maintenance');
89 89
 
90 90
         $this->addArgument('type', 'type of action [up|down|status]', 'status', true, true, false, function ($val) {
91 91
             if (!in_array($val, ['up', 'down', 'status'])) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 ));
96 96
             }
97 97
 
98
-             return $val;
98
+                return $val;
99 99
         });
100 100
 
101 101
         $this->addOption(
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $this->setName('maintenance')
88 88
              ->setDescription('Command to manage application maintenance');
89 89
 
90
-        $this->addArgument('type', 'type of action [up|down|status]', 'status', true, true, false, function ($val) {
90
+        $this->addArgument('type', 'type of action [up|down|status]', 'status', true, true, false, function($val) {
91 91
             if (!in_array($val, ['up', 'down', 'status'])) {
92 92
                 throw new RuntimeException(sprintf(
93 93
                     'Invalid argument type [%s], must be one of [up, down, status]',
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             false,
114 114
             true,
115 115
             false,
116
-            function ($val) {
116
+            function($val) {
117 117
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) {
118 118
                     throw new RuntimeException(sprintf(
119 119
                         'Invalid retry value [%s], must be an integer greather than zero',
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             false,
132 132
             true,
133 133
             false,
134
-            function ($val) {
134
+            function($val) {
135 135
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) {
136 136
                     throw new RuntimeException(sprintf(
137 137
                         'Invalid refresh value [%s], must be an integer greather than zero',
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             false,
157 157
             true,
158 158
             false,
159
-            function ($val) {
159
+            function($val) {
160 160
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val < 200 || (int) $val > 505)) {
161 161
                     throw new RuntimeException(sprintf(
162 162
                         'Invalid HTTP status value [%s], must be between 200 and 505',
Please login to merge, or discard this patch.