Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | 3 | protected function generateConversions() |
|
51 | { |
||
52 | 3 | $collection = $this->getCollection(); |
|
|
|||
53 | 3 | $model = $this->getModel(); |
|
54 | 3 | if ($collection && $model) { |
|
55 | 3 | return $model->getMediaConversions()->forCollection($collection->getName()); |
|
56 | } |
||
57 | return new ConversionCollection(); |
||
58 | } |
||
61 |