(string $id)
| 146 | } |
| 147 | |
| 148 | public static function uploadRootForId(string $id): string |
| 149 | { |
| 150 | $src = self::getSourceById($id); |
| 151 | if ($src) { |
| 152 | return self::uploadRootForSource($src); |
| 153 | } |
| 154 | return rtrim((string)UPLOAD_DIR, "/\\") . DIRECTORY_SEPARATOR; |
| 155 | } |
| 156 | |
| 157 | private static function uploadRootForSource(array $src): string |
| 158 | { |
no test coverage detected