| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 20% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class ImagineDriver extends AbstractDriver |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | public function manipulate($data, ManipulationSequence $manipulations, $extenstion) |
||
| 19 | { |
||
| 20 | $image = $this->makeImage($data); |
||
| 21 | $this->performManipulations($image, $manipulations); |
||
| 22 | |||
| 23 | $image->encode($extenstion); |
||
| 24 | |||
| 25 | return $image->__toString(); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param $data |
||
| 30 | * |
||
| 31 | * @return Image |
||
| 32 | */ |
||
| 33 | 1 | public function makeImage($data) |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Image $image |
||
| 42 | * @param ManipulationSequence $manipulations |
||
| 43 | */ |
||
| 44 | protected function performManipulations($image, $manipulations) |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param Image $image |
||
| 53 | * @param Manipulation $manipulation |
||
| 54 | */ |
||
| 55 | protected function performManipulation($image, $manipulation) |
||
| 61 |