Code Duplication    Length = 2-4 lines in 3 locations

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

@@ 494-495 (lines=2) @@
491
492
		if ( strpos( $ua, 'twitter for ipad' ) !== false ) {
493
			return true;
494
		} elseif ( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false ) {
495
			return true;
496
		} else {
497
			return false;
498
		}
@@ 716-719 (lines=4) @@
713
714
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
715
716
		if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mini' ) !== false ) {
717
			return true;
718
		} else {
719
			return false;
720
		}
721
	}
722
@@ 763-766 (lines=4) @@
760
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
761
762
		if ( strpos( $ua, 'opera' ) !== false ) {
763
			if ( ( strpos( $ua, 'mini' ) !== false ) || ( strpos( $ua, 'mobi' ) !== false ) ) {
764
				return true;
765
			} else {
766
				return false;
767
			}
768
		} else {
769
			return false;