Test Failed
Push — master ( 366b92...449984 )
by Julien
12:33
created
database/seeds/TournamentSeeder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Database\QueryException;
4 3
 use Illuminate\Database\Seeder;
5 4
 use Xoco70\KendoTournaments\Models\Championship;
6 5
 use Xoco70\KendoTournaments\Models\Venue;
Please login to merge, or discard this patch.
src/models/Tree.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
 
219 219
     /**
220 220
      * @param Collection $tree
221
-     * @param $settings
221
+     * @param ChampionshipSettings $settings
222 222
      */
223 223
     public static function generateFights(Collection $tree, $settings, Championship $championship = null)
224 224
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 
6 6
 use Illuminate\Database\Eloquent\Model;
7 7
 use Illuminate\Support\Collection;
8
-use Illuminate\Support\Facades\Config;
9 8
 use Xoco70\KendoTournaments\TreeGen\TreeGen;
10 9
 
11 10
 class Tree extends Model
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
@@ -20,6 +20,9 @@  discard block
 block discarded – undo
20 20
     public $championship, $settings;
21 21
 
22 22
 
23
+    /**
24
+     * @param \Xoco70\KendoTournaments\Models\ChampionshipSettings $settings
25
+     */
23 26
     public function __construct(Championship $championship, $groupBy, $settings)
24 27
     {
25 28
         $this->championship = $championship;
@@ -257,7 +260,7 @@  discard block
 block discarded – undo
257 260
 
258 261
     /**
259 262
      * @param $userGroups
260
-     * @param $max
263
+     * @param integer $max
261 264
      * @return Collection
262 265
      */
263 266
     private function repart($userGroups, $max)
Please login to merge, or discard this patch.
src/models/Fight.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     /**
108 108
      * Save a Fight.
109
-     * @param $tree
109
+     * @param Collection $tree
110 110
      * @param int $numRound
111 111
      */
112 112
     public static function saveFightRound($tree, $numRound = 1)
@@ -166,6 +166,9 @@  discard block
 block discarded – undo
166 166
 //        }
167 167
 //    }
168 168
 
169
+    /**
170
+     * @param Collection $tree
171
+     */
169 172
     public static function saveRoundRobinFights(Championship $championship, $tree)
170 173
     {
171 174
 
Please login to merge, or discard this patch.
src/TreeController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Xoco70\KendoTournaments;
4 4
 
5 5
 use App\Http\Controllers\Controller;
6
-use Illuminate\Auth\Access\AuthorizationException;
7 6
 use Illuminate\Http\Request;
8 7
 use Xoco70\KendoTournaments\Exceptions\TreeGenerationException;
9 8
 use Xoco70\KendoTournaments\Models\Championship;
Please login to merge, or discard this patch.