Code Duplication    Length = 5-5 lines in 2 locations

core/diag/RADIUSTests.php 2 locations

@@ 371-375 (lines=5) @@
368
    private function checkLineparse($inputarray, $desiredCheck) {
369
        foreach ($inputarray as $lineid => $line) {
370
            switch ($desiredCheck) {
371
                case self::LINEPARSE_CHECK_REJECTIGNORE:
372
                    if (preg_match("/Attribute 18 (Reply-Message)/", $line) && preg_match("/Reject instead of Ignore at eduroam.org/", $inputarray[$lineid + 1])) {
373
                        return TRUE;
374
                    }
375
                    break;
376
                case self::LINEPARSE_CHECK_691:
377
                    if (preg_match("/MSCHAPV2: error 691/", $line) && preg_match("/MSCHAPV2: retry is allowed/", $inputarray[$lineid + 1])) {
378
                        return TRUE;
@@ 376-380 (lines=5) @@
373
                        return TRUE;
374
                    }
375
                    break;
376
                case self::LINEPARSE_CHECK_691:
377
                    if (preg_match("/MSCHAPV2: error 691/", $line) && preg_match("/MSCHAPV2: retry is allowed/", $inputarray[$lineid + 1])) {
378
                        return TRUE;
379
                    }
380
                    break;
381
                case self::LINEPARSE_EAPACK:
382
                    if (preg_match("/CTRL-EVENT-EAP-PROPOSED-METHOD/", $line) && !preg_match("/NAK$/", $line)) {
383
                        return TRUE;