8000 Revert code formatting · symfony/symfony@5aa3c5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5aa3c5c

Browse files
author
Marcin Kruk
committed
Revert code formatting
1 parent 7a5cacc commit 5aa3c5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ private function parseXmlAttributes(\DOMNode $node, array $context = [])
304304
$typeCastAttributes = $this->resolveXmlTypeCastAttributes($context);
305305

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

312310
continue;

0 commit comments

Comments
 (0)
0