Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 3 | protected function applyCurrent(CharTree $charTree): CharTree |
|
39 | { |
||
40 | 3 | $charTrees = []; |
|
41 | |||
42 | 3 | if ($this->includeUnformatted) { |
|
43 | 1 | $charTrees[] = $charTree; |
|
44 | } |
||
45 | |||
46 | 3 | foreach ($this->formatters as $formatter) { |
|
47 | 3 | $charTrees[] = $formatter->apply($charTree); |
|
48 | } |
||
49 | |||
50 | 3 | return CharTree::fromArray($charTrees); |
|
51 | } |
||
53 |