Code Duplication    Length = 4-4 lines in 2 locations

includes/api/ApiEditPage.php 2 locations

@@ 251-254 (lines=4) @@
248
				$this->dieUsageMsg( [ 'nosuchrevid', $params['undoafter'] ] );
249
			}
250
251
			if ( $undoRev->getPage() != $pageObj->getId() ) {
252
				$this->dieUsageMsg( [ 'revwrongpage', $undoRev->getId(),
253
					$titleObj->getPrefixedText() ] );
254
			}
255
			if ( $undoafterRev->getPage() != $pageObj->getId() ) {
256
				$this->dieUsageMsg( [ 'revwrongpage', $undoafterRev->getId(),
257
					$titleObj->getPrefixedText() ] );
@@ 255-258 (lines=4) @@
252
				$this->dieUsageMsg( [ 'revwrongpage', $undoRev->getId(),
253
					$titleObj->getPrefixedText() ] );
254
			}
255
			if ( $undoafterRev->getPage() != $pageObj->getId() ) {
256
				$this->dieUsageMsg( [ 'revwrongpage', $undoafterRev->getId(),
257
					$titleObj->getPrefixedText() ] );
258
			}
259
260
			$newContent = $contentHandler->getUndoContent(
261
				$pageObj->getRevision(),