Passed
Push — develop ( 2b0ae3...336d50 )
by Jaime
05:04 queued 02:09
created
src/Clients/WSClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                     $conn->close();
33 33
                 });
34 34
 
35
-            }, function ($e) {
35
+            }, function($e) {
36 36
 
37 37
                 echo "Could not connect: {$e->getMessage()}\n";
38 38
             });
Please login to merge, or discard this patch.
src/RancherApi.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@
 block discarded – undo
49 49
 
50 50
         for ($i = 4; $i <= $argc; $i++) {
51 51
 
52
-            if (!array_key_exists($i, $argv)) break;
52
+            if (!array_key_exists($i, $argv)) {
53
+                break;
54
+            }
53 55
 
54 56
             $this->args['params'][] = $argv[$i];
55 57
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,12 +144,12 @@
 block discarded – undo
144 144
 
145 145
         $newParams = [];
146 146
 
147
-        for ($i = 0; $i < count($params) ;$i++) {
148
-            if (false == strpos($params[$i],'=') && false !== strpos($params[$i],'-')) {
147
+        for ($i = 0; $i < count($params); $i++) {
148
+            if (false == strpos($params[$i], '=') && false !== strpos($params[$i], '-')) {
149 149
 
150 150
                 if ($i + 1 < count($params)) {
151
-                    if (false == strpos($params[$i+1],'=')){
152
-                        $newParams[] = $params[$i] . ' ' . $params[$i+1];
151
+                    if (false == strpos($params[$i + 1], '=')) {
152
+                        $newParams[] = $params[$i] . ' ' . $params[$i + 1];
153 153
                         $i++;
154 154
                     } else {
155 155
                         $newParams[] = $params[$i];
Please login to merge, or discard this patch.
tests/RancherApiTest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@
 block discarded – undo
49 49
 
50 50
         for ($i = 4; $i <= $argc; $i++) {
51 51
 
52
-            if (!array_key_exists($i, $argv)) break;
52
+            if (!array_key_exists($i, $argv)) {
53
+                break;
54
+            }
53 55
 
54 56
             $this->args['params'][] = $argv[$i];
55 57
         }
Please login to merge, or discard this patch.
tests/Clients/WSClientTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                     $conn->close();
33 33
                 });
34 34
 
35
-            }, function ($e) {
35
+            }, function($e) {
36 36
 
37 37
                 echo "Could not connect: {$e->getMessage()}\n";
38 38
             });
Please login to merge, or discard this patch.