Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

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