Code Duplication    Length = 2-4 lines in 3 locations

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

@@ 687-688 (lines=2) @@
684
685
		if ( strpos( $ua, 'twitter for ipad' ) !== false ) {
686
			return true;
687
		} elseif ( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false ) {
688
			return true;
689
		} else {
690
			return false;
691
		}
@@ 909-912 (lines=4) @@
906
907
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
908
909
		if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mini' ) !== false ) {
910
			return true;
911
		} else {
912
			return false;
913
		}
914
	}
915
@@ 956-959 (lines=4) @@
953
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
954
955
		if ( strpos( $ua, 'opera' ) !== false ) {
956
			if ( ( strpos( $ua, 'mini' ) !== false ) || ( strpos( $ua, 'mobi' ) !== false ) ) {
957
				return true;
958
			} else {
959
				return false;
960
			}
961
		} else {
962
			return false;