Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class PatternReplacer implements Replacer |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public function replace( |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param array $map |
||
31 | * @param string $direction |
||
32 | * |
||
33 | * @return string[] |
||
34 | */ |
||
35 | private function buildPatternsAndReplacementsFromMap(array $map, string $direction): array |
||
53 |