Code Duplication    Length = 14-14 lines in 2 locations

maintenance/Maintenance.php 2 locations

@@ 992-1005 (lines=14) @@
989
		$this->output( "\n" );
990
991
		$scriptDependantParams = $this->mDependantParameters;
992
		if ( count( $scriptDependantParams ) > 0 ) {
993
			$this->output( "Script dependant parameters:\n" );
994
			// Parameters description
995
			foreach ( $scriptDependantParams as $par => $info ) {
996
				if ( $info['shortName'] !== false ) {
997
					$par .= " (-{$info['shortName']})";
998
				}
999
				$this->output(
1000
					wordwrap( "$tab--$par: " . $info['desc'], $descWidth,
1001
						"\n$tab$tab" ) . "\n"
1002
				);
1003
			}
1004
			$this->output( "\n" );
1005
		}
1006
1007
		// Script specific parameters not defined on construction by
1008
		// Maintenance::addDefaultParams()
@@ 1016-1029 (lines=14) @@
1013
			$this->mGenericParameters,
1014
			$this->mDependantParameters
1015
		);
1016
		if ( count( $scriptSpecificParams ) > 0 ) {
1017
			$this->output( "Script specific parameters:\n" );
1018
			// Parameters description
1019
			foreach ( $scriptSpecificParams as $par => $info ) {
1020
				if ( $info['shortName'] !== false ) {
1021
					$par .= " (-{$info['shortName']})";
1022
				}
1023
				$this->output(
1024
					wordwrap( "$tab--$par: " . $info['desc'], $descWidth,
1025
						"\n$tab$tab" ) . "\n"
1026
				);
1027
			}
1028
			$this->output( "\n" );
1029
		}
1030
1031
		// Print arguments
1032
		if ( count( $this->mArgList ) > 0 ) {