Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 0ffaf52

Browse files
author
Andrey Helldar
authored
Merge pull request #38 from andrey-helldar/analysis-Vro0e3
Apply fixes from StyleCI
2 parents 85b0764 + 806aaf9 commit 0ffaf52

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Support/LaravelException.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
namespace Helldar\ApiResponse\Support;
44

5+
use function __;
6+
use function api_response;
7+
use function config;
58
use Illuminate\Auth\AuthenticationException;
69
use Illuminate\Contracts\Support\Responsable;
710
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
811
use Illuminate\Foundation\Http\Exceptions\MaintenanceModeException;
912
use Illuminate\Http\Exceptions\HttpResponseException;
1013
use Illuminate\Routing\Router;
1114
use Illuminate\Support\Arr;
12-
use Illuminate\Validation\ValidationException;
13-
use Symfony\Component\HttpFoundation\JsonResponse;
14-
use Throwable;
1515

16-
use function __;
17-
use function api_response;
18-
use function config;
16+
use Illuminate\Validation\ValidationException;
1917
use function method_exists;
2018
use function redirect;
19+
use Symfony\Component\HttpFoundation\JsonResponse;
20+
use Throwable;
2121

2222
abstract class LaravelException extends ExceptionHandler
2323
{
@@ -28,8 +28,8 @@ abstract class LaravelException extends ExceptionHandler
2828
* @param \Throwable $e
2929
*
3030
* @throws \Throwable
31-
* @return \Symfony\Component\HttpFoundation\Response
3231
*
32+
* @return \Symfony\Component\HttpFoundation\Response
3333
*/
3434
public function render($request, Throwable $e)
3535
{
@@ -72,7 +72,7 @@ protected function unauthenticated($request, AuthenticationException $exception)
7272

7373
/**
7474
* @param \Illuminate\Http\Request $request
75-
* @param Throwable|Symfony\Component\HttpFoundation\JsonResponse $response
75+
* @param Symfony\Component\HttpFoundation\JsonResponse|Throwable $response
7676
*
7777
* @return bool
7878
*/

0 commit comments

Comments
 (0)