Code Duplication    Length = 11-11 lines in 2 locations

mod/elgg_recaptcha/classes/BrowserDetection.php 2 locations

@@ 1162-1172 (lines=11) @@
1159
            case 125:
1160
                if ($verParts[1] >= 11) {
1161
                    $result = '1.2.4';
1162
                } else {
1163
                    if ($verParts[1] >= 9) {
1164
                        $result = '1.2.3';
1165
                    } else {
1166
                        if ($verParts[1] >= 7) {
1167
                            $result = '1.2.2';
1168
                        } else {
1169
                            $result = '1.2';
1170
                        }
1171
                    }
1172
                }
1173
                break;
1174
            case 100:
1175
                if ($verParts[1] >= 1) {
@@ 1324-1334 (lines=11) @@
1321
            case 125:
1322
                if ($this->compareVersions('5.4', $verParts[1] . '.' . $verParts[2]) === 1) {
1323
                    $result = '1.2.4'; //125.5.5+
1324
                } else {
1325
                    if ($verParts[1] >= 4) {
1326
                        $result = '1.2.3';
1327
                    } else {
1328
                        if ($verParts[1] >= 2) {
1329
                            $result = '1.2.2';
1330
                        } else {
1331
                            $result = '1.2';
1332
                        }
1333
                    }
1334
                }
1335
                break;
1336
            //WebKit 100 can be either Safari 1.1 (Safari build 100) or 1.1.1 (Safari build 100.1)
1337
            //for this reason, check the Safari build before the WebKit build.