| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 5 | protected function applyCurrent(CharTree $charTree): CharTree |
|
| 30 | { |
||
| 31 | 5 | $formatted = []; |
|
| 32 | |||
| 33 | 5 | foreach ($charTree->getTreeTrimmedToLength(1) as $char) { |
|
| 34 | 5 | $branches = [$this->lowerCaseCoder->apply($charTree->getBranchesAfterRoot($char))]; |
|
| 35 | 5 | $formatted[] = CharTree::fromString(mb_strtoupper($char), $branches); |
|
| 36 | } |
||
| 37 | |||
| 38 | 5 | return CharTree::fromArray($formatted); |
|
| 39 | } |
||
| 41 |