Code Duplication    Length = 4-7 lines in 2 locations

includes/libs/xmp/XMP.php 2 locations

@@ 867-870 (lines=4) @@
864
	 * @param string $elm Namespace . ' ' . tag name
865
	 */
866
	private function startElementModeIgnore( $elm ) {
867
		if ( $elm === $this->curItem[0] ) {
868
			array_unshift( $this->curItem, $elm );
869
			array_unshift( $this->mode, self::MODE_IGNORE );
870
		}
871
	}
872
873
	/**
@@ 986-992 (lines=7) @@
983
	 *
984
	 */
985
	private function startElementModeQDesc( $elm ) {
986
		if ( $elm === self::NS_RDF . ' value' ) {
987
			return; // do nothing
988
		} else {
989
			// otherwise its a qualifier, which we ignore
990
			array_unshift( $this->mode, self::MODE_IGNORE );
991
			array_unshift( $this->curItem, $elm );
992
		}
993
	}
994
995
	/**