Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
41 | 4 | public function __construct($type, $indent, array $strings, array $placeholders = [], $output = true) |
|
42 | { |
||
43 | 4 | $indent = implode(' ', array_fill_keys(range(0, $indent), '')) . "<$type>"; |
|
44 | 4 | $this->message = vsprintf($indent . implode("\n</$type>$indent", $strings) . "</$type>", $placeholders); |
|
45 | |||
46 | 4 | if (null === self::$console) { |
|
47 | 4 | self::$console = new ConsoleOutput(); |
|
48 | 4 | } |
|
49 | |||
50 | 4 | if ($output) { |
|
51 | $this->output(); |
||
52 | } |
||
53 | 4 | } |
|
54 | |||
71 |