Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | } |
||
27 | |||
28 | public function items() |
||
29 | { |
||
30 | return Yii::$app->user->can('ticket.read') ? [ |
||
31 | 'ticket' => [ |
||
32 | 'label' => $this->render('dashboardItem', array_merge($this->clientWithCounters->getWidgetData('ticket'), [ |
||
33 | 'route' => Url::toRoute('@ticket/index'), |
||
34 | ])), |
||
35 | 'encode' => false, |
||
36 | ], |
||
40 |