Completed
Push — master ( a734ab...f80ab9 )
by Edwin
28s queued 12s
created
src/EventSubscriber/RestApiEventSubscriber.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,9 @@
 block discarded – undo
92 92
 
93 93
     protected function eventRequestMatches(KernelEvent $event): bool
94 94
     {
95
-        if ($event->getRequest()->getMethod() === Request::METHOD_OPTIONS) return false;
95
+        if ($event->getRequest()->getMethod() === Request::METHOD_OPTIONS) {
96
+            return false;
97
+        }
96 98
 
97 99
         return $this->requestMatcher->matches($event->getRequest(), $event->getRequestType());
98 100
     }
Please login to merge, or discard this patch.
src/Response/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         return parent::setContent($content);
54 54
     }
55 55
 
56
-    public function getContent(): string|false
56
+    public function getContent(): string | false
57 57
     {
58 58
         return serialize($this->customContent);
59 59
     }
Please login to merge, or discard this patch.
src/Response/JsonResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         return $this->customContent;
48 48
     }
49 49
 
50
-    public function getContent(): string|false
50
+    public function getContent(): string | false
51 51
     {
52 52
         return is_string($this->customContent) ? $this->customContent : json_encode($this->customContent);
53 53
     }
Please login to merge, or discard this patch.