Skip to content

Commit

Permalink
import namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Apr 7, 2021
1 parent 85fe5cc commit a6f9fcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Context/LaravelRequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Facade\FlareClient\Context\RequestContext;
use Illuminate\Http\Request;
use Throwable;

class LaravelRequestContext extends RequestContext
{
Expand All @@ -23,7 +24,7 @@ public function getUser(): array
if (! $user) {
return [];
}
} catch (\Throwable $e) {
} catch (Throwable $e) {
return [];
}

Expand All @@ -35,7 +36,7 @@ public function getUser(): array
if (method_exists($user, 'toArray')) {
return $user->toArray();
}
} catch (\Throwable $e) {
} catch (Throwable $e) {
return [];
}

Expand Down Expand Up @@ -70,7 +71,7 @@ protected function getRouteParameters(): array
{
try {
return collect(optional($this->request->route())->parameters ?? [])->toArray();
} catch (\Throwable $e) {
} catch (Throwable $e) {
return [];
}
}
Expand Down

0 comments on commit a6f9fcd

Please sign in to comment.