Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

@@ 204-212 (lines=9) @@
201
     * @param integer $groupSize
202
     * @return Collection
203
     */
204
    public function createByeGroup($groupSize): Collection
205
    {
206
        $byeFighter = $this->createByeFighter();
207
        $group = new Collection();
208
        for ($i = 0; $i < $groupSize; $i++) {
209
            $group->push($byeFighter);
210
        }
211
        return $group;
212
    }
213
214
    /**
215
     * @param $fighters
@@ 330-338 (lines=9) @@
327
     * @param $byeCount
328
     * @return Collection
329
     */
330
    protected function createNullsGroup($byeCount): Collection
331
    {
332
        $byeFighter = $this->createByeFighter();
333
        $byeGroup = new Collection();
334
        for ($i = 0; $i < $byeCount; $i++) {
335
            $byeGroup->push($byeFighter);
336
        }
337
        return $byeGroup;
338
    }
339
340
    /**
341
     * @param Collection $fighters