From 660f8d3562026d619198b55894659a757711243d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 27 Jul 2020 18:16:33 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/Unit/AuthorizationControllerTest.php | 2 +- tests/Unit/AuthorizedAccessTokenControllerTest.php | 2 +- tests/Unit/PersonalAccessTokenControllerTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/AuthorizationControllerTest.php b/tests/Unit/AuthorizationControllerTest.php index 2ceefadc3..333bb1101 100644 --- a/tests/Unit/AuthorizationControllerTest.php +++ b/tests/Unit/AuthorizationControllerTest.php @@ -55,7 +55,7 @@ public function test_authorization_view_is_presented() $client->shouldReceive('skipsAuthorization')->andReturn(false); - $response->shouldReceive('view')->once()->andReturnUsing(function ($view, $data) use ($authRequest, $client, $user) { + $response->shouldReceive('view')->once()->andReturnUsing(function ($view, $data) use ($client, $user) { $this->assertEquals('passport::authorize', $view); $this->assertEquals($client, $data['client']); $this->assertEquals($user, $data['user']); diff --git a/tests/Unit/AuthorizedAccessTokenControllerTest.php b/tests/Unit/AuthorizedAccessTokenControllerTest.php index 63b4f9ca2..89154c7fa 100644 --- a/tests/Unit/AuthorizedAccessTokenControllerTest.php +++ b/tests/Unit/AuthorizedAccessTokenControllerTest.php @@ -63,7 +63,7 @@ public function test_tokens_can_be_retrieved_for_users() $this->tokenRepository->shouldReceive('forUser')->andReturn($userTokens); - $request->setUserResolver(function () use ($token1, $token2) { + $request->setUserResolver(function () { $user = m::mock(); $user->shouldReceive('getAuthIdentifier')->andReturn(1); diff --git a/tests/Unit/PersonalAccessTokenControllerTest.php b/tests/Unit/PersonalAccessTokenControllerTest.php index 007d87bce..0fdbbe577 100644 --- a/tests/Unit/PersonalAccessTokenControllerTest.php +++ b/tests/Unit/PersonalAccessTokenControllerTest.php @@ -36,7 +36,7 @@ public function test_tokens_can_be_retrieved_for_users() $tokenRepository = m::mock(TokenRepository::class); $tokenRepository->shouldReceive('forUser')->andReturn($userTokens); - $request->setUserResolver(function () use ($token1, $token2) { + $request->setUserResolver(function () { $user = m::mock(); $user->shouldReceive('getAuthIdentifier')->andReturn(1);