Passed
Branch master (627661)
by Petr
13:07
created
php-src/Application/RouteListFactory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,9 @@
 block discarded – undo
123 123
         $routeData = [];
124 124
         foreach ($methods as $method) {
125 125
             // Parse annotations only on action methods
126
-            if (!str_contains($method->getName(), 'action'))
127
-                continue;
126
+            if (!str_contains($method->getName(), 'action')) {
127
+                            continue;
128
+            }
128 129
 
129 130
             $annotations = $this->routeAnnotation->parse($method);
130 131
             foreach ($annotations as $requestMethod => $mask) {
Please login to merge, or discard this patch.
php-src/Application/ResponseFactory.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,9 @@
 block discarded – undo
169 169
             return $acceptableTypes[0];
170 170
         }
171 171
         foreach ($accept as $mimeType) {
172
-            if ('*/*' === $mimeType) return $acceptableTypes[0];
172
+            if ('*/*' === $mimeType) {
173
+                return $acceptableTypes[0];
174
+            }
173 175
             foreach ($acceptableTypes as $formatMime) {
174 176
                 if (empty($formatMime)) {
175 177
                     continue;
Please login to merge, or discard this patch.
php-src/Application/MethodOptions.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,9 @@
 block discarded – undo
59 59
         foreach ($router->getRouters() as $route) {
60 60
             if ($route instanceof IResourceRouter && !$route instanceof Traversable) {
61 61
                 $methodFlag = $this->getMethodFlag($route);
62
-                if (!$methodFlag) continue;
62
+                if (!$methodFlag) {
63
+                    continue;
64
+                }
63 65
 
64 66
                 $request = $this->createAcceptableRequest($url, $methodFlag);
65 67
 
Please login to merge, or discard this patch.