Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 438-446 (lines=9) @@
435
		}
436
437
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
438
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
439
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
440
				return false;
441
			} else {
442
				return true;
443
			}
444
		} else {
445
			return false;
446
		}
447
	}
448
449
@@ 1034-1042 (lines=9) @@
1031
		}
1032
1033
		// Must be Linux + Tablet, or else it could be something else.
1034
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1035
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1036
				return false;
1037
			} else {
1038
				return true;
1039
			}
1040
		} else {
1041
			return false;
1042
		}
1043
	}
1044
1045
	/**