| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 11 | public static function collectErrors($model) |
|
| 16 | { |
||
| 17 | 11 | $result = []; |
|
| 18 | /* @var $model Model */ |
||
| 19 | 11 | $models = [$model]; |
|
| 20 | 11 | foreach ($models as $model) { |
|
| 21 | 11 | foreach ($model->getErrors() as $attribute => $errors) { |
|
|
|
|||
| 22 | 11 | $result[Html::getInputId($model, $attribute)] = $errors; |
|
| 23 | } |
||
| 24 | } |
||
| 25 | 11 | return $result; |
|
| 26 | } |
||
| 27 | } |
||
| 28 |
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.