Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
11 | public function items() |
||
12 | { |
||
13 | $actions = ConfigActionsMenu::create(['model' => $this->model])->items(); |
||
14 | $items = array_merge($actions, [ |
||
15 | 'delete' => [ |
||
16 | 'label' => Yii::t('hipanel', 'Delete'), |
||
17 | 'icon' => 'fa-trash', |
||
18 | 'url' => ['@config/delete', 'id' => $this->model->id], |
||
19 | 'encode' => false, |
||
20 | 'visible' => Yii::$app->user->can('config.delete'), |
||
|
|||
21 | 'linkOptions' => [ |
||
22 | 'data' => [ |
||
23 | 'confirm' => Yii::t('hipanel', 'Are you sure you want to delete this item?'), |
||
24 | 'method' => 'POST', |
||
25 | 'pjax' => '0', |
||
26 | ], |
||
27 | ], |
||
28 | ], |
||
29 | ]); |
||
30 | unset($items['view']); |
||
31 | |||
32 | return $items; |
||
33 | } |
||
35 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.