Code Duplication    Length = 8-8 lines in 2 locations

includes/libs/xmp/XMP.php 2 locations

@@ 961-968 (lines=8) @@
958
		} elseif ( $elm === self::NS_RDF . ' value' ) {
959
			// This should not be here.
960
			throw new RuntimeException( __METHOD__ . ' Encountered <rdf:value> where it was unexpected.' );
961
		} else {
962
			// something else we don't recognize, like a qualifier maybe.
963
			$this->logger->info( __METHOD__ .
964
				" Encountered element <$elm> where only expecting character data as value of " .
965
				$this->curItem[0] );
966
			array_unshift( $this->mode, self::MODE_IGNORE );
967
			array_unshift( $this->curItem, $elm );
968
		}
969
	}
970
971
	/**
@@ 1037-1044 (lines=8) @@
1034
					// Should not happen in valid XMP.
1035
					throw new RuntimeException( 'tag nested in non-whitespace characters.' );
1036
				}
1037
			} else {
1038
				// This element is not on our list of allowed elements so ignore.
1039
				$this->logger->debug( __METHOD__ . " Ignoring unrecognized element <$ns:$tag>." );
1040
				array_unshift( $this->mode, self::MODE_IGNORE );
1041
				array_unshift( $this->curItem, $ns . ' ' . $tag );
1042
1043
				return;
1044
			}
1045
		}
1046
		// process attributes
1047
		$this->doAttribs( $attribs );