Test Failed
Push — master ( 241073...2d5b3a )
by Julien
03:08
created
src/models/Fight.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 namespace Xoco70\KendoTournaments\Models;
5 5
 
6 6
 
7
-use App\User;
8 7
 use Illuminate\Database\Eloquent\Model;
9
-use Illuminate\Support\Collection;
10 8
 
11 9
 class Fight extends Model
12 10
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     /**
90 90
      * Save a Fight.
91
-     * @param $rounds
91
+     * @param Collection $rounds
92 92
      * @param int $numRound
93 93
      */
94 94
     public static function savePreliminaryFightRound($rounds, $numRound = 1)
@@ -156,6 +156,9 @@  discard block
 block discarded – undo
156 156
 //        }
157 157
 //    }
158 158
 
159
+    /**
160
+     * @param Collection $rounds
161
+     */
159 162
     public static function saveRoundRobinFights(Championship $championship, $rounds)
160 163
     {
161 164
 
Please login to merge, or discard this patch.
src/models/Round.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * @param Collection $rounds
65
-     * @param $settings
65
+     * @param ChampionshipSettings $settings
66 66
      * @param Championship $championship
67 67
      */
68 68
     public static function generateFights(Collection $rounds, $settings, Championship $championship = null)
Please login to merge, or discard this patch.
src/TreeGen/TreeGen.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
     public $championship, $settings;
20 20
 
21 21
 
22
+    /**
23
+     * @param \Xoco70\KendoTournaments\Models\ChampionshipSettings $settings
24
+     */
22 25
     public function __construct(Championship $championship, $groupBy, $settings)
23 26
     {
24 27
         $this->championship = $championship;
@@ -242,7 +245,7 @@  discard block
 block discarded – undo
242 245
 
243 246
     /**
244 247
      * @param $fighterGroups
245
-     * @param $max
248
+     * @param integer $max
246 249
      * @return Collection
247 250
      */
248 251
     private function repart($fighterGroups, $max)
Please login to merge, or discard this patch.
src/TreeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,9 @@
 block discarded – undo
10 10
 use Xoco70\KendoTournaments\Models\Championship;
11 11
 use Xoco70\KendoTournaments\Models\ChampionshipSettings;
12 12
 use Xoco70\KendoTournaments\Models\Competitor;
13
-use Xoco70\KendoTournaments\Models\Fight;
14 13
 use Xoco70\KendoTournaments\Models\Tournament;
15 14
 use Xoco70\KendoTournaments\Models\Round;
16 15
 use Xoco70\KendoTournaments\TreeGen\TreeGen;
17
-use Faker\Factory as Faker;
18 16
 
19 17
 class TreeController extends Controller
20 18
 {
Please login to merge, or discard this patch.