Code Duplication    Length = 12-12 lines in 2 locations

core/diag/Telepath.php 2 locations

@@ 113-124 (lines=12) @@
110
            // one more level
111
            switch ($type) {
112
                case "tlr_test":
113
                    switch ($resultset['status_code']) {
114
                        case 0:
115
                            $atLeastOneFunctional = TRUE;
116
                            break;
117
                        case 9: // monitoring itself has an error, no effect on our verdict
118
                        case -1: // Reject test fails, but we diagnose supposed-working connection, so no effect on our verdict
119
                        case -10: // same as previous
120
                        case -11: // same as previous
121
                            break;
122
                        default:
123
                            $allFunctional = FALSE;
124
                    }
125
                    break;
126
                default:
127
                    foreach ($resultset as $particularInstance => $particularResultset) {
@@ 128-139 (lines=12) @@
125
                    break;
126
                default:
127
                    foreach ($resultset as $particularInstance => $particularResultset) {
128
                        switch ($particularResultset['status_code']) {
129
                            case 0:
130
                                $atLeastOneFunctional = TRUE;
131
                                break;
132
                            case 9: // monitoring itself has an error, no effect on our verdict
133
                            case -1: // Reject test fails, but we diagnose supposed-working connection, so no effect on our verdict
134
                            case -10: // same as previous
135
                            case -11: // same as previous
136
                                break;
137
                            default:
138
                                $allFunctional = FALSE;
139
                        }
140
                    }
141
            }
142
        }