($mode, bool $hideListing)
| 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 | { |
no outgoing calls
no test coverage detected