Code Duplication    Length = 14-14 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 646-659 (lines=14) @@
643
	 * - Mozilla/5.0 (iPad; U; CPU iPhone OS 5_0 like Mac OS X; en_US) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.0.2;FBBV/4020.0;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/5.0;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US;FBSF/1.0]
644
	 * - Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10A403 [FBAN/FBIOS;FBAV/5.0;FBBV/47423;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/6.0;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US]
645
	 */
646
	static function is_facebook_for_ipad() {
647
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
648
			return false;
649
		}
650
651
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
652
653
		if ( false === strpos( $ua, 'ipad' ) ) {
654
			return false;
655
		}
656
657
		if ( false !== strpos( $ua, 'facebook' ) || false !== strpos( $ua, 'fbforiphone' ) || false !== strpos( $ua, 'fban/fbios;' ) ) {
658
			return true;
659
		} else {
660
			return false;
661
		}
662
	}
@@ 1052-1065 (lines=14) @@
1049
	 * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'.
1050
	 *
1051
	 */
1052
	static function is_symbian_s40_platform() {
1053
1054
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
1055
			return false;
1056
		}
1057
1058
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
1059
1060
		if ( strpos( $agent, 'series40' ) !== false ) {
1061
			if ( strpos( $agent, 'nokia' ) !== false || strpos( $agent, 'ovibrowser' ) !== false || strpos( $agent, 'nokiabrowser' ) !== false ) {
1062
				return true;
1063
			}
1064
		}
1065
1066
		return false;
1067
	}
1068