Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 1074-1078 (lines=5) @@
1071
		while ($ArrayPath{0} == $Separator) {
1072
			$ArrayPath = substr($ArrayPath, 1);
1073
		}
1074
		if (($pos = strpos($ArrayPath, $Separator)) !== false) {
1075
			$ReturnedArray[substr($ArrayPath, 0, $pos)] = CreateDeepArray(substr($ArrayPath, $pos + 1), $Separator, $Value);
1076
		} else {
1077
			$ReturnedArray["$ArrayPath"] = $Value;
1078
		}
1079
		return $ReturnedArray;
1080
	}
1081
}

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

@@ 671-675 (lines=5) @@
668
		// or
669
		//   $foo['path']['to']['my'] = 'file.txt';
670
		$ArrayPath = ltrim($ArrayPath, $Separator);
671
		if (($pos = strpos($ArrayPath, $Separator)) !== false) {
672
			$ReturnedArray[substr($ArrayPath, 0, $pos)] = self::CreateDeepArray(substr($ArrayPath, $pos + 1), $Separator, $Value);
673
		} else {
674
			$ReturnedArray[$ArrayPath] = $Value;
675
		}
676
		return $ReturnedArray;
677
	}
678