Passed
Push — master ( 4573fb...494e83 )
by Mario
02:34
created
tests/database/migrations/2018_17_01_000000_create_related_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/database/migrations/2018_17_01_000002_create_uploadeables_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/database/migrations/2018_17_01_000001_create_relatables_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/database/migrations/2014_10_12_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/database/migrations/2018_17_01_000002_create_uploads_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/database/migrations/2018_17_01_000001_create_related_user_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/database/migrations/2018_17_01_000003_create_upload_user_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/WorksWithRelationsTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/BaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.