@@ -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) |