Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
17 | 2 | public static function getBasePathForMediaOriginal($media) |
|
18 | { |
||
19 | 2 | $basePath = self::getBasePathForMedia($media); |
|
20 | 2 | $originalPath = $media->getCollection()->getOriginalPath(); |
|
21 | 2 | if (!empty($originalPath)) { |
|
22 | $basePath .= DIRECTORY_SEPARATOR . $media->getCollection()->getOriginalPath(); |
||
23 | } |
||
24 | |||
25 | 2 | return $basePath; |
|
26 | } |
||
67 |