Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

@@ 207-215 (lines=9) @@
204
     * @param integer $groupSize
205
     * @return Collection
206
     */
207
    public function createByeGroup($groupSize): Collection
208
    {
209
        $byeFighter = $this->createByeFighter();
210
        $group = new Collection();
211
        for ($i = 0; $i < $groupSize; $i++) {
212
            $group->push($byeFighter);
213
        }
214
        return $group;
215
    }
216
217
    /**
218
     * @param $fighters
@@ 317-325 (lines=9) @@
314
     * @param $byeCount
315
     * @return Collection
316
     */
317
    protected function createNullsGroup($byeCount): Collection
318
    {
319
        $byeFighter = $this->createByeFighter();
320
        $byeGroup = new Collection();
321
        for ($i = 0; $i < $byeCount; $i++) {
322
            $byeGroup->push($byeFighter);
323
        }
324
        return $byeGroup;
325
    }
326
327
    /**
328
     * @param Collection $fighters