Code Duplication    Length = 7-8 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 487-494 (lines=8) @@
484
			return false;
485
486
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
487
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua,'ipod' ) !== false ) ) {
488
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
489
	   			return false;
490
	   		else
491
	   			return true;
492
		}
493
		else
494
			return false;
495
	}
496
497
@@ 1042-1048 (lines=7) @@
1039
		if ( $pos_maemo === false ) return false;
1040
1041
		//Must be Linux + Tablet, or else it could be something else.
1042
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1043
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
1044
	   			return false;
1045
	   		else
1046
	   			return true;
1047
		} else
1048
			return false;
1049
	}
1050
1051
	/*