Code Duplication    Length = 8-8 lines in 2 locations

includes/page/WikiPage.php 2 locations

@@ 3224-3231 (lines=8) @@
3221
		$from = str_replace( '_', ' ', $fromP );
3222
		// User name given should match up with the top revision.
3223
		// If the user was deleted then $from should be empty.
3224
		if ( $from != $current->getUserText() ) {
3225
			$resultDetails = [ 'current' => $current ];
3226
			return [ [ 'alreadyrolled',
3227
				htmlspecialchars( $this->mTitle->getPrefixedText() ),
3228
				htmlspecialchars( $fromP ),
3229
				htmlspecialchars( $current->getUserText() )
3230
			] ];
3231
		}
3232
3233
		// Get the last edit not by this person...
3234
		// Note: these may not be public values
@@ 3340-3347 (lines=8) @@
3337
		$statusRev = isset( $status->value['revision'] )
3338
			? $status->value['revision']
3339
			: null;
3340
		if ( !( $statusRev instanceof Revision ) ) {
3341
			$resultDetails = [ 'current' => $current ];
3342
			return [ [ 'alreadyrolled',
3343
					htmlspecialchars( $this->mTitle->getPrefixedText() ),
3344
					htmlspecialchars( $fromP ),
3345
					htmlspecialchars( $current->getUserText() )
3346
			] ];
3347
		}
3348
3349
		if ( $changingContentModel ) {
3350
			// If the content model changed during the rollback,