Code Duplication    Length = 7-8 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 482-489 (lines=8) @@
479
			return false;
480
481
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
482
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua,'ipod' ) !== false ) ) {
483
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
484
	   			return false;
485
	   		else
486
	   			return true;
487
		}
488
		else
489
			return false;
490
	}
491
492
@@ 1015-1021 (lines=7) @@
1012
		if ( $pos_maemo === false ) return false;
1013
1014
		//Must be Linux + Tablet, or else it could be something else.
1015
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1016
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
1017
	   			return false;
1018
	   		else
1019
	   			return true;
1020
		} else
1021
			return false;
1022
	}
1023
1024
	/*