Completed
Push — master ( ba0544...309355 )
by Julien
12:48
created
src/Models/Championship.php 1 patch
Spacing   +3 added lines, -3 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
         });
@@ -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.
src/TreeGen/PlayOffTreeGen.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @param $fightersByEntity
31 31
      *
32
-     * @return mixed
32
+     * @return Collection
33 33
      */
34 34
     protected function chunkAndShuffle(Collection $fightersByEntity)
35 35
     {
@@ -104,6 +104,9 @@  discard block
 block discarded – undo
104 104
         $this->generateGroupsForRound($fighters, 1);
105 105
     }
106 106
 
107
+    /**
108
+     * @param integer $round
109
+     */
107 110
     protected function generateGroupsForRound(Collection $fightersByArea, $round)
108 111
     {
109 112
         $fightersId = $fightersByArea->pluck('id');
Please login to merge, or discard this patch.