Fix Laravel Pint issues

This commit is contained in:
Jonny Barnes 2022-09-24 18:33:36 +01:00
parent e456f688a3
commit ff6d8ae3eb
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
2 changed files with 5 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class TokenEndpointController extends Controller
if (empty($authorizationEndpoint)) { if (empty($authorizationEndpoint)) {
return response()->json([ 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); ], 400);
} }
@ -75,7 +75,7 @@ class TokenEndpointController extends Controller
$request->input('client_id'), $request->input('client_id'),
); );
if ($auth === null || !array_key_exists('me', $auth)) { if ($auth === null || ! array_key_exists('me', $auth)) {
return response()->json([ return response()->json([
'error' => 'There was an error verifying the IndieAuth code', 'error' => 'There was an error verifying the IndieAuth code',
], 401); ], 401);

View file

@ -17,6 +17,7 @@ class TokenEndpointTest extends TestCase
{ {
/** /**
* @test * @test
*
* @throws JsonException * @throws JsonException
* @throws Exception * @throws Exception
*/ */
@ -52,6 +53,7 @@ class TokenEndpointTest extends TestCase
/** /**
* @test * @test
*
* @throws JsonException * @throws JsonException
* @throws Exception * @throws Exception
*/ */
@ -86,6 +88,7 @@ class TokenEndpointTest extends TestCase
/** /**
* @test * @test
*
* @throws Exception * @throws Exception
*/ */
public function tokenEndpointReturnsErrorWhenNoAuthEndpointFound(): void public function tokenEndpointReturnsErrorWhenNoAuthEndpointFound(): void