Completed
Pull Request — master (#6)
by
unknown
05:15
created
src/TreeGen/SingleEliminationTreeGen.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * Create empty groups after round 1
52 52
      *
53
-     * @param $numFighters
53
+     * @param integer $numFighters
54 54
      */
55 55
     protected function pushEmptyGroupsToTree($numFighters)
56 56
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
     /**
151 151
      * @param Collection $usersByArea
152
-     * @param $round
152
+     * @param integer $round
153 153
      */
154 154
     public function generateGroupsForRound(Collection $usersByArea, $round)
155 155
     {
Please login to merge, or discard this patch.
src/Models/Competitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function getFullName() //TODO Should remove get prefix
43 43
     {
44
-        return $this->defaultName() ?? $this->user->firstname.' '.$this->user->lastname;
44
+        return $this->defaultName() ?? $this->user->firstname . ' ' . $this->user->lastname;
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Models/Tournament.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@
 block discarded – undo
56 56
     protected static function boot()
57 57
     {
58 58
         parent::boot();
59
-        static::deleting(function ($tournament) {
59
+        static::deleting(function($tournament) {
60 60
             foreach ($tournament->championships as $ct) {
61 61
                 $ct->delete();
62 62
             }
63 63
             $tournament->invites()->delete();
64 64
         });
65
-        static::restoring(function ($tournament) {
65
+        static::restoring(function($tournament) {
66 66
             foreach ($tournament->championships()->withTrashed()->get() as $ct) {
67 67
                 $ct->restore();
68 68
             }
Please login to merge, or discard this patch.
src/Models/FightersGroup.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,14 +195,14 @@
 block discarded – undo
195 195
      */
196 196
     public function getValueToUpdate()
197 197
     {
198
-        try{
198
+        try {
199 199
             if ($this->championship->category->isTeam()) {
200 200
                 return $this->teams->map->id[0];
201 201
             }
202 202
 
203 203
             return $this->competitors->map->id[0];
204 204
 
205
-        }catch (ErrorException $e){
205
+        } catch (ErrorException $e) {
206 206
             return null;
207 207
         }
208 208
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
 
203 203
             return $this->competitors->map->id[0];
204 204
 
205
-        }catch (ErrorException $e){
205
+        } catch (ErrorException $e){
206 206
             return null;
207 207
         }
208 208
 
Please login to merge, or discard this patch.
src/Models/Championship.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
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
         });
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function fights()
158 158
     {
159
-        return $this->hasManyThrough(Fight::class, FightersGroup::class)->orderBy('id','asc');
159
+        return $this->hasManyThrough(Fight::class, FightersGroup::class)->orderBy('id', 'asc');
160 160
     }
161 161
 
162 162
     /**
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
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()
Please login to merge, or discard this patch.