@@ -117,7 +117,7 @@ |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * @param Collection $tree |
| 120 | - * @param $settings |
|
| 120 | + * @param ChampionshipSettings $settings |
|
| 121 | 121 | * @param Championship $championship |
| 122 | 122 | */ |
| 123 | 123 | public static function generateFights(Collection $tree, $settings, Championship $championship = null) |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | |
| 128 | 128 | // Delete previous fight for this championship |
| 129 | 129 | |
| 130 | - $arrayTreeId = $tree->map(function ($value, $key) { |
|
| 130 | + $arrayTreeId = $tree->map(function($value, $key) { |
|
| 131 | 131 | return $value->id; |
| 132 | 132 | })->toArray(); |
| 133 | 133 | Fight::destroy($arrayTreeId); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | use App\User; |
| 5 | 5 | |
| 6 | -$factory->define(User::class, function (Faker\Generator $faker) { |
|
| 6 | +$factory->define(User::class, function(Faker\Generator $faker) { |
|
| 7 | 7 | |
| 8 | 8 | $email = $faker->email; |
| 9 | 9 | return [ |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Xoco70\KendoTournaments\Models\Competitor; |
| 5 | 5 | use App\User; |
| 6 | 6 | |
| 7 | -$factory->define(Competitor::class, function (Faker\Generator $faker) { |
|
| 7 | +$factory->define(Competitor::class, function(Faker\Generator $faker) { |
|
| 8 | 8 | $tcs = Championship::all()->pluck('id')->toArray(); |
| 9 | 9 | $users = User::all()->pluck('id')->toArray(); |
| 10 | 10 | |
@@ -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 | |
| 8 | 8 | return [ |
| 9 | 9 | // 'name' => $faker->name, |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('competitor_round', function (Blueprint $table) { |
|
| 16 | + Schema::create('competitor_round', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('competitor_id')->unsigned()->index(); |
| 19 | 19 | $table->integer('round_id')->unsigned()->index(); // A checar |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('team_round', function (Blueprint $table) { |
|
| 16 | + Schema::create('team_round', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('team_id')->unsigned()->index(); |
| 19 | 19 | $table->integer('round_id')->unsigned()->index(); // A checar |
@@ -28,9 +28,9 @@ |
||
| 28 | 28 | $this->publishes([__DIR__ . '/../database/migrations' => $this->app->databasePath() . '/migrations'], 'migrations'); |
| 29 | 29 | $this->publishes([__DIR__ . '/../database/seeds' => $this->app->databasePath() . '/seeds'], 'seeds'); |
| 30 | 30 | $this->publishes([__DIR__ . '/../database/factories' => $this->app->databasePath() . '/factories'], 'seeds'); |
| 31 | - $this->publishes([__DIR__ . '/../resources/assets' => public_path('vendor/kendo-tournaments'),], 'assets'); |
|
| 31 | + $this->publishes([__DIR__ . '/../resources/assets' => public_path('vendor/kendo-tournaments'), ], 'assets'); |
|
| 32 | 32 | |
| 33 | - $router->group(['prefix' => 'kendo-tournaments', 'middleware' => ['web']], function ($router) { |
|
| 33 | + $router->group(['prefix' => 'kendo-tournaments', 'middleware' => ['web']], function($router) { |
|
| 34 | 34 | $router->get('/', 'Xoco70\KendoTournaments\TreeController@index')->name('tree.index'); |
| 35 | 35 | $router->post('/championships/{championship}/trees', 'Xoco70\KendoTournaments\TreeController@store')->name('tree.index'); |
| 36 | 36 | }); |