From 867237f56795ab2890f140a536af6261a9b90df0 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Thu, 30 May 2019 12:14:05 +0200 Subject: [PATCH] Codestyle fixes --- src/PhpSpreadsheet/Reader/Xlsx.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Reader/Xlsx.php b/src/PhpSpreadsheet/Reader/Xlsx.php index 272366d7..31f0cd70 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx.php +++ b/src/PhpSpreadsheet/Reader/Xlsx.php @@ -1419,6 +1419,7 @@ class Xlsx extends BaseReader foreach ($vmlComments as $relName => $relPath) { // Load VML comments file $relPath = File::realpath(dirname("$dir/$fileWorksheet") . '/' . $relPath); + try { $vmlCommentsFile = simplexml_load_string( $this->securityScanner->scan($this->getFromZipArchive($zip, $relPath)), @@ -1426,7 +1427,7 @@ class Xlsx extends BaseReader Settings::getLibXmlLoaderOptions() ); $vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); - } catch(\Throwable $ex) { + } catch (\Throwable $ex) { //Ignore unparsable vmlDrawings. Later they will be moved from $unparsedVmlDrawings to $unparsedLoadedData continue; }