Test Failed
Push — develop ( c6c68e...da64e3 )
by Janusz
06:39 queued 12s
created
src/Twig/CurlFormatter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
             }
54 54
 
55 55
             return sprintf(" --data '%s'", http_build_query($singleCall['params']));
56
-        }
57
-        else
56
+        } else
58 57
         {
59 58
             return '';
60 59
         }
Please login to merge, or discard this patch.
src/DataCollector/ApiDataCollector.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,9 @@
 block discarded – undo
58 58
     public function getTime()
59 59
     {
60 60
         $total = 0;
61
-        foreach($this->data['calls'] as $call)
62
-            $total += $call['time'];
61
+        foreach($this->data['calls'] as $call) {
62
+                    $total += $call['time'];
63
+        }
63 64
 
64 65
         return $total;
65 66
     }
Please login to merge, or discard this patch.
src/Middleware/ApiLoggerMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
         if($request->getHeader('Content-Type') == 'application/json')
41 41
         {
42 42
             $payload = json_decode($request->getBody(), true) ?: [];
43
-        }
44
-        else {
43
+        } else {
45 44
             parse_str($request->getBody(), $payload);
46 45
         }
47 46
 
Please login to merge, or discard this patch.