Code Duplication    Length = 14-14 lines in 2 locations

maintenance/Maintenance.php 2 locations

@@ 1004-1017 (lines=14) @@
1001
		$this->output( "\n" );
1002
1003
		$scriptDependantParams = $this->mDependantParameters;
1004
		if ( count( $scriptDependantParams ) > 0 ) {
1005
			$this->output( "Script dependant parameters:\n" );
1006
			// Parameters description
1007
			foreach ( $scriptDependantParams as $par => $info ) {
1008
				if ( $info['shortName'] !== false ) {
1009
					$par .= " (-{$info['shortName']})";
1010
				}
1011
				$this->output(
1012
					wordwrap( "$tab--$par: " . $info['desc'], $descWidth,
1013
						"\n$tab$tab" ) . "\n"
1014
				);
1015
			}
1016
			$this->output( "\n" );
1017
		}
1018
1019
		// Script specific parameters not defined on construction by
1020
		// Maintenance::addDefaultParams()
@@ 1028-1041 (lines=14) @@
1025
			$this->mGenericParameters,
1026
			$this->mDependantParameters
1027
		);
1028
		if ( count( $scriptSpecificParams ) > 0 ) {
1029
			$this->output( "Script specific parameters:\n" );
1030
			// Parameters description
1031
			foreach ( $scriptSpecificParams as $par => $info ) {
1032
				if ( $info['shortName'] !== false ) {
1033
					$par .= " (-{$info['shortName']})";
1034
				}
1035
				$this->output(
1036
					wordwrap( "$tab--$par: " . $info['desc'], $descWidth,
1037
						"\n$tab$tab" ) . "\n"
1038
				);
1039
			}
1040
			$this->output( "\n" );
1041
		}
1042
1043
		// Print arguments
1044
		if ( count( $this->mArgList ) > 0 ) {