@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -$factory->define(GitScrum\User::class, function (Faker\Generator $faker) { |
|
| 14 | +$factory->define(GitScrum\User::class, function(Faker\Generator $faker) { |
|
| 15 | 15 | static $password; |
| 16 | 16 | |
| 17 | 17 | return [ |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('favorites', function (Blueprint $table) { |
|
| 13 | + Schema::create('favorites', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('favoriteable_type', 45)->nullable(); |
| 16 | 16 | $table->integer('favoriteable_id')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('pull_requests', function (Blueprint $table) { |
|
| 13 | + Schema::table('pull_requests', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('base_branch_id', 'fk_pull_requests_base_branch_id')->references('id')->on('branches')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('head_branch_id', 'fk_pull_requests_head_branch_id')->references('id')->on('branches')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 16 | 16 | }); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function down() |
| 23 | 23 | { |
| 24 | - Schema::table('pull_requests', function (Blueprint $table) { |
|
| 24 | + Schema::table('pull_requests', function(Blueprint $table) { |
|
| 25 | 25 | $table->dropForeign('fk_pull_requests_base_branch_id'); |
| 26 | 26 | $table->dropForeign('fk_pull_requests_head_branch_id'); |
| 27 | 27 | }); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('favorites', function (Blueprint $table) { |
|
| 13 | + Schema::table('favorites', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_favorites_user_id')->references('id')->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | }); |
| 16 | 16 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function down() |
| 22 | 22 | { |
| 23 | - Schema::table('favorites', function (Blueprint $table) { |
|
| 23 | + Schema::table('favorites', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_favorites_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('users', function (Blueprint $table) { |
|
| 13 | + Schema::create('users', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->bigInteger('github_id')->nullable()->unique('github_id_UNIQUE'); |
| 16 | 16 | $table->string('username')->nullable()->index('users_username'); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('labelables', function (Blueprint $table) { |
|
| 13 | + Schema::create('labelables', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_labelables_user_id_idx'); |
| 16 | 16 | $table->integer('label_id')->unsigned()->nullable()->index('fk_labelables_label_id_idx'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('sprints', function (Blueprint $table) { |
|
| 13 | + Schema::table('sprints', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('config_status_id', 'fk_sprints_config_status_id')->references('id')->on('config_statuses')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('product_backlog_id', 'fk_sprints_product_backlog_id')->references('id')->on('product_backlogs')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 16 | 16 | $table->foreign('user_id', 'fk_sprints_user_id')->references('id')->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | - Schema::table('sprints', function (Blueprint $table) { |
|
| 25 | + Schema::table('sprints', function(Blueprint $table) { |
|
| 26 | 26 | $table->dropForeign('fk_sprints_config_status_id'); |
| 27 | 27 | $table->dropForeign('fk_sprints_product_backlog_id'); |
| 28 | 28 | $table->dropForeign('fk_sprints_user_id'); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('comments', function (Blueprint $table) { |
|
| 13 | + Schema::create('comments', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('commentable_type', 45)->nullable()->index('commentable_fulltext'); |
| 16 | 16 | $table->integer('commentable_id')->unsigned()->nullable(); |