Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

@@ 215-223 (lines=9) @@
212
     * @param integer $groupSize
213
     * @return Collection
214
     */
215
    public function createByeGroup($groupSize): Collection
216
    {
217
        $byeFighter = $this->createByeFighter();
218
        $group = new Collection();
219
        for ($i = 0; $i < $groupSize; $i++) {
220
            $group->push($byeFighter);
221
        }
222
        return $group;
223
    }
224
225
    /**
226
     * @param $fighters
@@ 364-372 (lines=9) @@
361
     * @param $byeCount
362
     * @return Collection
363
     */
364
    protected function createNullsGroup($byeCount): Collection
365
    {
366
        $byeFighter = $this->createByeFighter();
367
        $byeGroup = new Collection();
368
        for ($i = 0; $i < $byeCount; $i++) {
369
            $byeGroup->push($byeFighter);
370
        }
371
        return $byeGroup;
372
    }
373
374
}
375