Skip to content

Commit

Permalink
Run php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedy-osaze committed May 14, 2022
1 parent bd919b1 commit 1df3bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Concerns/ConvertsExceptionToApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Validation\UnauthorizedException;
use Illuminate\Validation\ValidationException;
Expand Down
10 changes: 5 additions & 5 deletions tests/ExceptionsHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,23 @@ public function getHttpResponseExceptionProvider()
[
'success' => false,
'message' => 'An error occurred',
'error' => ['content' => 'This is a failed response']
]
'error' => ['content' => 'This is a failed response'],
],
],
[
new HttpResponseException(new JsonResponse(['message' => 'Failed response'], 400)),
[
'success' => false,
'message' => 'Failed response',
]
],
],
[
new HttpResponseException(new JsonResponse(['error' => ['code' => '012']], 400)),
[
'success' => false,
'message' => JsonResponse::$statusTexts[400],
'error' => ['code' => '012']
]
'error' => ['code' => '012'],
],
],
];
}
Expand Down

0 comments on commit 1df3bc3

Please sign in to comment.