| Conditions | 2 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | protected function columns() |
||
| 18 | { |
||
| 19 | return array_merge(parent::columns(), [ |
||
|
|
|||
| 20 | 'user_comment' => [ |
||
| 21 | 'filterAttribute' => 'user_comment_like', |
||
| 22 | 'value' => function ($model) { |
||
| 23 | return $model->user_comment; |
||
| 24 | }, |
||
| 25 | ], |
||
| 26 | 'server' => [ |
||
| 27 | 'label' => Yii::t('hipanel:server', 'Server'), |
||
| 28 | 'value' => function ($model) { |
||
| 29 | return $model->params['name'] ?: $model->params['server']; |
||
| 30 | }, |
||
| 31 | ], |
||
| 32 | 'time' => [ |
||
| 33 | 'filter' => false, |
||
| 34 | 'value' => function ($model) { |
||
| 35 | return Yii::$app->formatter->asDatetime($model->time); |
||
| 36 | }, |
||
| 37 | ], |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.