Skip to content

Commit b05371d

Browse files
committed
fixed CS
1 parent a97d751 commit b05371d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Encoder/XmlEncoder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public function decode($data, $format, array $context = array())
106106
$data['@'.$nsNode->nodeName] = $nsNode->nodeValue;
107107
}
108108

109-
if (isset($data['@xmlns:xml'])) {
110-
unset($data['@xmlns:xml']);
111-
}
109+
unset($data['@xmlns:xml']);
112110

113111
if (empty($data)) {
114112
return $this->parseXml($rootNode);

Tests/Encoder/XmlEncoderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ protected function getNamespacedXmlSource()
446446
protected function getNamespacedArray()
447447
{
448448
return array(
449-
'@xmlns' => 'http://www.w3.org/2005/Atom',
450-
'@xmlns:app' => 'http://www.w3.org/2007/app',
449+
'@xmlns' => 'http://www.w3.org/2005/Atom',
450+
'@xmlns:app' => 'http://www.w3.org/2007/app',
451451
'@xmlns:media' => 'http://search.yahoo.com/mrss/',
452452
'@xmlns:gd' => 'http://schemas.google.com/g/2005',
453453
'@xmlns:yt' => 'http://gdata.youtube.com/schemas/2007',
@@ -461,7 +461,7 @@ protected function getNamespacedArray()
461461
'item' => array(
462462
array(
463463
'title' => 'title1',
464-
),
464+
),
465465
array(
466466
'title' => 'title2',
467467
)

0 commit comments

Comments
 (0)