Passed
Branch removeCase (d91e80)
by Julien
06:02
created
src/TreeGen/PlayOffTreeGen.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param $fightersByEntity
32 32
      *
33
-     * @return mixed
33
+     * @return Collection
34 34
      */
35 35
     protected function chunkAndShuffle(Collection $fightersByEntity)
36 36
     {
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
         }
98 98
     }
99 99
 
100
+    /**
101
+     * @param integer $round
102
+     */
100 103
     protected function generateGroupsForRound(Collection $fightersByArea, $round)
101 104
     {
102 105
         $fightersId = $fightersByArea->pluck('id');
Please login to merge, or discard this patch.
src/TreeController.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @param Request $request
39 39
      *
40
-     * @return \Illuminate\Http\Response|string
40
+     * @return \Illuminate\Http\RedirectResponse
41 41
      */
42 42
     public function store(Request $request, $championshipId)
43 43
     {
@@ -137,6 +137,9 @@  discard block
 block discarded – undo
137 137
         return back();
138 138
     }
139 139
 
140
+    /**
141
+     * @param integer $numFighter
142
+     */
140 143
     public function getWinnerId($fighters, $scores, $numFighter)
141 144
     {
142 145
         return $scores[$numFighter] != null ? $fighters[$numFighter] : null;
Please login to merge, or discard this patch.
src/TreeGen/SingleEliminationTreeGen.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Create empty groups after round 1.
59 59
      *
60
-     * @param $numFighters
60
+     * @param integer $numFighters
61 61
      */
62 62
     protected function pushEmptyGroupsToTree($numFighters)
63 63
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
     /**
157 157
      * @param Collection $usersByArea
158
-     * @param $round
158
+     * @param integer $round
159 159
      */
160 160
     public function generateGroupsForRound(Collection $usersByArea, $round)
161 161
     {
Please login to merge, or discard this patch.