| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 94 | 9 | public function getValue($locale, $fallbackLocale) |
|
| 95 | { |
||
| 96 | 9 | if (isset($this->valueList[0])) { |
|
| 97 | 2 | $return = $this->valueList[0]; |
|
| 98 | 9 | } elseif (isset($this->valueList[$locale])) { |
|
| 99 | 3 | $return = $this->valueList[$locale]; |
|
| 100 | 7 | } elseif (isset($this->valueList[$fallbackLocale])) { |
|
| 101 | 2 | $return = $this->valueList[$fallbackLocale]; |
|
| 102 | 2 | } else { |
|
| 103 | 2 | $return = $this->getIdResource(); |
|
| 104 | } |
||
| 105 | |||
| 106 | 9 | return $return; |
|
| 107 | } |
||
| 108 | } |
||
| 109 |