1 | <?php |
||
20 | class Util |
||
21 | { |
||
22 | /** |
||
23 | * Remove empty entries at the end of an array. |
||
24 | * |
||
25 | * @param array $lines |
||
26 | * @return array |
||
27 | */ |
||
28 | 8 | public static function trimEmptyLines(array $lines) : array |
|
38 | |||
39 | /** |
||
40 | * Replaces all 'known' line endings with unix \n line endings |
||
41 | * |
||
42 | * @param string $text |
||
43 | * @return string |
||
44 | */ |
||
45 | 5 | public static function normalizeLineEndings(string $text): string |
|
49 | } |
||
50 |