Skip to content

Commit 2caf520

Browse files
authored
Merge pull request #30 from troosan/avoid_double_call_to_function
Simplify calls to libxml_disable_entity_loader
2 parents 9e4d0dd + f601421 commit 2caf520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/XMLReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public function getDomFromZip($zipFile, $xmlFile)
7171
*/
7272
public function getDomFromString($content)
7373
{
74-
$originalLibXMLEntityValue = libxml_disable_entity_loader();
75-
libxml_disable_entity_loader(true);
74+
$originalLibXMLEntityValue = libxml_disable_entity_loader(true);
7675
$this->dom = new \DOMDocument();
7776
$this->dom->loadXML($content);
7877
libxml_disable_entity_loader($originalLibXMLEntityValue);
78+
7979
return $this->dom;
8080
}
8181

0 commit comments

Comments
 (0)