| 1 | <?php |
||
| 10 | class MergeSuffix extends AbstractPass |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | 8 | protected function processStrings(array $strings) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Test whether all given strings have the same last element |
||
| 39 | * |
||
| 40 | * @param array[] $strings |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | 7 | protected function hasMatchingSuffix(array $strings) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Test whether this pass can be run on given list of strings |
||
| 59 | * |
||
| 60 | * @param array[] $strings |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | 8 | protected function isEligible(array $strings) |
|
| 67 | } |