Code Duplication    Length = 9-10 lines in 3 locations

includes/libs/mime/IEContentAnalyzer.php 3 locations

@@ 461-470 (lines=10) @@
458
			return 'application/atom+xml';
459
		}
460
461
		if ( isset( $sampleFound['xml'] ) ) {
462
			// TODO: I'm not sure under what circumstances this flag is enabled
463
			if ( strpos( $version, 'strict' ) !== false ) {
464
				if ( $proposed == 'text/html' || $proposed == 'text/xml' ) {
465
					return 'text/xml';
466
				}
467
			} else {
468
				return 'text/xml';
469
			}
470
		}
471
		if ( isset( $sampleFound['html'] ) ) {
472
			// TODO: I'm not sure under what circumstances this flag is enabled
473
			if ( strpos( $version, 'nohtml' ) !== false ) {
@@ 471-480 (lines=10) @@
468
				return 'text/xml';
469
			}
470
		}
471
		if ( isset( $sampleFound['html'] ) ) {
472
			// TODO: I'm not sure under what circumstances this flag is enabled
473
			if ( strpos( $version, 'nohtml' ) !== false ) {
474
				if ( $proposed == 'text/plain' ) {
475
					return 'text/html';
476
				}
477
			} else {
478
				return 'text/html';
479
			}
480
		}
481
		if ( isset( $sampleFound['xbm'] ) ) {
482
			return 'image/x-bitmap';
483
		}
@@ 487-495 (lines=9) @@
484
		if ( isset( $sampleFound['binhex'] ) ) {
485
			return 'application/macbinhex40';
486
		}
487
		if ( isset( $sampleFound['scriptlet'] ) ) {
488
			if ( strpos( $version, 'strict' ) !== false ) {
489
				if ( $proposed == 'text/plain' || $proposed == 'text/scriptlet' ) {
490
					return 'text/scriptlet';
491
				}
492
			} else {
493
				return 'text/scriptlet';
494
			}
495
		}
496
497
		// Freaky heuristics to determine if the data is text or binary
498
		// The heuristic is of course broken for non-ASCII text