(array $data)
| 324 | } |
| 325 | |
| 326 | private static function saveResumableIndex(array $data): void |
| 327 | { |
| 328 | $path = self::resumableIndexPath(); |
| 329 | $payload = json_encode($data, JSON_UNESCAPED_SLASHES); |
| 330 | if ($payload === false) { |
| 331 | return; |
| 332 | } |
| 333 | @file_put_contents($path, $payload, LOCK_EX); |
| 334 | } |
| 335 | |
| 336 | private static function markResumablePending(string $folderSan): void |
| 337 | { |
no test coverage detected