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
@@ 1020-1026 (lines=7) @@
1017
		if ( $pos_maemo === false ) return false;
1018
1019
		//Must be Linux + Tablet, or else it could be something else.
1020
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1021
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
1022
	   			return false;
1023
	   		else
1024
	   			return true;
1025
		} else
1026
			return false;
1027
	}
1028
1029
	/*