| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 1 | public function getLogMessage() { |
|
| 10 | 1 | $errors = []; |
|
| 11 | 1 | foreach ($this->errors as $value) { |
|
| 12 | 1 | $errors[] = implode(', ', $value); |
|
| 13 | } |
||
| 14 | |||
| 15 | 1 | return \Yii::t('app', 'Column {column} attribute {attribute} validation errors: {errors}', [ |
|
| 16 | 1 | 'attribute' => $this->attribute, |
|
| 17 | 1 | 'column' => $this->columnNbr, |
|
| 18 | 1 | 'errors' => implode(', ', $errors), |
|
| 19 | ]); |
||
| 24 | } |