@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @param $fightersByEntity |
31 | 31 | * |
32 | - * @return mixed |
|
32 | + * @return Collection |
|
33 | 33 | */ |
34 | 34 | protected function chunkAndShuffle(Collection $fightersByEntity) |
35 | 35 | { |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | $this->generateGroupsForRound($fighters, 1); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param integer $round |
|
109 | + */ |
|
107 | 110 | protected function generateGroupsForRound(Collection $fightersByArea, $round) |
108 | 111 | { |
109 | 112 | $fightersId = $fightersByArea->pluck('id'); |
@@ -57,13 +57,13 @@ |
||
57 | 57 | protected static function boot() |
58 | 58 | { |
59 | 59 | parent::boot(); |
60 | - static::deleting(function ($tournament) { |
|
60 | + static::deleting(function($tournament) { |
|
61 | 61 | foreach ($tournament->championships as $ct) { |
62 | 62 | $ct->delete(); |
63 | 63 | } |
64 | 64 | // $tournament->invites()->delete(); |
65 | 65 | }); |
66 | - static::restoring(function ($tournament) { |
|
66 | + static::restoring(function($tournament) { |
|
67 | 67 | foreach ($tournament->championships()->withTrashed()->get() as $ct) { |
68 | 68 | $ct->restore(); |
69 | 69 | } |