Code Duplication    Length = 7-7 lines in 2 locations

lib/ar/xml.php 2 locations

@@ 990-996 (lines=7) @@
987
			}
988
		}
989
990
		public function __clearParentIdCache() {
991
			if ( isset($this->parentNode) && count( $this->idCache ) ) {
992
				foreach( $this->idCache as $id => $value ) {
993
					$this->parentNode->__updateIdCache($id, null, $value);
994
				}
995
			}
996
		}
997
998
		public function __restoreParentIdCache() {
999
			if ( isset($this->parentNode) && count( $this->idCache ) ) {
@@ 998-1004 (lines=7) @@
995
			}
996
		}
997
998
		public function __restoreParentIdCache() {
999
			if ( isset($this->parentNode) && count( $this->idCache ) ) {
1000
				foreach( $this->idCache as $id => $value ) {
1001
					$this->parentNode->__updateIdCache($id, $value);
1002
				}
1003
			}
1004
		}
1005
1006
		public function __updateIdCache($id, $el, $oldEl = null) {
1007
			if ( !isset($el) ) {