Code Duplication    Length = 7-8 lines in 2 locations

class.jetpack-user-agent.php 2 locations

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