* Delete the on-disk snapshot JSON, if present. */
(string $sourceId = '')
| 185 | * Delete the on-disk snapshot JSON, if present. |
| 186 | */ |
| 187 | public static function deleteSnapshot(string $sourceId = ''): bool |
| 188 | { |
| 189 | $path = self::snapshotPath($sourceId); |
| 190 | if (!is_file($path)) { |
| 191 | return false; |
| 192 | } |
| 193 | return @unlink($path); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Absolute path to the snapshot JSON file. |
no test coverage detected