| Total Complexity | 6 | 
| Total Lines | 46 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | abstract class AbstractMiddleware implements MiddlewareInterface  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * Suffix added to HTML Responses  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | */  | 
            ||
| 15 | protected const HTML_SUFFIX = '<!-- html: in %d b | out %d b | diff %01.4f %% -->';  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * Responses with these MIME types are HTML Responses  | 
            ||
| 19 | * @var string[]  | 
            ||
| 20 | */  | 
            ||
| 21 | protected const HTML_MIME_TYPES  | 
            ||
| 22 | = ['text/html', 'application/xhtml'];  | 
            ||
| 23 | |||
| 24 | 6 | protected function containsHtml(ResponseInterface $response): bool  | 
            |
| 42 | }  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * Return an array of statistics for use in the suffix added to the HTML  | 
            ||
| 46 | */  | 
            ||
| 47 | 2 | protected function getSuffixStatistics(string $original, string $minified): array  | 
            |
| 57 |