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