@@ -123,8 +123,9 @@ |
||
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) { |
@@ -169,7 +169,9 @@ |
||
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; |
@@ -59,7 +59,9 @@ |
||
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 |