Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | public function faviconAction($host) |
||
23 | { |
||
24 | $response = new Response(); |
||
25 | $response->headers->set('Content-Type', Downloader::FAVICON_MIME); |
||
26 | |||
27 | $filename = $this->get('anime_db.downloader')->favicon($host); |
||
28 | |||
29 | return $response->setContent(file_get_contents($filename)); |
||
30 | } |
||
31 | } |
||
32 |