1 | <?php |
||
10 | class CoalesceSingleCharacterPrefix extends AbstractPass |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 5 | protected function processStrings(array $strings) |
|
34 | |||
35 | /** |
||
36 | * Filter the list of eligible keys and keep those that have at least two matches |
||
37 | * |
||
38 | * @param array[] $eligibleKeys List of lists of keys |
||
39 | * @return array[] |
||
40 | */ |
||
41 | 5 | protected function filterEligibleKeys(array $eligibleKeys) |
|
54 | |||
55 | /** |
||
56 | * Get a list of keys of strings eligible to be merged together, grouped by suffix |
||
57 | * |
||
58 | * @param array[] $strings |
||
59 | * @return array[] |
||
60 | */ |
||
61 | 5 | protected function getEligibleKeys(array $strings) |
|
75 | } |