| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | private function supports(Request $request): bool |
||
| 54 | { |
||
| 55 | $contentType = $request->headers->get('Content-Type'); |
||
| 56 | |||
| 57 | foreach ($this->supportedTypes as $supportedType) { |
||
| 58 | if ($supportedType === $contentType || $supportedType === $request->getContentType()) { |
||
| 59 | return true; |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | return false; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |