Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function items() |
||
12 | { |
||
13 | return [ |
||
14 | [ |
||
15 | 'label' => Yii::t('hipanel:hosting', 'Domain'), |
||
16 | ], |
||
17 | [ |
||
18 | 'label' => Yii::t('hipanel:hosting', 'DNS records'), |
||
19 | 'color' => '#CCFFCC', |
||
20 | ], |
||
21 | [ |
||
22 | 'label' => Yii::t('hipanel:hosting', 'Alias'), |
||
23 | 'color' => '#CCCCFF', |
||
24 | 'rule' => $this->model->vhost_id !== null, |
||
|
|||
25 | ], |
||
26 | [ |
||
27 | 'label' => Yii::t('hipanel:hosting', 'Name server'), |
||
28 | 'color' => '#FFFFCC', |
||
29 | ], |
||
30 | [ |
||
31 | 'label' => Yii::t('hipanel:hosting', 'Complex domain'), |
||
32 | ], |
||
33 | ]; |
||
34 | } |
||
35 | } |
||
36 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: