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