Code Duplication    Length = 7-8 lines in 2 locations

packages/device-detection/src/class-device-detection.php 2 locations

@@ 519-526 (lines=8) @@
516
		}
517
518
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
519
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
520
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
521
				return false;
522
			} else {
523
				return true;
524
			}
525
		} else {
526
			return false;
527
		}
528
	}
529
@@ 1127-1133 (lines=7) @@
1124
		}
1125
1126
		// Must be Linux + Tablet, or else it could be something else.
1127
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1128
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1129
				return false;
1130
			} else {
1131
				return true;
1132
			}
1133
		} else {
1134
			return false;
1135
		}
1136
	}