Passed
Pull Request — master (#43)
by Julien
14:24 queued 07:51
created
src/Models/Competitor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Get User from Competitor.
21 21
      *
22
-     * @return mixed
22
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
23 23
      */
24 24
     public function user()
25 25
     {
Please login to merge, or discard this patch.
src/Models/Fight.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @param FightersGroup|null $group
44
+     * @param FightersGroup $group
45 45
      *
46 46
      * @return Collection
47 47
      */
@@ -151,6 +151,7 @@  discard block
 block discarded – undo
151 151
     }
152 152
 
153 153
     /**
154
+     * @param boolean $default
154 155
      * @return bool
155 156
      */
156 157
     public function shouldBeInFightList($default)
Please login to merge, or discard this patch.
src/Models/Team.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         return $this->name;
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $attr
36
+     */
34 37
     public function hasAttribute($attr)
35 38
     {
36 39
         return array_key_exists($attr, $this->attributes);
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 chunk(Collection $fightersByEntity)
35 35
     {
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
         $this->generateGroupsForRound($fighters, 1);
104 104
     }
105 105
 
106
+    /**
107
+     * @param integer $round
108
+     */
106 109
     protected function generateGroupsForRound(Collection $fightersByArea, $round)
107 110
     {
108 111
         $fightersId = $fightersByArea->pluck('id');
Please login to merge, or discard this patch.
src/TreeGen/SingleEliminationTreeGen.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Create empty groups after round 1.
61 61
      *
62
-     * @param $numFighters
62
+     * @param integer $numFighters
63 63
      */
64 64
     protected function pushEmptyGroupsToTree($numFighters)
65 65
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     /**
164 164
      * @param Collection $usersByArea
165
-     * @param $round
165
+     * @param integer $round
166 166
      */
167 167
     public function generateGroupsForRound(Collection $usersByArea, $round)
168 168
     {
@@ -249,10 +249,11 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-     * @param $frequency
252
+     * @param integer $frequency
253 253
      * @param $groupSize
254
-     * @param $count
255
-     * @param $byeCount
254
+     * @param integer $count
255
+     * @param integer $byeCount
256
+     * @param integer $numByeTotal
256 257
      *
257 258
      * @return bool
258 259
      */
@@ -293,7 +294,7 @@  discard block
 block discarded – undo
293 294
     /**
294 295
      * Get the biggest entity group.
295 296
      *
296
-     * @param $userGroups
297
+     * @param Collection $userGroups
297 298
      *
298 299
      * @return int
299 300
      */
@@ -311,7 +312,7 @@  discard block
 block discarded – undo
311 312
     /**
312 313
      * Repart BYE in the tree,.
313 314
      *
314
-     * @param $fighterGroups
315
+     * @param Collection $fighterGroups
315 316
      * @param int $max
316 317
      *
317 318
      * @return Collection
Please login to merge, or discard this patch.
src/TournamentsServiceProvider.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
     /**
11 11
      * Bootstrap the application services.
12 12
      *
13
-     * @param Router $router
14 13
      *
15 14
      * @return void
16 15
      */
Please login to merge, or discard this patch.
src/Models/PreliminaryFight.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Save a Fight.
59 59
      *
60
-     * @param Collection $group
60
+     * @param FightersGroup $group
61 61
      * @param int        $numGroup
62 62
      * @param int        $order
63 63
      */
Please login to merge, or discard this patch.
src/TreeGen/TreeGen.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
 
22 22
     abstract protected function generateFights();
23 23
 
24
+    /**
25
+     * @param string|null $fighterToUpdate
26
+     */
24 27
     abstract protected function addFighterToGroup(FightersGroup $group, $fighter, $fighterToUpdate);
25 28
 
26 29
     abstract protected function getByeGroup($fighters);
@@ -82,7 +85,7 @@  discard block
 block discarded – undo
82 85
      * Get the size the first round will have.
83 86
      *
84 87
      * @param $fighterCount
85
-     * @param $groupSize
88
+     * @param integer $groupSize
86 89
      *
87 90
      * @return int
88 91
      */
@@ -200,7 +203,7 @@  discard block
 block discarded – undo
200 203
     /**
201 204
      * Logically build the tree ( attach a parent to every child for nestedSet Navigation ).
202 205
      *
203
-     * @param $numFighters
206
+     * @param integer $numFighters
204 207
      */
205 208
     protected function addParentToChildren($numFighters)
206 209
     {
Please login to merge, or discard this patch.