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)) {
|
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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue