@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('related', function (Blueprint $table) { |
|
16 | + Schema::create('related', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('user_id')->nullable(); |
19 | 19 | $table->string('a'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('uploadeables', function (Blueprint $table) { |
|
16 | + Schema::create('uploadeables', function(Blueprint $table) { |
|
17 | 17 | $table->unsignedInteger('upload_id')->nullable(); |
18 | 18 | $table->unsignedInteger('uploadeable_id')->nullable(); |
19 | 19 | $table->string('uploadeable_type')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('relatables', function (Blueprint $table) { |
|
16 | + Schema::create('relatables', function(Blueprint $table) { |
|
17 | 17 | $table->unsignedInteger('related_id'); |
18 | 18 | $table->unsignedInteger('relatable_id'); |
19 | 19 | $table->string('relatable_type')->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->unsignedInteger('upload_id')->nullable(); |
19 | 19 | $table->unsignedInteger('related_id')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('uploads', function (Blueprint $table) { |
|
16 | + Schema::create('uploads', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('user_id')->nullable(); |
19 | 19 | $table->string('location'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('related_user', function (Blueprint $table) { |
|
16 | + Schema::create('related_user', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('user_id'); |
19 | 19 | $table->unsignedInteger('related_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('upload_user', function (Blueprint $table) { |
|
16 | + Schema::create('upload_user', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('upload_id'); |
19 | 19 | $table->unsignedInteger('user_id'); |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | $user->forceDelete(); |
540 | 540 | |
541 | 541 | $user = factory(\RafflesArgentina\ResourceController\Models\User::class)->create(); |
542 | - $this->json('PUT','/test/2', $fillables)->assertStatus(200); |
|
542 | + $this->json('PUT', '/test/2', $fillables)->assertStatus(200); |
|
543 | 543 | $this->assertTrue($user->belongsToManyRelated->count() === 5); |
544 | 544 | } |
545 | 545 | |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | $user->forceDelete(); |
567 | 567 | |
568 | 568 | $user = factory(\RafflesArgentina\ResourceController\Models\User::class)->create(); |
569 | - $this->json('PUT','/test/2', $fillables)->assertStatus(200); |
|
569 | + $this->json('PUT', '/test/2', $fillables)->assertStatus(200); |
|
570 | 570 | $this->assertTrue($user->morphToManyRelated->count() === 5); |
571 | 571 | } |
572 | 572 | |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | $user->forceDelete(); |
613 | 613 | |
614 | 614 | $user = factory(\RafflesArgentina\ResourceController\Models\User::class)->create(); |
615 | - $this->json('PUT','/test/2', $fillables)->assertStatus(200); |
|
615 | + $this->json('PUT', '/test/2', $fillables)->assertStatus(200); |
|
616 | 616 | $this->assertTrue($user->belongsToManyRelated->count() === 5); |
617 | 617 | } |
618 | 618 | |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | $user->forceDelete(); |
659 | 659 | |
660 | 660 | $user = factory(\RafflesArgentina\ResourceController\Models\User::class)->create(); |
661 | - $this->json('PUT','/test/2', $fillables)->assertStatus(200); |
|
661 | + $this->json('PUT', '/test/2', $fillables)->assertStatus(200); |
|
662 | 662 | $this->assertTrue($user->morphToManyRelated->count() === 5); |
663 | 663 | } |
664 | 664 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | \Route::group([ |
21 | 21 | 'middleware' => [], |
22 | 22 | 'namespace' => 'RafflesArgentina\ResourceController', |
23 | - ], function ($router) { |
|
23 | + ], function($router) { |
|
24 | 24 | $router->resource('test', 'TestController'); |
25 | 25 | $router->resource('test2', 'TestUseSoftDeletesController'); |
26 | 26 | }); |