Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
31 | 8 | public function convert(ContentProviderInterface $provider) |
|
32 | { |
||
33 | 8 | $hexColor = $this->extractor->extract($provider->getContent()); |
|
34 | |||
35 | $gif = <<<GIF |
||
36 | 8 | 47494638396101000100800100{$hexColor}0000002c00000000010001000002024401003b |
|
37 | 4 | GIF; |
|
38 | |||
39 | 8 | return base64_encode( |
|
40 | 4 | hex2bin($gif) |
|
41 | 4 | ); |
|
42 | } |
||
43 | } |
||
44 |