Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

@@ 213-221 (lines=9) @@
210
     * @param integer $groupSize
211
     * @return Collection
212
     */
213
    public function createByeGroup($groupSize): Collection
214
    {
215
        $byeFighter = $this->createByeFighter();
216
        $group = new Collection();
217
        for ($i = 0; $i < $groupSize; $i++) {
218
            $group->push($byeFighter);
219
        }
220
        return $group;
221
    }
222
223
    /**
224
     * @param $fighters
@@ 338-346 (lines=9) @@
335
     * @param $byeCount
336
     * @return Collection
337
     */
338
    protected function createNullsGroup($byeCount): Collection
339
    {
340
        $byeFighter = $this->createByeFighter();
341
        $byeGroup = new Collection();
342
        for ($i = 0; $i < $byeCount; $i++) {
343
            $byeGroup->push($byeFighter);
344
        }
345
        return $byeGroup;
346
    }
347
}
348