Code Duplication    Length = 12-17 lines in 3 locations

includes/installer/MysqlUpdater.php 1 location

@@ 921-937 (lines=17) @@
918
		}
919
	}
920
921
	protected function doCategoryPopulation() {
922
		if ( $this->updateRowExists( 'populate category' ) ) {
923
			$this->output( "...category table already populated.\n" );
924
925
			return;
926
		}
927
928
		$this->output(
929
			"Populating category table, printing progress markers. " .
930
			"For large databases, you\n" .
931
			"may want to hit Ctrl-C and do this manually with maintenance/\n" .
932
			"populateCategory.php.\n"
933
		);
934
		$task = $this->maintenance->runChild( 'PopulateCategory' );
935
		$task->execute();
936
		$this->output( "Done populating category table.\n" );
937
	}
938
939
	protected function doPopulateParentId() {
940
		if ( !$this->updateRowExists( 'populate rev_parent_id' ) ) {

includes/installer/DatabaseUpdater.php 2 locations

@@ 1036-1048 (lines=13) @@
1033
	/**
1034
	 * Populates the log_user_text field in the logging table
1035
	 */
1036
	protected function doLogUsertextPopulation() {
1037
		if ( !$this->updateRowExists( 'populate log_usertext' ) ) {
1038
			$this->output(
1039
				"Populating log_user_text field, printing progress markers. For large\n" .
1040
				"databases, you may want to hit Ctrl-C and do this manually with\n" .
1041
				"maintenance/populateLogUsertext.php.\n"
1042
			);
1043
1044
			$task = $this->maintenance->runChild( 'PopulateLogUsertext' );
1045
			$task->execute();
1046
			$this->output( "done.\n" );
1047
		}
1048
	}
1049
1050
	/**
1051
	 * Migrate log params to new table and index for searching
@@ 1053-1064 (lines=12) @@
1050
	/**
1051
	 * Migrate log params to new table and index for searching
1052
	 */
1053
	protected function doLogSearchPopulation() {
1054
		if ( !$this->updateRowExists( 'populate log_search' ) ) {
1055
			$this->output(
1056
				"Populating log_search table, printing progress markers. For large\n" .
1057
				"databases, you may want to hit Ctrl-C and do this manually with\n" .
1058
				"maintenance/populateLogSearch.php.\n" );
1059
1060
			$task = $this->maintenance->runChild( 'PopulateLogSearch' );
1061
			$task->execute();
1062
			$this->output( "done.\n" );
1063
		}
1064
	}
1065
1066
	/**
1067
	 * Updates the timestamps in the transcache table