Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | public function run() |
||
32 | { |
||
33 | $this->getView()->registerJs("$('.discount-popover').popover();", View::POS_READY, 'discount-popover'); |
||
34 | |||
35 | return Html::tag($this->tagName, |
||
|
|||
36 | Yii::$app->formatter->asPercent($this->current / 100), |
||
37 | [ |
||
38 | 'title' => Yii::t('hipanel:server', 'Next discount'), |
||
39 | 'class' => 'btn btn-default btn-xs discount-popover', |
||
40 | 'data-trigger' => 'focus', |
||
41 | 'data-content' => Yii::$app->formatter->asPercent($this->next / 100), |
||
42 | ]); |
||
45 |