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
	/**
@@ 1018-1026 (lines=9) @@
1015
		}
1016
1017
		// Must be Linux + Tablet, or else it could be something else.
1018
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1019
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1020
				return false;
1021
			} else {
1022
				return true;
1023
			}
1024
		} else {
1025
			return false;
1026
		}
1027
	}
1028
1029
	/**