@@ -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 | } |