Code Duplication    Length = 3-3 lines in 2 locations

src/TreeGen/DirectEliminationTreeGen.php 2 locations

@@ 210-212 (lines=3) @@
207
        $html = '<select>
208
                <option' . ($selected == '' ? ' selected' : '') . '></option>';
209
        foreach (array_merge($this->brackets[1]) as $bracket) { // Bug Fix 24-02-2017 , $this->brackets[2]
210
            if ($bracket['playerA'] != '') {
211
                $html .= '<option' . ($selected == $bracket['playerA'] ? ' selected' : '') . '>' . $bracket['playerA'] . '</option>';
212
            }
213
214
            if ($bracket['playerB'] != '') {
215
                $html .= '<option' . ($selected == $bracket['playerB'] ? ' selected' : '') . '>' . $bracket['playerB'] . '</option>';
@@ 214-216 (lines=3) @@
211
                $html .= '<option' . ($selected == $bracket['playerA'] ? ' selected' : '') . '>' . $bracket['playerA'] . '</option>';
212
            }
213
214
            if ($bracket['playerB'] != '') {
215
                $html .= '<option' . ($selected == $bracket['playerB'] ? ' selected' : '') . '>' . $bracket['playerB'] . '</option>';
216
            }
217
        }
218
219
        $html .= '</select>';