Code Duplication    Length = 3-3 lines in 2 locations

3rdparty/getID3/demos/demo.mp3header.php 1 location

@@ 484-486 (lines=3) @@
481
if (!function_exists('Bin2Dec')) {
482
	function Bin2Dec($binstring) {
483
		$decvalue = 0;
484
		for ($i = 0; $i < strlen($binstring); $i++) {
485
			$decvalue += ((int) substr($binstring, strlen($binstring) - $i - 1, 1)) * pow(2, $i);
486
		}
487
		return CastAsInt($decvalue);
488
	}
489
}

3rdparty/getID3/getid3/getid3.lib.php 1 location

@@ 460-462 (lines=3) @@
457
			$binstring = substr($binstring, 1);
458
		}
459
		$decvalue = 0;
460
		for ($i = 0; $i < strlen($binstring); $i++) {
461
			$decvalue += ((int) substr($binstring, strlen($binstring) - $i - 1, 1)) * pow(2, $i);
462
		}
463
		return self::CastAsInt($decvalue * $signmult);
464
	}
465