@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | { |
23 | 23 | parent::boot(); |
24 | 24 | |
25 | - static::deleting(function ($championship) { |
|
25 | + static::deleting(function($championship) { |
|
26 | 26 | $championship->competitors()->delete(); |
27 | 27 | $championship->settings()->delete(); |
28 | 28 | }); |
29 | - static::restoring(function ($championship) { |
|
29 | + static::restoring(function($championship) { |
|
30 | 30 | $championship->competitors()->restore(); |
31 | 31 | $championship->settings()->restore(); |
32 | 32 | }); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | return $teamText . ' ' . $genders[$this->category->gender] . ' ' . $ageCategoryText . ' ' . $gradeText; |
190 | 190 | } |
191 | 191 | |
192 | - public function getSettings(){ |
|
192 | + public function getSettings() { |
|
193 | 193 | return $this->settings ?? new ChampionshipSettings(config('options.default_settings')); |
194 | 194 | } |
195 | 195 |