Code Duplication    Length = 8-8 lines in 2 locations

includes/page/WikiPage.php 2 locations

@@ 3083-3090 (lines=8) @@
3080
		$from = str_replace( '_', ' ', $fromP );
3081
		// User name given should match up with the top revision.
3082
		// If the user was deleted then $from should be empty.
3083
		if ( $from != $current->getUserText() ) {
3084
			$resultDetails = [ 'current' => $current ];
3085
			return [ [ 'alreadyrolled',
3086
				htmlspecialchars( $this->mTitle->getPrefixedText() ),
3087
				htmlspecialchars( $fromP ),
3088
				htmlspecialchars( $current->getUserText() )
3089
			] ];
3090
		}
3091
3092
		// Get the last edit not by this person...
3093
		// Note: these may not be public values
@@ 3196-3203 (lines=8) @@
3193
		$statusRev = isset( $status->value['revision'] )
3194
			? $status->value['revision']
3195
			: null;
3196
		if ( !( $statusRev instanceof Revision ) ) {
3197
			$resultDetails = [ 'current' => $current ];
3198
			return [ [ 'alreadyrolled',
3199
					htmlspecialchars( $this->mTitle->getPrefixedText() ),
3200
					htmlspecialchars( $fromP ),
3201
					htmlspecialchars( $current->getUserText() )
3202
			] ];
3203
		}
3204
3205
		$revId = $statusRev->getId();
3206