Completed
Pull Request — master (#4)
by Thibaud
02:15
created
src/Bundle/EventListener/DecodeJsonBodyRequestListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $request = $event->getRequest();
36 36
         $restAttributes = $request->attributes->get('_rest', []);
37 37
 
38
-        if (! isset($restAttributes['decode_request']) || ! $restAttributes['decode_request']) {
38
+        if (!isset($restAttributes['decode_request']) || !$restAttributes['decode_request']) {
39 39
             return;
40 40
         }
41 41
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $jsonBody = $request->getContent(false);
57 57
         $decodedBody = json_decode($jsonBody, true);
58 58
 
59
-        if (! is_array($decodedBody)) {
59
+        if (!is_array($decodedBody)) {
60 60
             $decodedBody = array();
61 61
         }
62 62
 
Please login to merge, or discard this patch.