Code Duplication    Length = 14-14 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 562-575 (lines=14) @@
559
	 * - 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]
560
	 * - 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]
561
	 */
562
	static function is_facebook_for_ipad( ) {
563
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
564
			return false;
565
566
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
567
568
		if ( strpos( $ua, 'ipad' ) === false )
569
			return false;
570
571
		if ( strpos( $ua, 'facebook' ) !== false || strpos( $ua, 'fbforiphone' ) !== false  || strpos( $ua, 'fban/fbios;' ) !== false )
572
			return true;
573
		else
574
			return false;
575
	}
576
577
	/*
578
	 *  Detects if the current UA is WordPress for iOS
@@ 914-927 (lines=14) @@
911
	 * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'.
912
	 *
913
	 */
914
	static function is_symbian_s40_platform() {
915
916
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
917
		return false;
918
919
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
920
921
		if ( strpos( $agent, 'series40' ) !== false ) {
922
			if( strpos( $agent,'nokia' ) !== false || strpos( $agent,'ovibrowser' ) !== false || strpos( $agent,'nokiabrowser' ) !== false )
923
			return true;
924
		}
925
926
	    return false;
927
	}
928
929
	static function is_J2ME_platform() {
930