Code Duplication    Length = 3-4 lines in 5 locations

htdocs/modules/system/class/thumbs/phpthumb.class.php 5 locations

@@ 4044-4047 (lines=4) @@
4041
			$DebugOutput[] = '$this->'.str_pad($varname, 37, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4042
		}
4043
		$DebugOutput[] = '';
4044
		foreach ($OtherVariableNames as $varname) {
4045
			$value = $this->$varname;
4046
			$DebugOutput[] = '$this->'.str_pad($varname, 27, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4047
		}
4048
		$DebugOutput[] = 'strlen($this->rawImageData)        = '.strlen(@$this->rawImageData);
4049
		$DebugOutput[] = 'strlen($this->exif_thumbnail_data) = '.strlen(@$this->exif_thumbnail_data);
4050
		$DebugOutput[] = '';
@@ 4052-4055 (lines=4) @@
4049
		$DebugOutput[] = 'strlen($this->exif_thumbnail_data) = '.strlen(@$this->exif_thumbnail_data);
4050
		$DebugOutput[] = '';
4051
4052
		foreach ($ParameterNames as $varname) {
4053
			$value = $this->$varname;
4054
			$DebugOutput[] = '$this->'.str_pad($varname, 4, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4055
		}
4056
		$DebugOutput[] = '';
4057
4058
		foreach ($FunctionsExistance as $functionname) {
@@ 4064-4066 (lines=3) @@
4061
		$DebugOutput[] = '';
4062
4063
		$gd_info = gd_info();
4064
		foreach ($gd_info as $key => $value) {
4065
			$DebugOutput[] = 'gd_info.'.str_pad($key, 34, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4066
		}
4067
		$DebugOutput[] = '';
4068
4069
		$exif_info = phpthumb_functions::exif_info();
@@ 4070-4072 (lines=3) @@
4067
		$DebugOutput[] = '';
4068
4069
		$exif_info = phpthumb_functions::exif_info();
4070
		foreach ($exif_info as $key => $value) {
4071
			$DebugOutput[] = 'exif_info.'.str_pad($key, 26, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4072
		}
4073
		$DebugOutput[] = '';
4074
4075
		if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']))) {
@@ 4076-4078 (lines=3) @@
4073
		$DebugOutput[] = '';
4074
4075
		if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']))) {
4076
			foreach ($ApacheLookupURIarray as $key => $value) {
4077
				$DebugOutput[] = 'ApacheLookupURIarray.'.str_pad($key, 15, ' ', STR_PAD_RIGHT).' = '.$this->phpThumbDebugVarDump($value);
4078
			}
4079
		} else {
4080
				$DebugOutput[] = 'ApacheLookupURIarray() -- FAILED';
4081
		}