Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1511-1513 (lines=3) @@
1508
1509
		$version_num = explode( '.', $version );
1510
1511
		if ( is_array( $version_num ) === false || count( $version_num ) <= 1 ) {
1512
			return false;
1513
		}
1514
		if ( $version_num[0] == 5 ) {
1515
			return 'blackberry-5';
1516
		} elseif ( $version_num[0] == 4 && $version_num[1] == 7 ) {
@@ 1572-1574 (lines=3) @@
1569
1570
			$version_num = explode( '.', $version );
1571
1572
			if ( false === is_array( $version_num ) || count( $version_num ) <= 1 ) {
1573
				return false;
1574
			}
1575
1576
			if ( $version_num[0] == 5 ) {
1577
				return 'blackberry-5';