Completed
Pull Request — master (#13)
by
unknown
12:29
created
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.
src/Models/Tournament.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,13 +57,13 @@
 block discarded – undo
57 57
     protected static function boot()
58 58
     {
59 59
         parent::boot();
60
-        static::deleting(function ($tournament) {
60
+        static::deleting(function($tournament) {
61 61
             foreach ($tournament->championships as $ct) {
62 62
                 $ct->delete();
63 63
             }
64 64
             // $tournament->invites()->delete();
65 65
         });
66
-        static::restoring(function ($tournament) {
66
+        static::restoring(function($tournament) {
67 67
             foreach ($tournament->championships()->withTrashed()->get() as $ct) {
68 68
                 $ct->restore();
69 69
             }
Please login to merge, or discard this patch.