Code Duplication    Length = 9-9 lines in 2 locations

src/TreeGen/TreeGen.php 2 locations

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