src/TreeGen/PlayOffTreeGen.php 1 location
|
@@ 17-24 (lines=8) @@
|
| 14 |
|
* |
| 15 |
|
* @return Collection |
| 16 |
|
*/ |
| 17 |
|
protected function getByeGroup($fighters) |
| 18 |
|
{ |
| 19 |
|
$fighterCount = $fighters->count(); |
| 20 |
|
$treeSize = $this->getTreeSize($fighterCount, 2); |
| 21 |
|
$byeCount = $treeSize - $fighterCount; |
| 22 |
|
|
| 23 |
|
return $this->createByeGroup($byeCount); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
src/TreeGen/SingleEliminationTreeGen.php 1 location
|
@@ 25-33 (lines=9) @@
|
| 22 |
|
* |
| 23 |
|
* @return Collection |
| 24 |
|
*/ |
| 25 |
|
protected function getByeGroup($fighters) |
| 26 |
|
{ |
| 27 |
|
$fighterCount = $fighters->count(); |
| 28 |
|
$firstRoundGroupSize = $this->firstRoundGroupSize(); |
| 29 |
|
$treeSize = $this->getTreeSize($fighterCount, $firstRoundGroupSize); |
| 30 |
|
$byeCount = $treeSize - $fighterCount; |
| 31 |
|
return $this->createByeGroup($byeCount); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* Save Groups with their parent info. |
| 36 |
|
* |