Code Duplication    Length = 3-3 lines in 2 locations

core/diag/RADIUSTests.php 2 locations

@@ 704-706 (lines=3) @@
701
// Challenge that PW was wrong but and we should try a different one; 
702
// but that effectively is a reject
703
// so change the flow results to take that into account
704
        if ($packetflow[count($packetflow) - 1] == 11 && $this->checkLineparse($packetflow_orig, self::LINEPARSE_CHECK_691)) {
705
            $packetflow[count($packetflow) - 1] = 3;
706
        }
707
// also, the ETLRs sometimes send a reject when the server is not 
708
// responding. This should not be considered a real reject; it's a middle
709
// box unduly altering the end-to-end result. Do not consider this final
@@ 711-713 (lines=3) @@
708
// responding. This should not be considered a real reject; it's a middle
709
// box unduly altering the end-to-end result. Do not consider this final
710
// Reject if it comes from ETLR
711
        if ($packetflow[count($packetflow) - 1] == 3 && $this->checkLineparse($packetflow_orig, self::LINEPARSE_CHECK_REJECTIGNORE)) {
712
            array_pop($packetflow);
713
        }
714
        $this->loggerInstance->debug(5, "Packetflow: " . print_r($packetflow, TRUE));
715
        $packetcount = array_count_values($packetflow);
716
        $testresults['packetcount'] = $packetcount;