| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function run(): string |
||
| 51 | { |
||
| 52 | return Html::tag( |
||
| 53 | 'a', |
||
| 54 | $this->model->{$this->attribute} ?? Yii::t('hipanel', 'Empty'), |
||
| 55 | [ |
||
| 56 | 'class' => 'apply-ptr-change', |
||
| 57 | 'href' => '#', |
||
| 58 | 'data' => [ |
||
| 59 | 'container' => 'body', |
||
| 60 | 'toggle' => 'popover', |
||
| 61 | 'content' => Yii::t( |
||
| 62 | 'hipanel:hosting', |
||
| 63 | 'In order to change you need to {apply}', |
||
| 64 | [ |
||
| 65 | 'apply' => Html::a( |
||
| 66 | Yii::t('hipanel:hosting', 'apply for change of PTR records'), |
||
| 67 | ['@ticket/create'], |
||
| 68 | ['target' => '_blank'] |
||
| 69 | ), |
||
| 70 | ] |
||
| 71 | ), |
||
| 72 | 'placement' => 'top', |
||
| 73 | ], |
||
| 74 | ] |
||
| 75 | ); |
||
| 76 | } |
||
| 77 | } |
||
| 78 |