@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | abstract protected function createByeFighter(); |
25 | 25 | |
26 | - abstract protected function addFighterToGroup(FightersGroup $group, $fighter,$fighterToUpdate); |
|
26 | + abstract protected function addFighterToGroup(FightersGroup $group, $fighter, $fighterToUpdate); |
|
27 | 27 | |
28 | 28 | abstract protected function getByeGroup($fighters); |
29 | 29 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | private function getMaxFightersByEntity($userGroups): int |
76 | 76 | { |
77 | 77 | return $userGroups |
78 | - ->sortByDesc(function ($group) { |
|
78 | + ->sortByDesc(function($group) { |
|
79 | 79 | return $group->count(); |
80 | 80 | }) |
81 | 81 | ->first() |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | protected function getTreeSize($fighterCount, $groupSize) |
114 | 114 | { |
115 | 115 | $squareMultiplied = collect([1, 2, 4, 8, 16, 32, 64]) |
116 | - ->map(function ($item) use ($groupSize) { |
|
116 | + ->map(function($item) use ($groupSize) { |
|
117 | 117 | return $item * $groupSize; |
118 | 118 | }); // [4, 8, 16, 32, 64,...] |
119 | 119 |