| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Create empty groups for direct Elimination Tree |
||
| 28 | * @param $numFightersEliminatory |
||
| 29 | */ |
||
| 30 | public function pushEmptyGroupsToTree($numFightersEliminatory) |
||
| 31 | { |
||
| 32 | // We calculate how much rounds we will have |
||
| 33 | $numRounds = intval(log($numFightersEliminatory, 2)); |
||
| 34 | $this->pushGroups($numRounds, $numFightersEliminatory); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Chunk Fighters into groups for fighting, and optionnaly shuffle |
||
| 39 | * @param $round |
||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.