Total Complexity | 8 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | final class MixedCase implements WordFormatter |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritDoc} |
||
14 | */ |
||
15 | 3 | public function apply(iterable $words): Traversable |
|
19 | } |
||
20 | 3 | } |
|
21 | |||
22 | /** |
||
23 | * @param string $word Word to format. |
||
24 | * @return Traversable<string> Formatted words. May contain duplicates. |
||
25 | */ |
||
26 | 3 | private function formatWord(string $word): Traversable |
|
50 |