Passed
Push — master ( 7b4f81...84e0ca )
by Igor
03:22
created
src/Transport/CurlerResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,8 +293,9 @@
 block discarded – undo
293 293
 
294 294
         if (stripos($format, 'json') !== false)
295 295
         {
296
-            if (stripos($format,'JSONEachRow')===false)
297
-            return $this->json();
296
+            if (stripos($format,'JSONEachRow')===false) {
297
+                        return $this->json();
298
+            }
298 299
         }
299 300
         return $this->body();
300 301
 
Please login to merge, or discard this patch.
src/Transport/Http.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -650,8 +650,9 @@
 block discarded – undo
650 650
             }
651 651
             return $response;
652 652
         } finally {
653
-            if ($streamRW->isWrite())
654
-            fclose($stream);
653
+            if ($streamRW->isWrite()) {
654
+                        fclose($stream);
655
+            }
655 656
         }
656 657
 
657 658
 
Please login to merge, or discard this patch.
src/Statement.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -226,8 +226,7 @@  discard block
 block discarded – undo
226 226
                 if ($key=='data')
227 227
                 {
228 228
                     $data=$this->_rawData[$key];
229
-                }
230
-                else{
229
+                } else{
231 230
                     $this->{$key} = $this->_rawData[$key];
232 231
                 }
233 232
 
@@ -247,8 +246,7 @@  discard block
 block discarded – undo
247 246
             if ($isJSONCompact)
248 247
             {
249 248
                 $r[]=$rows;
250
-            }
251
-            else {
249
+            } else {
252 250
                 foreach ($this->meta as $meta) {
253 251
                     $r[$meta['name']] = $rows[$meta['name']];
254 252
                 }
Please login to merge, or discard this patch.