| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 18 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 5 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 24 | 6 | protected function containsHtml(ResponseInterface $response): bool  | 
            |
| 25 |     { | 
            ||
| 26 | 6 |         $header = $response->getHeader('Content-Type'); | 
            |
| 27 | |||
| 28 | 6 |         if ([] === $header) { | 
            |
| 29 | 2 | return false;  | 
            |
| 30 | }  | 
            ||
| 31 | |||
| 32 | 4 |         foreach (self::HTML_MIME_TYPES as $needle) { | 
            |
| 33 | 4 |             foreach ($header as $haystack) { | 
            |
| 34 | 4 | $pos = strpos($haystack, $needle);  | 
            |
| 35 | 4 |                 if (is_int($pos)) { | 
            |
| 36 | 2 | return true;  | 
            |
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | 2 | return false;  | 
            |
| 42 | }  | 
            ||
| 57 |