@@ -171,8 +171,7 @@ |
||
171 | 171 | try |
172 | 172 | { |
173 | 173 | $data = (array) \Firebase\JWT\JWT::decode($token, env('JWT_SECRET'), ['HS256']); |
174 | - } |
|
175 | - catch(\RuntimeException $e) { |
|
174 | + } catch(\RuntimeException $e) { |
|
176 | 175 | $this->logout(); |
177 | 176 | |
178 | 177 | return null; |
@@ -262,8 +262,7 @@ discard block |
||
262 | 262 | |
263 | 263 | try { |
264 | 264 | $response = $this->client->request('me'); |
265 | - } |
|
266 | - catch(\Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException $e) { |
|
265 | + } catch(\Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException $e) { |
|
267 | 266 | return null; |
268 | 267 | } |
269 | 268 | |
@@ -345,8 +344,7 @@ discard block |
||
345 | 344 | |
346 | 345 | try { |
347 | 346 | $output = $callback(); |
348 | - } |
|
349 | - catch(\Exception $e) { |
|
347 | + } catch(\Exception $e) { |
|
350 | 348 | DB::rollBack(); |
351 | 349 | |
352 | 350 | if(is_null($fallback)) { |
@@ -196,8 +196,7 @@ |
||
196 | 196 | $foreigner, |
197 | 197 | $action = $foreigner->getRemoteAction() |
198 | 198 | ); |
199 | - } |
|
200 | - catch(\Slides\Connector\Auth\Exceptions\SyncException $e) { |
|
199 | + } catch(\Slides\Connector\Auth\Exceptions\SyncException $e) { |
|
201 | 200 | \Illuminate\Support\Facades\Log::error( |
202 | 201 | "Cannot $action the user {$foreigner->getEmail()}: " . $e->getMessage() |
203 | 202 | ); |
@@ -34,8 +34,7 @@ |
||
34 | 34 | |
35 | 35 | try { |
36 | 36 | $webhook->handle(); |
37 | - } |
|
38 | - catch(\Exception $e) { |
|
37 | + } catch(\Exception $e) { |
|
39 | 38 | throw new WebhookException(get_class($webhook) . ': ' . $e->getMessage()); |
40 | 39 | } |
41 | 40 | } |