From ff6d8ae3eb019c9ee877bdbd19269b5b00120160 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 24 Sep 2022 18:33:36 +0100 Subject: [PATCH] Fix Laravel Pint issues --- app/Http/Controllers/TokenEndpointController.php | 4 ++-- tests/Feature/TokenEndpointTest.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/TokenEndpointController.php b/app/Http/Controllers/TokenEndpointController.php index 39c32d79..c23590a5 100644 --- a/app/Http/Controllers/TokenEndpointController.php +++ b/app/Http/Controllers/TokenEndpointController.php @@ -63,7 +63,7 @@ class TokenEndpointController extends Controller if (empty($authorizationEndpoint)) { return response()->json([ - 'error' => sprintf('Could not discover the authorization endpoint for %s', $request->input('me')) + 'error' => sprintf('Could not discover the authorization endpoint for %s', $request->input('me')), ], 400); } @@ -75,7 +75,7 @@ class TokenEndpointController extends Controller $request->input('client_id'), ); - if ($auth === null || !array_key_exists('me', $auth)) { + if ($auth === null || ! array_key_exists('me', $auth)) { return response()->json([ 'error' => 'There was an error verifying the IndieAuth code', ], 401); diff --git a/tests/Feature/TokenEndpointTest.php b/tests/Feature/TokenEndpointTest.php index 80264234..6a973473 100644 --- a/tests/Feature/TokenEndpointTest.php +++ b/tests/Feature/TokenEndpointTest.php @@ -17,6 +17,7 @@ class TokenEndpointTest extends TestCase { /** * @test + * * @throws JsonException * @throws Exception */ @@ -52,6 +53,7 @@ class TokenEndpointTest extends TestCase /** * @test + * * @throws JsonException * @throws Exception */ @@ -86,6 +88,7 @@ class TokenEndpointTest extends TestCase /** * @test + * * @throws Exception */ public function tokenEndpointReturnsErrorWhenNoAuthEndpointFound(): void