Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function handle($request, Closure $next) |
||
44 | { |
||
45 | if ($this->auth->guard()->check() && Container::getInstance()->bound('sentry')) { |
||
46 | configureScope( |
||
47 | function (Scope $scope): void { |
||
48 | $scope->setUser($this->resolveUserContext($this->auth->getDefaultDriver(), $this->auth->guard()->user())); |
||
|
|||
49 | } |
||
50 | ); |
||
51 | } |
||
52 | |||
53 | return $next($request); |
||
54 | } |
||
64 |