Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1318-1320 (lines=3) @@
1315
1316
		$version_num = explode( '.', $version );
1317
1318
		if ( is_array( $version_num ) === false || count( $version_num ) <= 1 ) {
1319
			return false;
1320
		}
1321
		if ( $version_num[0] == 5 ) {
1322
			return 'blackberry-5';
1323
		} elseif ( $version_num[0] == 4 && $version_num[1] == 7 ) {
@@ 1379-1381 (lines=3) @@
1376
1377
			$version_num = explode( '.', $version );
1378
1379
			if ( false === is_array( $version_num ) || count( $version_num ) <= 1 ) {
1380
				return false;
1381
			}
1382
1383
			if ( $version_num[0] == 5 ) {
1384
				return 'blackberry-5';