Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 434-441 (lines=8) @@
431
}
432
433
if (!function_exists('BigEndian2Bin')) {
434
	function BigEndian2Bin($byteword) {
435
		$binvalue = '';
436
		$bytewordlen = strlen($byteword);
437
		for ($i = 0; $i < $bytewordlen; $i++) {
438
			$binvalue .= str_pad(decbin(ord($byteword{$i})), 8, '0', STR_PAD_LEFT);
439
		}
440
		return $binvalue;
441
	}
442
}
443
444
if (!function_exists('BigEndian2String')) {

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

@@ 389-396 (lines=8) @@
386
	 *
387
	 * @return string
388
	 */
389
	public static function BigEndian2Bin($byteword) {
390
		$binvalue = '';
391
		$bytewordlen = strlen($byteword);
392
		for ($i = 0; $i < $bytewordlen; $i++) {
393
			$binvalue .= str_pad(decbin(ord($byteword{$i})), 8, '0', STR_PAD_LEFT);
394
		}
395
		return $binvalue;
396
	}
397
398
	/**
399
	 * @param int  $number