Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | private function convertArrayToString(Formatter $formatter, array $values): string |
||
48 | { |
||
49 | $string = \implode( |
||
50 | "\n", |
||
51 | \array_map(static fn ($property) => \sprintf( |
||
52 | ' %s%s', |
||
53 | $formatter->title(' '), |
||
54 | $formatter->typecast($property) |
||
55 | ), $values) |
||
56 | ); |
||
57 | |||
58 | return \ltrim($string); |
||
59 | } |
||
61 |