@@ -67,11 +67,11 @@ public function testAttributes()
6767 $ obj ->xmlFoo = array (
6868 'foo-bar ' => array (
6969 '@id ' => 1 ,
70- '@name ' => 'Bar '
70+ '@name ' => 'Bar ' ,
7171 ),
7272 'Foo ' => array (
7373 'Bar ' => "Test " ,
74- '@Type ' => 'test '
74+ '@Type ' => 'test ' ,
7575 ),
7676 'föo_bär ' => 'a ' ,
7777 "Bar " => array (1 ,2 ,3 ),
@@ -141,7 +141,7 @@ public function testEncodeScalarRootAttributes()
141141 {
142142 $ array = array (
143143 '# ' => 'Paul ' ,
144- '@gender ' => 'm '
144+ '@gender ' => 'm ' ,
145145 );
146146
147147 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -154,7 +154,7 @@ public function testEncodeRootAttributes()
154154 {
155155 $ array = array (
156156 'firstname ' => 'Paul ' ,
157- '@gender ' => 'm '
157+ '@gender ' => 'm ' ,
158158 );
159159
160160 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -288,7 +288,7 @@ public function testDecodeScalarRootAttributes()
288288
289289 $ expected = array (
290290 '# ' => 'Peter ' ,
291- '@gender ' => 'M '
291+ '@gender ' => 'M ' ,
292292 );
293293
294294 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -302,7 +302,7 @@ public function testDecodeRootAttributes()
302302 $ expected = array (
303303 'firstname ' => 'Peter ' ,
304304 'lastname ' => 'Mac Calloway ' ,
305- '@gender ' => 'M '
305+ '@gender ' => 'M ' ,
306306 );
307307
308308 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -321,8 +321,8 @@ public function testDecodeArray()
321321 $ expected = array (
322322 'people ' => array ('person ' => array (
323323 array ('firstname ' => 'Benjamin ' , 'lastname ' => 'Alexandre ' ),
324- array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' )
325- ))
324+ array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' ),
325+ )),
326326 );
327327
328328 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -345,7 +345,7 @@ public function testDecodeIgnoreWhiteSpace()
345345XML ;
346346 $ expected = array ('person ' => array (
347347 array ('firstname ' => 'Benjamin ' , 'lastname ' => 'Alexandre ' ),
348- array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' )
348+ array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' ),
349349 ));
350350
351351 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -357,11 +357,11 @@ public function testDecodeWithoutItemHash()
357357 $ obj ->xmlFoo = array (
358358 'foo-bar ' => array (
359359 '@key ' => "value " ,
360- 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' )
360+ 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' ),
361361 ),
362362 'Foo ' => array (
363363 'Bar ' => "Test " ,
364- '@Type ' => 'test '
364+ '@Type ' => 'test ' ,
365365 ),
366366 'föo_bär ' => 'a ' ,
367367 "Bar " => array (1 ,2 ,3 ),
@@ -370,11 +370,11 @@ public function testDecodeWithoutItemHash()
370370 $ expected = array (
371371 'foo-bar ' => array (
372372 '@key ' => "value " ,
373- 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' )
373+ 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' ),
374374 ),
375375 'Foo ' => array (
376376 'Bar ' => "Test " ,
377- '@Type ' => 'test '
377+ '@Type ' => 'test ' ,
378378 ),
379379 'föo_bär ' => 'a ' ,
380380 "Bar " => array (1 ,2 ,3 ),
@@ -464,7 +464,7 @@ protected function getNamespacedArray()
464464 ),
465465 array (
466466 'title ' => 'title2 ' ,
467- )
467+ ),
468468 ),
469469 'Barry ' => array (
470470 '@size ' => 'large ' ,
0 commit comments