@@ -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') |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('round', function (Blueprint $table) { |
|
16 | + Schema::create('round', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('championship_id')->unsigned()->index(); |
19 | 19 | $table->tinyInteger('area'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('category', function (Blueprint $table) { |
|
15 | + Schema::create('category', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string('alias')->default(''); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $table->engine = 'InnoDB'; |
36 | 36 | }); |
37 | 37 | |
38 | - Schema::create('championship', function (Blueprint $table) { |
|
38 | + Schema::create('championship', function(Blueprint $table) { |
|
39 | 39 | $table->increments('id'); |
40 | 40 | $table->integer('tournament_id')->unsigned()->index(); |
41 | 41 | $table->integer('category_id')->unsigned()->index(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $table->engine = 'InnoDB'; |
58 | 58 | }); |
59 | 59 | |
60 | - Schema::create('competitor', function (Blueprint $table) { |
|
60 | + Schema::create('competitor', function(Blueprint $table) { |
|
61 | 61 | $table->increments('id'); |
62 | 62 | $table->integer('championship_id')->unsigned()->index(); |
63 | 63 | $table->foreign('championship_id') |