Code Duplication    Length = 3-3 lines in 2 locations

src/TreeGen/DirectEliminationTreeGen.php 2 locations

@@ 239-241 (lines=3) @@
236
        $html = '<select>
237
                <option' . ($selected == '' ? ' selected' : '') . '></option>';
238
        foreach (array_merge($this->brackets[1], $this->brackets[2]) as $bracket) {
239
            if ($bracket['playerA'] != '') {
240
                $html .= '<option' . ($selected == $bracket['playerA'] ? ' selected' : '') . '>' . $bracket['playerA']->getName() . '</option>';
241
            }
242
243
            if ($bracket['playerB'] != '') {
244
                $html .= '<option' . ($selected == $bracket['playerB'] ? ' selected' : '') . '>' . $bracket['playerB']->getName(). '</option>';
@@ 243-245 (lines=3) @@
240
                $html .= '<option' . ($selected == $bracket['playerA'] ? ' selected' : '') . '>' . $bracket['playerA']->getName() . '</option>';
241
            }
242
243
            if ($bracket['playerB'] != '') {
244
                $html .= '<option' . ($selected == $bracket['playerB'] ? ' selected' : '') . '>' . $bracket['playerB']->getName(). '</option>';
245
            }
246
        }
247
248
        $html .= '</select>';