@@ -23,11 +23,11 @@ |
||
23 | 23 | { |
24 | 24 | parent::boot(); |
25 | 25 | |
26 | - static::deleting(function ($championship) { |
|
26 | + static::deleting(function($championship) { |
|
27 | 27 | $championship->competitors()->delete(); |
28 | 28 | $championship->settings()->delete(); |
29 | 29 | }); |
30 | - static::restoring(function ($championship) { |
|
30 | + static::restoring(function($championship) { |
|
31 | 31 | $championship->competitors()->restore(); |
32 | 32 | $championship->settings()->restore(); |
33 | 33 | }); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | private function getMaxFightersByEntity($userGroups): int |
57 | 57 | { |
58 | 58 | return $userGroups |
59 | - ->sortByDesc(function ($group) { |
|
59 | + ->sortByDesc(function($group) { |
|
60 | 60 | return $group->count(); |
61 | 61 | }) |
62 | 62 | ->first() |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | protected function getTreeSize($fighterCount, $groupSize) |
93 | 93 | { |
94 | 94 | $square = collect([1, 2, 4, 8, 16, 32, 64]); |
95 | - $squareMultiplied = $square->map(function ($item, $key) use ($groupSize) { |
|
95 | + $squareMultiplied = $square->map(function($item, $key) use ($groupSize) { |
|
96 | 96 | return $item * $groupSize; |
97 | 97 | }); |
98 | 98 |