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

Method normalizeShareModeValue

src/FileRise/Domain/FolderModel.php:2315–2322  ·  view source on GitHub ↗
($mode, bool $hideListing)

Source from the content-addressed store, hash-verified

2313 }
2314
2315 private static function normalizeShareModeValue($mode, bool $hideListing): string
2316 {
2317 $m = strtolower(trim((string)$mode));
2318 if ($m === 'drop' || $hideListing) {
2319 return 'drop';
2320 }
2321 return 'browse';
2322 }
2323
2324 private static function normalizeShareAllowedTypes($raw): array
2325 {

Callers 2

createShareFolderLinkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected