| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 21 | public function validate(Response $response) | ||
| 22 |     { | ||
| 23 |         if ($response->getStatus() <= $this->maxStatusCode) { | ||
| 24 |             if ($response->hasHeader('Cache-Control') && false !== strpos($response->getHeader('Cache-Control')[0], 'max-age=0')) { | ||
| 25 |                 throw new ValidationFailedException('max-age=0 was found'); | ||
| 26 | } | ||
| 27 | } | ||
| 28 | } | ||
| 29 | } | ||
| 30 |