Code Duplication    Length = 8-8 lines in 2 locations

includes/page/WikiPage.php 2 locations

@@ 3192-3199 (lines=8) @@
3189
		$from = str_replace( '_', ' ', $fromP );
3190
		// User name given should match up with the top revision.
3191
		// If the user was deleted then $from should be empty.
3192
		if ( $from != $current->getUserText() ) {
3193
			$resultDetails = [ 'current' => $current ];
3194
			return [ [ 'alreadyrolled',
3195
				htmlspecialchars( $this->mTitle->getPrefixedText() ),
3196
				htmlspecialchars( $fromP ),
3197
				htmlspecialchars( $current->getUserText() )
3198
			] ];
3199
		}
3200
3201
		// Get the last edit not by this person...
3202
		// Note: these may not be public values
@@ 3308-3315 (lines=8) @@
3305
		$statusRev = isset( $status->value['revision'] )
3306
			? $status->value['revision']
3307
			: null;
3308
		if ( !( $statusRev instanceof Revision ) ) {
3309
			$resultDetails = [ 'current' => $current ];
3310
			return [ [ 'alreadyrolled',
3311
					htmlspecialchars( $this->mTitle->getPrefixedText() ),
3312
					htmlspecialchars( $fromP ),
3313
					htmlspecialchars( $current->getUserText() )
3314
			] ];
3315
		}
3316
3317
		if ( $changingContentModel ) {
3318
			// If the content model changed during the rollback,