Code Duplication    Length = 7-8 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 496-503 (lines=8) @@
493
		}
494
495
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
496
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
497
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
498
				return false;
499
			} else {
500
				return true;
501
			}
502
		} else {
503
			return false;
504
		}
505
	}
506
@@ 1104-1110 (lines=7) @@
1101
		}
1102
1103
		// Must be Linux + Tablet, or else it could be something else.
1104
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1105
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1106
				return false;
1107
			} else {
1108
				return true;
1109
			}
1110
		} else {
1111
			return false;
1112
		}
1113
	}