Completed
Push — master ( cc0ba2...442efb )
by Janusz
11:53 queued 04:30
created
src/Twig/CurlFormatter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $output = '';
34 34
 
35
-        foreach($request_headers as $key => $value)
35
+        foreach ($request_headers as $key => $value)
36 36
         {
37 37
             $output .= sprintf(' -H "%s: %s"', $key, is_array($value) ? $value[0] : $value);
38 38
         }
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
     private function formatParams($singleCall)
44 44
     {
45
-        if($singleCall['method'] != 'GET')
45
+        if ($singleCall['method'] != 'GET')
46 46
         {
47
-            foreach($singleCall['request_headers'] as $key => $value)
47
+            foreach ($singleCall['request_headers'] as $key => $value)
48 48
             {
49
-                if($key == 'Content-Type' && (is_array($value) ? $value[0] : $value) ==  'application/json')
49
+                if ($key == 'Content-Type' && (is_array($value) ? $value[0] : $value) == 'application/json')
50 50
                 {
51 51
                     return sprintf(" --data '%s'", json_encode($singleCall['params']));
52 52
                 }
Please login to merge, or discard this patch.
src/Middleware/ApiLoggerMiddleware.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $time = microtime(true) - $this->startTime;
39 39
 
40
-        if($request->getHeader('Content-Type') == 'application/json')
40
+        if ($request->getHeader('Content-Type') == 'application/json')
41 41
         {
42 42
             $payload = json_decode($request->getBody(), true) ?: [];
43 43
         }
Please login to merge, or discard this 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.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $treeBuilder = new TreeBuilder('nixilla_api_logger');
13 13
 
14
-        if ( ! method_exists($treeBuilder, 'getRootNode')) {
14
+        if (!method_exists($treeBuilder, 'getRootNode')) {
15 15
             $treeBuilder->root('nixilla_api_logger');
16 16
         }
17 17
 
Please login to merge, or discard this patch.