Code Duplication    Length = 14-14 lines in 2 locations

packages/mobile/src/class-mobile.php 2 locations

@@ 662-675 (lines=14) @@
659
	 * - 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]
660
	 * - 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]
661
	 */
662
	static function is_facebook_for_ipad() {
663
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
664
			return false;
665
		}
666
667
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
668
669
		if ( false === strpos( $ua, 'ipad' ) ) {
670
			return false;
671
		}
672
673
		if ( false !== strpos( $ua, 'facebook' ) || false !== strpos( $ua, 'fbforiphone' ) || false !== strpos( $ua, 'fban/fbios;' ) ) {
674
			return true;
675
		} else {
676
			return false;
677
		}
678
	}
@@ 1068-1081 (lines=14) @@
1065
	 * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'.
1066
	 *
1067
	 */
1068
	static function is_symbian_s40_platform() {
1069
1070
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
1071
			return false;
1072
		}
1073
1074
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
1075
1076
		if ( strpos( $agent, 'series40' ) !== false ) {
1077
			if ( strpos( $agent, 'nokia' ) !== false || strpos( $agent, 'ovibrowser' ) !== false || strpos( $agent, 'nokiabrowser' ) !== false ) {
1078
				return true;
1079
			}
1080
		}
1081
1082
		return false;
1083
	}
1084