Code Duplication    Length = 3-3 lines in 2 locations

core/diag/RADIUSTests.php 2 locations

@@ 943-945 (lines=3) @@
940
// mention trust chain failure only if no expired cert was in the chain; otherwise path validation will trivially fail
941
            if (in_array(RADIUSTests::CERTPROB_OUTSIDE_VALIDITY_PERIOD, $testresults['cert_oddities'])) {
942
                $this->loggerInstance->debug(4, "Deleting trust chain problem report, if present.");
943
                if (($key = array_search(RADIUSTests::CERTPROB_TRUST_ROOT_NOT_REACHED, $testresults['cert_oddities'])) !== false) {
944
                    unset($testresults['cert_oddities'][$key]);
945
                }
946
                if (($key = array_search(RADIUSTests::CERTPROB_TRUST_ROOT_REACHED_ONLY_WITH_OOB_INTERMEDIATES, $testresults['cert_oddities'])) !== false) {
947
                    unset($testresults['cert_oddities'][$key]);
948
                }
@@ 946-948 (lines=3) @@
943
                if (($key = array_search(RADIUSTests::CERTPROB_TRUST_ROOT_NOT_REACHED, $testresults['cert_oddities'])) !== false) {
944
                    unset($testresults['cert_oddities'][$key]);
945
                }
946
                if (($key = array_search(RADIUSTests::CERTPROB_TRUST_ROOT_REACHED_ONLY_WITH_OOB_INTERMEDIATES, $testresults['cert_oddities'])) !== false) {
947
                    unset($testresults['cert_oddities'][$key]);
948
                }
949
            }
950
        }
951
        $this->loggerInstance->debug(4, "UDP_LOGIN\n");