MCPcopy Create free account
hub / github.com/error311/FileRise / normalizeFolder

Method normalizeFolder

src/FileRise/Domain/FolderMeta.php:26–30  ·  view source on GitHub ↗
(string $folder)

Source from the content-addressed store, hash-verified

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

Callers 12

setColorMethod · 0.95
migrateSubtreeMethod · 0.95
metadataFileForFolderMethod · 0.45
sanitizeFolderMethod · 0.45
emitUploadEventMethod · 0.45
normalizeKeyMethod · 0.45
countVisibleMethod · 0.45
countVisibleDeepMethod · 0.45
splitFolderSegmentsMethod · 0.45
listChildrenMethod · 0.45
listChildrenRemoteMethod · 0.45
createFolderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected