@@ -4,7 +4,7 @@ |
||
4 | 4 | use Xoco70\LaravelTournaments\Models\Championship; |
5 | 5 | use Xoco70\LaravelTournaments\Models\ChampionshipSettings; |
6 | 6 | |
7 | -$factory->define(ChampionshipSettings::class, function (Faker\Generator $faker) use ($factory) { |
|
7 | +$factory->define(ChampionshipSettings::class, function(Faker\Generator $faker) use ($factory) { |
|
8 | 8 | $tcs = Championship::all()->pluck('id')->toArray(); |
9 | 9 | |
10 | 10 | $fightingAreas = [1, 2, 4, 8]; |
@@ -112,15 +112,15 @@ |
||
112 | 112 | { |
113 | 113 | $isTeam = $this->group->championship->category->isTeam; |
114 | 114 | if ($isTeam) { |
115 | - $teamToUpdate = 'team'.$numFighter; |
|
115 | + $teamToUpdate = 'team' . $numFighter; |
|
116 | 116 | |
117 | 117 | return optional($this->$teamToUpdate)->$attr; |
118 | 118 | } |
119 | - $competitorToUpdate = 'competitor'.$numFighter; |
|
119 | + $competitorToUpdate = 'competitor' . $numFighter; |
|
120 | 120 | if ($attr == 'name') { |
121 | 121 | return $this->$competitorToUpdate == null |
122 | 122 | ? '' |
123 | - : $this->$competitorToUpdate->user->firstname.' '.$this->$competitorToUpdate->user->lastname; |
|
123 | + : $this->$competitorToUpdate->user->firstname . ' ' . $this->$competitorToUpdate->user->lastname; |
|
124 | 124 | } elseif ($attr == 'short_id') { |
125 | 125 | return optional($this->$competitorToUpdate)->short_id; |
126 | 126 | } |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | { |
29 | 29 | parent::boot(); |
30 | 30 | |
31 | - static::deleting(function ($championship) { |
|
31 | + static::deleting(function($championship) { |
|
32 | 32 | $championship->competitors()->delete(); |
33 | 33 | $championship->settings()->delete(); |
34 | 34 | }); |
35 | - static::restoring(function ($championship) { |
|
35 | + static::restoring(function($championship) { |
|
36 | 36 | $championship->competitors()->restore(); |
37 | 37 | $championship->settings()->restore(); |
38 | 38 | }); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $ageCategoryText = $this->category->getAgeString(); |
196 | 196 | $gradeText = $this->category->getGradeString(); |
197 | 197 | |
198 | - return $teamText.' '.$genders[$this->category->gender].' '.$ageCategoryText.' '.$gradeText; |
|
198 | + return $teamText . ' ' . $genders[$this->category->gender] . ' ' . $ageCategoryText . ' ' . $gradeText; |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | public function getSettings() |