Completed
Push — master ( 91df31...876b8b )
by Sherif
01:12
created
files/Handler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,25 +70,25 @@
 block discarded – undo
70 70
     protected function getErrorHandlers()
71 71
     {
72 72
         return [
73
-            \Illuminate\Auth\AuthenticationException::class => function ($request, $exception) {
73
+            \Illuminate\Auth\AuthenticationException::class => function($request, $exception) {
74 74
                 Errors::unAuthorized();
75 75
             },
76
-            \Illuminate\Database\QueryException::class => function ($request, $exception) {
76
+            \Illuminate\Database\QueryException::class => function($request, $exception) {
77 77
                 Errors::dbQueryError();
78 78
             },
79
-            \predis\connection\connectionexception::class => function ($request, $exception) {
79
+            \predis\connection\connectionexception::class => function($request, $exception) {
80 80
                 Errors::redisNotRunning();
81 81
             },
82
-            \RedisException::class => function ($request, $exception) {
82
+            \RedisException::class => function($request, $exception) {
83 83
                 Errors::redisNotRunning();
84 84
             },
85
-            \GuzzleHttp\Exception\ClientException::class => function ($request, $exception) {
85
+            \GuzzleHttp\Exception\ClientException::class => function($request, $exception) {
86 86
                 Errors::connectionError();
87 87
             },
88
-            \Symfony\Component\HttpKernel\Exception\HttpException::class => function ($request, $exception) {
88
+            \Symfony\Component\HttpKernel\Exception\HttpException::class => function($request, $exception) {
89 89
                 return response()->json(['errors' => [$exception->getStatusCode() === 404 ? ($exception->getMessage() ?: 'not found') : $exception->getMessage()]], $exception->getStatusCode());
90 90
             },
91
-            \Illuminate\Validation\ValidationException::class => function ($request, $exception) {
91
+            \Illuminate\Validation\ValidationException::class => function($request, $exception) {
92 92
                 return response()->json(['errors' => $exception->errors()], 422);
93 93
             }
94 94
         ];
Please login to merge, or discard this patch.