| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function displayPrepaidAmount() |
||
| 28 | { |
||
| 29 | $quantity = $this->getPrepaidQuantity(); |
||
| 30 | |||
| 31 | // todo: uncomment after adding commerce pages |
||
| 32 | // if ($quantity == 1) { |
||
| 33 | // return Yii::t('hipanel:finance:tariff', 'Bronze'); |
||
| 34 | // } elseif ($quantity == 1.5) { |
||
| 35 | // return Yii::t('hipanel:finance:tariff', 'Silver'); |
||
| 36 | // } elseif ($quantity == 2) { |
||
| 37 | // return Yii::t('hipanel:finance:tariff', 'Gold'); |
||
| 38 | // } elseif ($quantity == 3) { |
||
| 39 | // return Yii::t('hipanel:finance:tariff', 'Platinum'); |
||
| 40 | // } |
||
| 41 | |||
| 42 | return Yii::t('hipanel:finance:tariff', '{n, plural, one{# hour} other{# hours}}', ['n' => $quantity]); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |