Skip to content

Commit

Permalink
phpcs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alextartan committed Dec 4, 2018
1 parent 523b61e commit 4e2ff06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ArrayToXml/XmlToArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ private function loopNodeChildren(DOMNode $node, array $output)
$output[$temp] = [];
}
$output[$temp][] = $value;
} elseif (
(is_string($value) && $value !== '') ||
(is_array($value) && count($value) !== 0)
) {
} elseif ((is_string($value) && $value !== '') || (is_array($value) && count($value) !== 0)) {
//check if it is not an empty text node
return $value;
}
Expand Down

0 comments on commit 4e2ff06

Please sign in to comment.