Code Duplication    Length = 14-15 lines in 2 locations

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

@@ 285-299 (lines=15) @@
282
if (!function_exists('Float2String')) {
283
	function Float2String($floatvalue, $bits) {
284
		// http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/ieee-expl.html
285
		switch ($bits) {
286
			case 32:
287
				$exponentbits = 8;
288
				$fractionbits = 23;
289
				break;
290
291
			case 64:
292
				$exponentbits = 11;
293
				$fractionbits = 52;
294
				break;
295
296
			default:
297
				return false;
298
				break;
299
		}
300
		if ($floatvalue >= 0) {
301
			$signbit = '0';
302
		} else {

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

@@ 206-219 (lines=14) @@
203
	public static function Float2String($floatvalue, $bits) {
204
		$exponentbits = 0;
205
		$fractionbits = 0;
206
		switch ($bits) {
207
			case 32:
208
				$exponentbits = 8;
209
				$fractionbits = 23;
210
				break;
211
212
			case 64:
213
				$exponentbits = 11;
214
				$fractionbits = 52;
215
				break;
216
217
			default:
218
				return false;
219
		}
220
		if ($floatvalue >= 0) {
221
			$signbit = '0';
222
		} else {