Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 13 | private function guessAssetPath ($assetPath) |
|
31 | { |
||
32 | 13 | if (is_array($assetPath) || ($assetPath instanceof \ArrayAccess)) |
|
33 | { |
||
34 | 4 | return (isset($assetPath['permalink'])) ? $assetPath['permalink'] : '/'; |
|
35 | } |
||
36 | 9 | else if (is_null($assetPath)) |
|
37 | { |
||
38 | 1 | return '/'; |
|
39 | } |
||
40 | |||
41 | 8 | return $assetPath; |
|
42 | } |
||
43 | |||
55 | } |