(string $folder)
| 24 | } |
| 25 | |
| 26 | public static function normalizeFolder(string $folder): string |
| 27 | { |
| 28 | $f = trim(str_replace('\\', '/', $folder), "/ \t\r\n"); |
| 29 | return ($f === '' || $f === 'root') ? 'root' : $f; |
| 30 | } |
| 31 | |
| 32 | /** Normalize hex (accepts #RGB or #RRGGBB, returns #RRGGBB) */ |
| 33 | public static function normalizeHex(?string $hex): ?string |
no outgoing calls
no test coverage detected