Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
16 | public function generate(MediaInterface $media, array $parameters) |
||
17 | { |
||
18 | $parametersFlat = []; |
||
19 | foreach ($parameters as $k => $v) { |
||
20 | $parametersFlat[] = $k.$v; |
||
21 | } |
||
22 | |||
23 | return pathinfo($media->getImage(), PATHINFO_FILENAME). |
||
24 | '/'.implode('_', $parametersFlat). |
||
25 | '.'.$this->getFormat($parameters); |
||
26 | } |
||
27 | |||
41 |