lint: fix php

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-05-05 17:12:04 -07:00
parent 774d249751
commit 1309f6bcbd
1 changed files with 2 additions and 2 deletions

View File

@ -98,12 +98,12 @@ class Places
$filename = sys_get_temp_dir().'/planet_coarse_boundaries.zip'; $filename = sys_get_temp_dir().'/planet_coarse_boundaries.zip';
if (file_exists($filename) && !unlink($filename)) { if (file_exists($filename) && !unlink($filename)) {
throw new \Exception("Failed to delete old planet zip file: $filename"); throw new \Exception("Failed to delete old planet zip file: {$filename}");
} }
$txtfile = sys_get_temp_dir().'/planet_coarse_boundaries.txt'; $txtfile = sys_get_temp_dir().'/planet_coarse_boundaries.txt';
if (file_exists($txtfile) && !unlink($txtfile)) { if (file_exists($txtfile) && !unlink($txtfile)) {
throw new \Exception("Failed to delete old planet data file: $txtfile"); throw new \Exception("Failed to delete old planet data file: {$txtfile}");
} }
$fp = fopen($filename, 'w+'); $fp = fopen($filename, 'w+');