Code Duplication    Length = 9-10 lines in 2 locations

includes/changes/EnhancedChangesList.php 2 locations

@@ 426-435 (lines=10) @@
423
			}
424
		}
425
426
		if ( $rcObj->mAttribs['rc_type'] == RC_LOG ) {
427
			$data['logEntry'] = $this->insertLogEntry( $rcObj );
428
		} elseif ( $this->isCategorizationWithoutRevision( $rcObj ) ) {
429
			$data['comment'] = $this->insertComment( $rcObj );
430
		} else {
431
			# User links
432
			$data['userLink'] = $rcObj->userlink;
433
			$data['userTalkLink'] = $rcObj->usertalklink;
434
			$data['comment'] = $this->insertComment( $rcObj );
435
		}
436
437
		# Rollback
438
		$data['rollback'] = $this->getRollback( $rcObj );
@@ 649-657 (lines=9) @@
646
			$data['logEntry'] = $this->insertLogEntry( $rcObj );
647
		} elseif ( $this->isCategorizationWithoutRevision( $rcObj ) ) {
648
			$data['comment'] = $this->insertComment( $rcObj );
649
		} else {
650
			$data['userLink'] = $rcObj->userlink;
651
			$data['userTalkLink'] = $rcObj->usertalklink;
652
			$data['comment'] = $this->insertComment( $rcObj );
653
			if ( $type == RC_CATEGORIZE ) {
654
				$data['historyLink'] = $this->getDiffHistLinks( $rcObj, $query );
655
			}
656
			$data['rollback'] = $this->getRollback( $rcObj );
657
		}
658
659
		# Tags
660
		$data['tags'] = $this->getTags( $rcObj, $classes );