Skip to content

Commit

Permalink
Merge pull request #1 from bavix/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
rez1dent3 authored Sep 26, 2017
2 parents bf4e5d9 + 14ec9ef commit 8c60468
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 @@ -68,8 +68,7 @@ protected function _property(\SimpleXMLElement $element, $property)
if ($properties)
{
$output['@' . $property] = is_array($properties) ?
$properties :
$this->_asArray($properties);
$properties : $this->_asArray($properties);

if (empty($output['@' . $property]))
{
Expand Down Expand Up @@ -193,8 +192,7 @@ public function asArray($mixed)
$data = $this->_simpleXml($mixed);

return $data ?
$this->_asArray($data) :
null;
$this->_asArray($data) : null;
}

/**
Expand Down

0 comments on commit 8c60468

Please sign in to comment.