Code Duplication    Length = 2-4 lines in 3 locations

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

@@ 627-628 (lines=2) @@
624
625
		if ( strpos( $ua, 'twitter for ipad' ) !== false ) {
626
			return true;
627
		} elseif ( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false ) {
628
			return true;
629
		} else {
630
			return false;
631
		}
@@ 849-852 (lines=4) @@
846
847
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
848
849
		if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mini' ) !== false ) {
850
			return true;
851
		} else {
852
			return false;
853
		}
854
	}
855
@@ 896-899 (lines=4) @@
893
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
894
895
		if ( strpos( $ua, 'opera' ) !== false ) {
896
			if ( ( strpos( $ua, 'mini' ) !== false ) || ( strpos( $ua, 'mobi' ) !== false ) ) {
897
				return true;
898
			} else {
899
				return false;
900
			}
901
		} else {
902
			return false;