| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function getLogMessage() { |
||
| 10 | $label = $this->getModelLabel(); |
||
| 11 | $attributes = []; |
||
| 12 | foreach ($this->attributes as $key => $attribute) { |
||
| 13 | $attributes[] = $key . '=' . $attribute; |
||
| 14 | } |
||
| 15 | |||
| 16 | return $label . ' with attributes ' . implode(', ', $attributes) . ' founded more whan one record'; |
||
| 17 | } |
||
| 31 | } |