Code Duplication    Length = 7-7 lines in 2 locations

lib/ar/xml.php 2 locations

@@ 373-379 (lines=7) @@
370
			$result = array();
371
			if ( is_array($nodes) || $nodes instanceof Traversable ) {
372
				foreach ( $nodes as $node ) {
373
					if ( !$node instanceof ar_xmlNodeInterface ) {
374
						if ( ar_xml::$autoparse ) {
375
							$node = $this->_tryToParse( $node );
376
						} else {
377
							$node = new ar_xmlNode( $node );
378
						}
379
					}
380
					if ( is_array($node) || $node instanceof Traversable ) {
381
						$subnodes = $this->_normalizeNodes( $node );
382
						foreach ( $subnodes as $subnode ) {
@@ 390-396 (lines=7) @@
387
					}
388
				}
389
			} else {
390
				if ( !$nodes instanceof ar_xmlNode ) {
391
					if ( ar_xml::$autoparse ) {
392
						$nodes = $this->_tryToParse( $nodes );
393
					} else {
394
						$nodes = new ar_xmlNode( $nodes );
395
					}
396
				}
397
				$result[] = $nodes;
398
			}
399
			return $result;