Code Duplication    Length = 8-10 lines in 2 locations

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

@@ 1957-1966 (lines=10) @@
1954
							}
1955
							break;
1956
1957
						case 'gam':
1958
							@list($amount) = explode('|', $parameter);
1959
							$amount = min(max(floatval($amount), 0.001), 10);
1960
							if (number_format($amount, 3) != '1.000') {
1961
								if ($this->ImageMagickSwitchAvailable('gamma')) {
1962
									$commandline .= ' -gamma '.phpthumb_functions::escapeshellarg_replacement($amount);
1963
									$successfullyProcessedFilters[] = $filterkey;
1964
								}
1965
							}
1966
							break;
1967
1968
						case 'neg':
1969
							if ($this->ImageMagickSwitchAvailable('negate')) {
@@ 2105-2112 (lines=8) @@
2102
							}
2103
							break;
2104
2105
						case 'blur':
2106
							if ($this->ImageMagickSwitchAvailable('blur')) {
2107
								@list($radius) = explode('|', $parameter);
2108
								$radius = (!empty($radius) ? min(max(intval($radius), 0), 25) : 1);
2109
								$commandline .= ' -blur '.phpthumb_functions::escapeshellarg_replacement($radius);
2110
								$successfullyProcessedFilters[] = $filterkey;
2111
							}
2112
							break;
2113
2114
						case 'gblr':
2115
							@list($radius) = explode('|', $parameter);