Code Duplication    Length = 7-7 lines in 2 locations

includes/specials/SpecialMergeHistory.php 2 locations

@@ 96-102 (lines=7) @@
93
			return;
94
		}
95
96
		if ( !$targetObj instanceof Title ) {
97
			$status->merge( Status::newFatal( 'mergehistory-invalid-source' ) );
98
		} elseif ( !$targetObj->exists() ) {
99
			$status->merge( Status::newFatal( 'mergehistory-no-source',
100
				wfEscapeWikiText( $targetObj->getPrefixedText() )
101
			) );
102
		}
103
104
		if ( !$destObj instanceof Title ) {
105
			$status->merge( Status::newFatal( 'mergehistory-invalid-destination' ) );
@@ 104-110 (lines=7) @@
101
			) );
102
		}
103
104
		if ( !$destObj instanceof Title ) {
105
			$status->merge( Status::newFatal( 'mergehistory-invalid-destination' ) );
106
		} elseif ( !$destObj->exists() ) {
107
			$status->merge( Status::newFatal( 'mergehistory-no-destination',
108
				wfEscapeWikiText( $destObj->getPrefixedText() )
109
			) );
110
		}
111
112
		if ( $targetObj && $destObj && $targetObj->equals( $destObj ) ) {
113
			$status->merge( Status::newFatal( 'mergehistory-same-destination' ) );