| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function items() |
||
| 19 | { |
||
| 20 | return [ |
||
| 21 | 'view' => [ |
||
| 22 | 'label' => Yii::t('hipanel', 'View'), |
||
| 23 | 'icon' => 'fa-info', |
||
| 24 | 'url' => ['@config/view', 'id' => $this->model->id], |
||
| 25 | 'visible' => Yii::$app->user->can('config.read'), |
||
|
|
|||
| 26 | ], |
||
| 27 | 'update' => [ |
||
| 28 | 'label' => Yii::t('hipanel', 'Update'), |
||
| 29 | 'icon' => 'fa-pencil', |
||
| 30 | 'url' => ['@config/update', 'id' => $this->model->id], |
||
| 31 | 'visible' => Yii::$app->user->can('config.update'), |
||
| 32 | ], |
||
| 36 |
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.