Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1005-1011 (lines=7) @@
1002
}
1003
1004
if (!function_exists('NoNullString')) {
1005
	function NoNullString($nullterminatedstring) {
1006
		// remove the single null terminator on null terminated strings
1007
		if (substr($nullterminatedstring, strlen($nullterminatedstring) - 1, 1) === chr(0)) {
1008
			return substr($nullterminatedstring, 0, strlen($nullterminatedstring) - 1);
1009
		}
1010
		return $nullterminatedstring;
1011
	}
1012
}
1013
1014
if (!function_exists('FileSizeNiceDisplay')) {

3rdparty/getID3/getid3/module.audio-video.quicktime.php 1 location

@@ 2967-2973 (lines=7) @@
2964
	 *
2965
	 * @return string
2966
	 */
2967
	public function NoNullString($nullterminatedstring) {
2968
		// remove the single null terminator on null terminated strings
2969
		if (substr($nullterminatedstring, strlen($nullterminatedstring) - 1, 1) === "\x00") {
2970
			return substr($nullterminatedstring, 0, strlen($nullterminatedstring) - 1);
2971
		}
2972
		return $nullterminatedstring;
2973
	}
2974
2975
	/**
2976
	 * @param string $pascalstring