Code Duplication    Length = 7-8 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 427-434 (lines=8) @@
424
			return false;
425
426
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
427
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua,'ipod' ) !== false ) ) {
428
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
429
	   			return false;
430
	   		else
431
	   			return true;
432
		}
433
		else
434
			return false;
435
	}
436
437
@@ 960-966 (lines=7) @@
957
		if ( $pos_maemo === false ) return false;
958
959
		//Must be Linux + Tablet, or else it could be something else.
960
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
961
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() )
962
	   			return false;
963
	   		else
964
	   			return true;
965
		} else
966
			return false;
967
	}
968
969
	/*