Code Duplication    Length = 8-8 lines in 2 locations

includes/page/WikiPage.php 2 locations

@@ 3213-3220 (lines=8) @@
3210
		$from = str_replace( '_', ' ', $fromP );
3211
		// User name given should match up with the top revision.
3212
		// If the user was deleted then $from should be empty.
3213
		if ( $from != $current->getUserText() ) {
3214
			$resultDetails = [ 'current' => $current ];
3215
			return [ [ 'alreadyrolled',
3216
				htmlspecialchars( $this->mTitle->getPrefixedText() ),
3217
				htmlspecialchars( $fromP ),
3218
				htmlspecialchars( $current->getUserText() )
3219
			] ];
3220
		}
3221
3222
		// Get the last edit not by this person...
3223
		// Note: these may not be public values
@@ 3329-3336 (lines=8) @@
3326
		$statusRev = isset( $status->value['revision'] )
3327
			? $status->value['revision']
3328
			: null;
3329
		if ( !( $statusRev instanceof Revision ) ) {
3330
			$resultDetails = [ 'current' => $current ];
3331
			return [ [ 'alreadyrolled',
3332
					htmlspecialchars( $this->mTitle->getPrefixedText() ),
3333
					htmlspecialchars( $fromP ),
3334
					htmlspecialchars( $current->getUserText() )
3335
			] ];
3336
		}
3337
3338
		if ( $changingContentModel ) {
3339
			// If the content model changed during the rollback,