@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Save a Fight. |
91 | 91 | * |
92 | - * @param Collection $rounds |
|
92 | + * @param \Illuminate\Support\Collection $rounds |
|
93 | 93 | * @param int $numRound |
94 | 94 | */ |
95 | 95 | public static function savePreliminaryFightRound($rounds, $numRound = 1) |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | // } |
157 | 157 | |
158 | 158 | /** |
159 | - * @param Collection $rounds |
|
159 | + * @param \Illuminate\Support\Collection $rounds |
|
160 | 160 | */ |
161 | 161 | public static function saveRoundRobinFights(Championship $championship, $rounds) |
162 | 162 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -$factory->define(\Illuminate\Foundation\Auth\User::class, function (Faker\Generator $faker) { |
|
4 | +$factory->define(\Illuminate\Foundation\Auth\User::class, function(Faker\Generator $faker) { |
|
5 | 5 | $email = $faker->email; |
6 | 6 | |
7 | 7 | return [ |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use Xoco70\KendoTournaments\Models\Tournament; |
5 | 5 | use Xoco70\KendoTournaments\Models\Venue; |
6 | 6 | |
7 | -$factory->define(Tournament::class, function (Faker\Generator $faker) { |
|
7 | +$factory->define(Tournament::class, function(Faker\Generator $faker) { |
|
8 | 8 | $users = User::all()->pluck('id')->toArray(); |
9 | 9 | if (count($users) == 0) { |
10 | 10 | $user = factory(\Illuminate\Foundation\Auth\User::class)->create(); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Xoco70\KendoTournaments\Models\Venue; |
4 | 4 | |
5 | -$factory->define(Venue::class, function (Faker\Generator $faker) { |
|
5 | +$factory->define(Venue::class, function(Faker\Generator $faker) { |
|
6 | 6 | return [ |
7 | 7 | 'venue_name' => $faker->colorName, |
8 | 8 | 'address' => $faker->streetName, |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Xoco70\KendoTournaments\Models\Round; |
5 | 5 | |
6 | -$factory->define(Round::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(Round::class, function(Faker\Generator $faker) { |
|
7 | 7 | return [ |
8 | 8 | // 'name' => $faker->name, |
9 | 9 | // 'federation_id' => $faker->randomElement($federations), |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Xoco70\KendoTournaments\Models\Category; |
5 | 5 | |
6 | -$factory->define(Category::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(Category::class, function(Faker\Generator $faker) { |
|
7 | 7 | $name = ['categories.junior', |
8 | 8 | 'categories.junior_team', |
9 | 9 | 'categories.men_single', |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('championship_settings', function (Blueprint $table) { |
|
15 | + Schema::create('championship_settings', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('championship_id')->unsigned()->unique(); |
18 | 18 | $table->foreign('championship_id') |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fight', function (Blueprint $table) { |
|
16 | + Schema::create('fight', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('round_id')->unsigned()->index(); |
19 | 19 | $table->foreign('round_id') |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('tournament', function (Blueprint $table) { |
|
11 | + Schema::create('tournament', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->Integer('user_id')->unsigned()->index(); |
14 | 14 | $table->foreign('user_id') |