Passed
Pull Request — master (#9)
by Edwin
13:43
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.