Code Duplication    Length = 14-14 lines in 2 locations

packages/device-detection/src/class-user-agent-info.php 2 locations

@@ 536-549 (lines=14) @@
533
		* - 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]
534
		* - 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]
535
		*/
536
	static function is_facebook_for_ipad() {
537
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
538
			return false;
539
		}
540
541
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
542
543
		if ( false === strpos( $ua, 'ipad' ) ) {
544
			return false;
545
		}
546
547
		if ( false !== strpos( $ua, 'facebook' ) || false !== strpos( $ua, 'fbforiphone' ) || false !== strpos( $ua, 'fban/fbios;' ) ) {
548
			return true;
549
		} else {
550
			return false;
551
		}
552
	}
@@ 942-955 (lines=14) @@
939
		* This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'.
940
		*
941
		*/
942
	static function is_symbian_s40_platform() {
943
944
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
945
			return false;
946
		}
947
948
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
949
950
		if ( strpos( $agent, 'series40' ) !== false ) {
951
			if ( strpos( $agent, 'nokia' ) !== false || strpos( $agent, 'ovibrowser' ) !== false || strpos( $agent, 'nokiabrowser' ) !== false ) {
952
				return true;
953
			}
954
		}
955
956
		return false;
957
	}
958