Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 2 | protected function processMessage($key, $value, string $indent): MessageInterface |
|
27 | { |
||
28 | 2 | $row = ' | '; |
|
29 | |||
30 | 2 | if (!\is_int($key)) { |
|
31 | 2 | $row .= $key . ':'; |
|
32 | } |
||
33 | |||
34 | 2 | if (\is_array($value)) { |
|
35 | 1 | $this->message .= $row; |
|
36 | 1 | $this->buildMessage($value, $indent); |
|
37 | } else { |
||
38 | 2 | $this->message .= $row . $value; |
|
39 | } |
||
40 | |||
41 | 2 | return $this; |
|
42 | } |
||
44 |