Completed
Pull Request — develop (#693)
by
unknown
80:11 queued 15:08
created
src/PhpSpreadsheet/Writer/Xlsx.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,8 +214,9 @@
 block discarded – undo
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 )
218
-                    throw new WriterException('Could not delete file: ' . $pFilename . ' Please close all applications that are using it.');
217
+                if( @unlink($pFilename) !== true ) {
218
+                                    throw new WriterException('Could not delete file: ' . $pFilename . ' Please close all applications that are using it.');
219
+                }
219 220
             }
220 221
             // Try opening the ZIP file
221 222
             if ($zip->open($pFilename, ZipArchive::OVERWRITE) !== true) {
Please login to merge, or discard this patch.