Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

@@ 2839-2845 (lines=7) @@
2836
	 *
2837
	 * @return string
2838
	 */
2839
	public function NoNullString($nullterminatedstring) {
2840
		// remove the single null terminator on null terminated strings
2841
		if (substr($nullterminatedstring, strlen($nullterminatedstring) - 1, 1) === "\x00") {
2842
			return substr($nullterminatedstring, 0, strlen($nullterminatedstring) - 1);
2843
		}
2844
		return $nullterminatedstring;
2845
	}
2846
2847
	/**
2848
	 * @param string $pascalstring