Skip to content

Commit 1df3bc3

Browse files
committed
Run php-cs-fixer
1 parent bd919b1 commit 1df3bc3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Concerns/ConvertsExceptionToApiResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Illuminate\Http\JsonResponse;
99
use Illuminate\Http\Request;
1010
use Illuminate\Http\Response;
11-
use Illuminate\Support\Arr;
1211
use Illuminate\Support\Str;
1312
use Illuminate\Validation\UnauthorizedException;
1413
use Illuminate\Validation\ValidationException;

tests/ExceptionsHandlerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,23 @@ public function getHttpResponseExceptionProvider()
139139
[
140140
'success' => false,
141141
'message' => 'An error occurred',
142-
'error' => ['content' => 'This is a failed response']
143-
]
142+
'error' => ['content' => 'This is a failed response'],
143+
],
144144
],
145145
[
146146
new HttpResponseException(new JsonResponse(['message' => 'Failed response'], 400)),
147147
[
148148
'success' => false,
149149
'message' => 'Failed response',
150-
]
150+
],
151151
],
152152
[
153153
new HttpResponseException(new JsonResponse(['error' => ['code' => '012']], 400)),
154154
[
155155
'success' => false,
156156
'message' => JsonResponse::$statusTexts[400],
157-
'error' => ['code' => '012']
158-
]
157+
'error' => ['code' => '012'],
158+
],
159159
],
160160
];
161161
}

0 commit comments

Comments
 (0)