Codestyle fixes
This commit is contained in:
parent
9ba96efc97
commit
867237f567
|
@ -1419,6 +1419,7 @@ class Xlsx extends BaseReader
|
||||||
foreach ($vmlComments as $relName => $relPath) {
|
foreach ($vmlComments as $relName => $relPath) {
|
||||||
// Load VML comments file
|
// Load VML comments file
|
||||||
$relPath = File::realpath(dirname("$dir/$fileWorksheet") . '/' . $relPath);
|
$relPath = File::realpath(dirname("$dir/$fileWorksheet") . '/' . $relPath);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$vmlCommentsFile = simplexml_load_string(
|
$vmlCommentsFile = simplexml_load_string(
|
||||||
$this->securityScanner->scan($this->getFromZipArchive($zip, $relPath)),
|
$this->securityScanner->scan($this->getFromZipArchive($zip, $relPath)),
|
||||||
|
@ -1426,7 +1427,7 @@ class Xlsx extends BaseReader
|
||||||
Settings::getLibXmlLoaderOptions()
|
Settings::getLibXmlLoaderOptions()
|
||||||
);
|
);
|
||||||
$vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
|
$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
|
//Ignore unparsable vmlDrawings. Later they will be moved from $unparsedVmlDrawings to $unparsedLoadedData
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue