@@ -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 | }); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | private function getMaxFightersByEntity($userGroups): int |
56 | 56 | { |
57 | 57 | return $userGroups |
58 | - ->sortByDesc(function ($group) { |
|
58 | + ->sortByDesc(function($group) { |
|
59 | 59 | return $group->count(); |
60 | 60 | }) |
61 | 61 | ->first() |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | protected function getTreeSize($fighterCount, $groupSize) |
94 | 94 | { |
95 | 95 | $square = collect([1, 2, 4, 8, 16, 32, 64]); |
96 | - $squareMultiplied = $square->map(function ($item) use ($groupSize) { |
|
96 | + $squareMultiplied = $square->map(function($item) use ($groupSize) { |
|
97 | 97 | return $item * $groupSize; |
98 | 98 | }); |
99 | 99 |