(string $folder)
| 201 | } |
| 202 | |
| 203 | private static function loadFolderMetadata(string $folder): array |
| 204 | { |
| 205 | $path = self::metadataFileForFolder($folder); |
| 206 | if (!is_file($path)) { |
| 207 | return []; |
| 208 | } |
| 209 | $data = json_decode((string)file_get_contents($path), true); |
| 210 | return is_array($data) ? $data : []; |
| 211 | } |
| 212 | |
| 213 | private static function isPublicCreateOnlyUpload(array $post): bool |
| 214 | { |
no test coverage detected