Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1451-1453 (lines=3) @@
1448
1449
		$version_num = explode( '.', $version );
1450
1451
		if ( is_array( $version_num ) === false || count( $version_num ) <= 1 ) {
1452
			return false;
1453
		}
1454
		if ( $version_num[0] == 5 ) {
1455
			return 'blackberry-5';
1456
		} elseif ( $version_num[0] == 4 && $version_num[1] == 7 ) {
@@ 1512-1514 (lines=3) @@
1509
1510
			$version_num = explode( '.', $version );
1511
1512
			if ( false === is_array( $version_num ) || count( $version_num ) <= 1 ) {
1513
				return false;
1514
			}
1515
1516
			if ( $version_num[0] == 5 ) {
1517
				return 'blackberry-5';