@@ -23,11 +23,11 @@ discard block |
||
| 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 | }); |
@@ -211,6 +211,6 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | public function groupsByRound($round) : Collection |
| 213 | 213 | { |
| 214 | - return $this->fightersGroups()->where('round',$round)->get(); |
|
| 214 | + return $this->fightersGroups()->where('round', $round)->get(); |
|
| 215 | 215 | } |
| 216 | 216 | } |
@@ -74,12 +74,12 @@ |
||
| 74 | 74 | FightersGroup::generateFights($championship); |
| 75 | 75 | } catch (TreeGenerationException $e) { |
| 76 | 76 | redirect()->back() |
| 77 | - ->withErrors([$numFighters ."-".$e->getMessage()]); |
|
| 77 | + ->withErrors([$numFighters . "-" . $e->getMessage()]); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | return redirect()->back() |
| 81 | 81 | ->with('numFighters', $numFighters) |
| 82 | 82 | ->with('hasPreliminary', $championship->settings->hasPreliminary) |
| 83 | - ->with(['success' , "Success"]); |
|
| 83 | + ->with(['success', "Success"]); |
|
| 84 | 84 | } |
| 85 | 85 | } |