Skip to content

Commit

Permalink
Revert code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kruk committed Oct 22, 2020
1 parent 7a5cacc commit 5aa3c5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
Expand Up @@ -304,9 +304,7 @@ private function parseXmlAttributes(\DOMNode $node, array $context = [])
$typeCastAttributes = $this->resolveXmlTypeCastAttributes($context);

foreach ($node->attributes as $attr) {
if (!is_numeric($attr->nodeValue) ||
!$typeCastAttributes ||
(isset($attr->nodeValue[1]) && '0' === $attr->nodeValue[0] && '.' !== $attr->nodeValue[1])) {
if (!is_numeric($attr->nodeValue) || !$typeCastAttributes || (isset($attr->nodeValue[1]) && '0' === $attr->nodeValue[0] && '.' !== $attr->nodeValue[1])) {
$data['@'.$attr->nodeName] = $attr->nodeValue;

continue;
Expand Down

0 comments on commit 5aa3c5c

Please sign in to comment.