(string $folder)
| 7 | private const ROOT_FILE = 'root_metadata.json'; |
| 8 | |
| 9 | public static function folderKey(string $folder): string |
| 10 | { |
| 11 | $folder = trim(str_replace('\\', '/', $folder), "/ \t\n\r\0\x0B"); |
| 12 | if ($folder === '' || strcasecmp($folder, 'root') === 0) { |
| 13 | return 'root'; |
| 14 | } |
| 15 | return $folder; |
| 16 | } |
| 17 | |
| 18 | public static function path(string $metaRoot, string $folder): string |
| 19 | { |
no outgoing calls
no test coverage detected