@@ -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; |