From bac820f1f9f46ae60e3134900f10bf8a64a5e6e9 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 31 Dec 2019 00:06:15 +0000 Subject: [PATCH] Code style fixes --- ...eEloquentHasManyThroughIntegrationTest.php | 25 +++++++++++-------- .../Foundation/FoundationTestResponseTest.php | 21 +++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php b/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php index 6a25953d658f..5799bd7bdba3 100644 --- a/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php +++ b/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php @@ -194,7 +194,8 @@ public function testChunkReturnsCorrectModels() 'email', 'created_at', 'updated_at', - 'laravel_through_key', ], array_keys($post->getAttributes())); + 'laravel_through_key', + ], array_keys($post->getAttributes())); }); } @@ -233,7 +234,8 @@ public function testCursorReturnsCorrectModels() 'email', 'created_at', 'updated_at', - 'laravel_through_key', ], array_keys($post->getAttributes())); + 'laravel_through_key', + ], array_keys($post->getAttributes())); } } @@ -252,7 +254,8 @@ public function testEachReturnsCorrectModels() 'email', 'created_at', 'updated_at', - 'laravel_through_key', ], array_keys($post->getAttributes())); + 'laravel_through_key', + ], array_keys($post->getAttributes())); }); } @@ -285,9 +288,9 @@ protected function seedData() HasManyThroughTestCountry::create(['id' => 1, 'name' => 'United States of America', 'shortname' => 'us']) ->users()->create(['id' => 1, 'email' => 'taylorotwell@gmail.com', 'country_short' => 'us']) ->posts()->createMany([ - ['title' => 'A title', 'body' => 'A body', 'email' => 'taylorotwell@gmail.com'], - ['title' => 'Another title', 'body' => 'Another body', 'email' => 'taylorotwell@gmail.com'], - ]); + ['title' => 'A title', 'body' => 'A body', 'email' => 'taylorotwell@gmail.com'], + ['title' => 'Another title', 'body' => 'Another body', 'email' => 'taylorotwell@gmail.com'], + ]); } protected function seedDataExtended() @@ -316,11 +319,11 @@ protected function seedDataExtended() protected function seedDefaultData() { HasManyThroughDefaultTestCountry::create(['id' => 1, 'name' => 'United States of America']) - ->users()->create(['id' => 1, 'email' => 'taylorotwell@gmail.com']) - ->posts()->createMany([ - ['title' => 'A title', 'body' => 'A body'], - ['title' => 'Another title', 'body' => 'Another body'], - ]); + ->users()->create(['id' => 1, 'email' => 'taylorotwell@gmail.com']) + ->posts()->createMany([ + ['title' => 'A title', 'body' => 'A body'], + ['title' => 'Another title', 'body' => 'Another body'], + ]); } /** diff --git a/tests/Foundation/FoundationTestResponseTest.php b/tests/Foundation/FoundationTestResponseTest.php index d19ad0e76237..23d6ebdc1e60 100644 --- a/tests/Foundation/FoundationTestResponseTest.php +++ b/tests/Foundation/FoundationTestResponseTest.php @@ -573,10 +573,9 @@ public function testAssertJsonMissingValidationErrors() { $baseResponse = tap(new Response, function ($response) { $response->setContent(json_encode(['errors' => [ - 'foo' => [], - 'bar' => ['one', 'two'], - ]] - )); + 'foo' => [], + 'bar' => ['one', 'two'], + ]])); }); $response = TestResponse::fromBaseResponse($baseResponse); @@ -597,10 +596,9 @@ public function testAssertJsonMissingValidationErrorsCanFail() $baseResponse = tap(new Response, function ($response) { $response->setContent(json_encode(['errors' => [ - 'foo' => [], - 'bar' => ['one', 'two'], - ]] - )); + 'foo' => [], + 'bar' => ['one', 'two'], + ]])); }); $response = TestResponse::fromBaseResponse($baseResponse); @@ -614,10 +612,9 @@ public function testAssertJsonMissingValidationErrorsCanFail2() $baseResponse = tap(new Response, function ($response) { $response->setContent(json_encode(['errors' => [ - 'foo' => [], - 'bar' => ['one', 'two'], - ]] - )); + 'foo' => [], + 'bar' => ['one', 'two'], + ]])); }); $response = TestResponse::fromBaseResponse($baseResponse);