@@ -1,6 +1,5 @@ |
||
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; |
@@ -218,7 +218,7 @@ |
||
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 | { |
@@ -5,7 +5,6 @@ |
||
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 |
@@ -20,6 +20,9 @@ discard block |
||
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 |
||
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) |
@@ -106,7 +106,7 @@ discard block |
||
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 |
||
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 |
@@ -3,7 +3,6 @@ |
||
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; |