Passed
Push — master ( 627661...b4b706 )
by Petr
02:55
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.