@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | private function getMaxFightersByEntity($userGroups): int |
| 84 | 84 | { |
| 85 | 85 | return $userGroups |
| 86 | - ->sortByDesc(function ($group) { |
|
| 86 | + ->sortByDesc(function($group) { |
|
| 87 | 87 | return $group->count(); |
| 88 | 88 | }) |
| 89 | 89 | ->first() |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | protected function getTreeSize($fighterCount, $groupSize) |
| 122 | 122 | { |
| 123 | 123 | $square = collect([1, 2, 4, 8, 16, 32, 64]); |
| 124 | - $squareMultiplied = $square->map(function ($item) use ($groupSize) { |
|
| 124 | + $squareMultiplied = $square->map(function($item) use ($groupSize) { |
|
| 125 | 125 | return $item * $groupSize; |
| 126 | 126 | }); |
| 127 | 127 | |
@@ -439,9 +439,9 @@ discard block |
||
| 439 | 439 | $totalAreas = $this->settings->fightingAreas; |
| 440 | 440 | $numFighters = $this->championship->fighters->count(); |
| 441 | 441 | $numGroups = $this->getTreeSize($numFighters, $this->championship->getGroupSize()) / $this->championship->getGroupSize(); // 5 -> 8 |
| 442 | - $areaSize = $numGroups / ($totalAreas * pow(2,$round -1)); |
|
| 442 | + $areaSize = $numGroups / ($totalAreas * pow(2, $round - 1)); |
|
| 443 | 443 | |
| 444 | - $numArea = intval(ceil($order / $areaSize )); // if round == 4, and second match 2/2 = 1 BAD |
|
| 444 | + $numArea = intval(ceil($order / $areaSize)); // if round == 4, and second match 2/2 = 1 BAD |
|
| 445 | 445 | return $numArea; |
| 446 | 446 | } |
| 447 | 447 | } |