Code Duplication    Length = 9-10 lines in 2 locations

thumbs/phpthumb.functions.php 2 locations

@@ 202-210 (lines=9) @@
199
                'Supported filetypes'    => ''
200
            );
201
            $phpinfo_array = phpthumb_functions::phpinfo_array();
202
            foreach ($phpinfo_array as $line) {
203
                $line = trim(strip_tags($line));
204
                foreach ($exif_info as $key => $value) {
205
                    if (strpos($line, $key) === 0) {
206
                        $newvalue        = trim(str_replace($key, '', $line));
207
                        $exif_info[$key] = $newvalue;
208
                    }
209
                }
210
            }
211
        }
212
213
        return $exif_info;
@@ 1283-1292 (lines=10) @@
1280
                'XBM Support'        => false
1281
            );
1282
            $phpinfo_array = phpthumb_functions::phpinfo_array();
1283
            foreach ($phpinfo_array as $line) {
1284
                $line = trim(strip_tags($line));
1285
                foreach ($gd_info as $key => $value) {
1286
                    //if (strpos($line, $key) !== false) {
1287
                    if (strpos($line, $key) === 0) {
1288
                        $newvalue      = trim(str_replace($key, '', $line));
1289
                        $gd_info[$key] = $newvalue;
1290
                    }
1291
                }
1292
            }
1293
            if (empty($gd_info['GD Version'])) {
1294
                // probable cause: "phpinfo() disabled for security reasons"
1295
                if (function_exists('ImageTypes')) {