($value)
| 183 | } |
| 184 | |
| 185 | private static function normalizeUploadFileName($value): ?string |
| 186 | { |
| 187 | if (!is_scalar($value)) { |
| 188 | return null; |
| 189 | } |
| 190 | $fileName = trim(urldecode((string)$value)); |
| 191 | if (!UploadNamePolicy::isAllowedForWrite($fileName)) { |
| 192 | return null; |
| 193 | } |
| 194 | return $fileName; |
| 195 | } |
| 196 | |
| 197 | private static function metadataFileForFolder(string $folder): string |
| 198 | { |
no test coverage detected