| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | protected function doValidation(Response $response) |
||
| 27 | { |
||
| 28 | if (strpos((string) $response->getUri(), 'favicon.ico') === false) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $imageHash = md5($response->getBody()); |
||
| 33 | |||
| 34 | $this->assert(!array_key_exists($imageHash, $this->favicons), 'Seems like you use the standard favicon of your framework (' . $this->favicons[$imageHash] . ').'); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |