@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | // '@' will stop displaying "Resource Unavailable" error because of file is open some where. |
215 | 215 | // 'unlink($pFilename) !== true' will check if file is deleted successfully. |
216 | 216 | // Throwing exception so that we can handle error easily instead of displaying to users. |
217 | - if( @unlink($pFilename) !== true ) |
|
217 | + if (@unlink($pFilename) !== true) |
|
218 | 218 | throw new WriterException('Could not delete file: ' . $pFilename . ' Please close all applications that are using it.'); |
219 | 219 | } |
220 | 220 | // Try opening the ZIP file |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog); |
401 | 401 | |
402 | 402 | // Close file |
403 | - if ( @$zip->close() === false ) { // updated by [email protected] |
|
403 | + if (@$zip->close() === false) { // updated by [email protected] |
|
404 | 404 | throw new WriterException("Could not close zip file $pFilename."); |
405 | 405 | } |
406 | 406 |