@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('snippets', function (Blueprint $table) { |
|
| 16 | + Schema::create('snippets', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->unsignedInteger('user_id'); |
| 19 | 19 | $table->unsignedInteger('forked_id')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('username')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('snippets_votes', function (Blueprint $table) { |
|
| 16 | + Schema::create('snippets_votes', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->unsignedInteger('user_id'); |
| 19 | 19 | $table->unsignedInteger('snippet_id'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
| 15 | -$factory->define(App\User::class, function (Faker\Generator $faker) { |
|
| 15 | +$factory->define(App\User::class, function(Faker\Generator $faker) { |
|
| 16 | 16 | static $password; |
| 17 | 17 | |
| 18 | 18 | return [ |
@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | ]; |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | -$factory->define(App\Snippet::class, function (Faker\Generator $faker) { |
|
| 27 | +$factory->define(App\Snippet::class, function(Faker\Generator $faker) { |
|
| 28 | 28 | return [ |
| 29 | - 'user_id' => function () { |
|
| 29 | + 'user_id' => function() { |
|
| 30 | 30 | return factory(App\User::class)->create()->id; |
| 31 | 31 | }, |
| 32 | - 'forked_id' => $faker->boolean ? function () { |
|
| 32 | + 'forked_id' => $faker->boolean ? function() { |
|
| 33 | 33 | return factory(App\Snippet::class)->create()->id; |
| 34 | 34 | } |
| 35 | 35 | : null, |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | | |
| 110 | 110 | */ |
| 111 | 111 | |
| 112 | - 'lottery' => [2, 100], |
|
| 112 | + 'lottery' => [ 2, 100 ], |
|
| 113 | 113 | |
| 114 | 114 | /* |
| 115 | 115 | |-------------------------------------------------------------------------- |