Code Duplication    Length = 7-7 lines in 2 locations

lib/ar/xml.php 2 locations

@@ 938-944 (lines=7) @@
935
				case 'nodeValue':
936
					$this->nodeValue = $value;
937
				break;
938
				case 'parentNode':
939
					if ( $value === $this || !( $value instanceof ar_xmlElement ) ) {
940
						$this->parentNode = null;
941
					} else {
942
						$this->parentNode = $value;
943
					}
944
				break;
945
			}
946
		}
947
@@ 1134-1140 (lines=7) @@
1131
				case 'previousSibling':
1132
				case 'nextSibling':
1133
				break;
1134
				case 'parentNode':
1135
					if ( $value === $this || !($value instanceof ar_xmlElement) ) {
1136
						$this->parentNode = null;
1137
					} else {
1138
						$this->parentNode = $value;
1139
					}
1140
				break;
1141
				case 'nodeValue':
1142
					if ( isset($this->childNodes) && count($this->childNodes) ) {
1143
						$this->removeChild( $this->childNodes );