Fix Laravel Pint issues
This commit is contained in:
parent
e456f688a3
commit
ff6d8ae3eb
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue