Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 386-393 (lines=8) @@
383
		}
384
385
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
386
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
387
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
388
				return false;
389
			} else {
390
				return true;
391
			}
392
		} else {
393
			return false;
394
		}
395
	}
396
@@ 994-1000 (lines=7) @@
991
		}
992
993
		// Must be Linux + Tablet, or else it could be something else.
994
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
995
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
996
				return false;
997
			} else {
998
				return true;
999
			}
1000
		} else {
1001
			return false;
1002
		}
1003
	}