Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 437-445 (lines=9) @@
434
		}
435
436
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
437
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
438
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
439
				return false;
440
			} else {
441
				return true;
442
			}
443
		} else {
444
			return false;
445
		}
446
	}
447
448
	/**
@@ 1045-1053 (lines=9) @@
1042
		}
1043
1044
		// Must be Linux + Tablet, or else it could be something else.
1045
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1046
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1047
				return false;
1048
			} else {
1049
				return true;
1050
			}
1051
		} else {
1052
			return false;
1053
		}
1054
	}
1055
1056
	/**