2
2
3
3
namespace Helldar \ApiResponse \Support ;
4
4
5
+ use function __ ;
6
+ use function api_response ;
7
+ use function config ;
5
8
use Illuminate \Auth \AuthenticationException ;
6
9
use Illuminate \Contracts \Support \Responsable ;
7
10
use Illuminate \Foundation \Exceptions \Handler as ExceptionHandler ;
8
11
use Illuminate \Foundation \Http \Exceptions \MaintenanceModeException ;
9
12
use Illuminate \Http \Exceptions \HttpResponseException ;
10
13
use Illuminate \Routing \Router ;
11
14
use Illuminate \Support \Arr ;
12
- use Illuminate \Validation \ValidationException ;
13
- use Symfony \Component \HttpFoundation \JsonResponse ;
14
- use Throwable ;
15
15
16
- use function __ ;
17
- use function api_response ;
18
- use function config ;
16
+ use Illuminate \Validation \ValidationException ;
19
17
use function method_exists ;
20
18
use function redirect ;
19
+ use Symfony \Component \HttpFoundation \JsonResponse ;
20
+ use Throwable ;
21
21
22
22
abstract class LaravelException extends ExceptionHandler
23
23
{
@@ -28,8 +28,8 @@ abstract class LaravelException extends ExceptionHandler
28
28
* @param \Throwable $e
29
29
*
30
30
* @throws \Throwable
31
- * @return \Symfony\Component\HttpFoundation\Response
32
31
*
32
+ * @return \Symfony\Component\HttpFoundation\Response
33
33
*/
34
34
public function render ($ request , Throwable $ e )
35
35
{
@@ -72,7 +72,7 @@ protected function unauthenticated($request, AuthenticationException $exception)
72
72
73
73
/**
74
74
* @param \Illuminate\Http\Request $request
75
- * @param Throwable| Symfony\Component\HttpFoundation\JsonResponse $response
75
+ * @param Symfony\Component\HttpFoundation\JsonResponse|Throwable $response
76
76
*
77
77
* @return bool
78
78
*/
0 commit comments