Lines
0.00%
0 / 11
Methods
0.00%
0 / 1
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| toSortableString | 0.00% | 0 / 11 | 0.00% | 0 / 1 | 2 | ||
| 8 | class Sorter | |
| 9 | { | |
| 10 | /** | |
| 11 | * @todo check against ISO definition | |
| 12 | */ | |
| 13 | public static function toSortableString(mixed $string): string | |
| 14 | { | |
| 15 | $string = strtr($string, array( | |
| 16 | 'Ä' => 'Ae', | |
| 17 | 'Ö' => 'Oe', | |
| 18 | 'Ü' => 'Ue', | |
| 19 | 'ä' => 'ae', | |
| 20 | 'ö' => 'oe', | |
| 21 | 'ü' => 'ue', | |
| 22 | 'ß' => 'ss', | |
| 23 | '€' => 'E', | |
| 24 | )); | |
| 25 | return strtolower($string); | |
| 26 | } | |
| 27 | } |