Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 157-165 (lines=9) @@
154
				'Supported filetypes'    => ''
155
			);
156
			$phpinfo_array = phpthumb_functions::phpinfo_array();
157
			foreach ($phpinfo_array as $line) {
158
				$line = trim(strip_tags($line));
159
				foreach ($exif_info as $key => $value) {
160
					if (strpos($line, $key) === 0) {
161
						$newvalue = trim(str_replace($key, '', $line));
162
						$exif_info[$key] = $newvalue;
163
					}
164
				}
165
			}
166
		}
167
		return $exif_info;
168
	}
@@ 943-952 (lines=10) @@
940
				'XBM Support'        => false
941
			);
942
			$phpinfo_array = phpthumb_functions::phpinfo_array();
943
			foreach ($phpinfo_array as $line) {
944
				$line = trim(strip_tags($line));
945
				foreach ($gd_info as $key => $value) {
946
					//if (strpos($line, $key) !== false) {
947
					if (strpos($line, $key) === 0) {
948
						$newvalue = trim(str_replace($key, '', $line));
949
						$gd_info[$key] = $newvalue;
950
					}
951
				}
952
			}
953
			if (empty($gd_info['GD Version'])) {
954
				// probable cause: "phpinfo() disabled for security reasons"
955
				if (function_exists('imagetypes')) {