Code Duplication    Length = 14-14 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 613-626 (lines=14) @@
610
	 * - 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]
611
	 * - 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]
612
	 */
613
	static function is_facebook_for_ipad( ) {
614
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
615
			return false;
616
617
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
618
619
		if ( strpos( $ua, 'ipad' ) === false )
620
			return false;
621
622
		if ( strpos( $ua, 'facebook' ) !== false || strpos( $ua, 'fbforiphone' ) !== false  || strpos( $ua, 'fban/fbios;' ) !== false )
623
			return true;
624
		else
625
			return false;
626
	}
627
628
	/*
629
	 *  Detects if the current UA is WordPress for iOS
@@ 965-978 (lines=14) @@
962
	 * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'.
963
	 *
964
	 */
965
	static function is_symbian_s40_platform() {
966
967
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
968
		return false;
969
970
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
971
972
		if ( strpos( $agent, 'series40' ) !== false ) {
973
			if( strpos( $agent,'nokia' ) !== false || strpos( $agent,'ovibrowser' ) !== false || strpos( $agent,'nokiabrowser' ) !== false )
974
			return true;
975
		}
976
977
	    return false;
978
	}
979
980
	static function is_J2ME_platform() {
981