Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function items() |
||
19 | { |
||
20 | return [ |
||
21 | 'header' => [ |
||
22 | 'label' => $this->render('userMenuHeader'), |
||
23 | ], |
||
24 | 'profile' => [ |
||
25 | 'label' => Yii::t('hipanel', 'Profile'), |
||
26 | 'url' => ['/site/profile'], |
||
27 | ], |
||
28 | 'logout' => [ |
||
29 | 'label' => Yii::t('hipanel', 'Sign out'), |
||
30 | 'url' => ['/site/logout'], |
||
31 | ], |
||
32 | |||
33 | 'deposit' => [ |
||
34 | 'label' => Yii::t('hipanel', 'Recharge account'), |
||
35 | 'url' => ['@pay/deposit'], |
||
36 | 'visible' => Yii::$app->user->can('deposit'), |
||
37 | ], |
||
38 | 'ticket' => [ |
||
39 | 'label' => Yii::t('hipanel', 'Create ticket'), |
||
40 | 'url' => ['@ticket/create'], |
||
41 | ], |
||
42 | ]; |
||
43 | } |
||
44 | } |
||
45 |