Skip to content

Commit

Permalink
Merge pull request #2 from bavix/scrutinizer-patch-2
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
rez1dent3 authored Jan 11, 2018
2 parents 223b4f2 + 4799ce0 commit a360b59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/XMLReader/XMLReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ protected function addNodeWithKey($key, DOMElement $element, $storage)
if ($key === '@attributes')
{
$this->addAttributes($element, $storage);
}
else if ($key === '@value')
} else if ($key === '@value')
{

if (\is_object($storage) && $storage instanceof Raw)
Expand Down Expand Up @@ -325,8 +324,7 @@ protected function addNodeWithKey($key, DOMElement $element, $storage)
}

$element->appendChild($fragment);
}
else
} else
{
$this->addNode($element, $key, $storage);
}
Expand Down

0 comments on commit a360b59

Please sign in to comment.