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
	/**
@@ 1026-1034 (lines=9) @@
1023
		}
1024
1025
		// Must be Linux + Tablet, or else it could be something else.
1026
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1027
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1028
				return false;
1029
			} else {
1030
				return true;
1031
			}
1032
		} else {
1033
			return false;
1034
		}
1035
	}
1036
1037
	/**