Total Complexity | 6 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class SentryContext |
||
15 | { |
||
16 | /** |
||
17 | * The authentication factory instance. |
||
18 | * |
||
19 | * @var \Illuminate\Contracts\Auth\Factory |
||
20 | */ |
||
21 | protected $auth; |
||
22 | |||
23 | /** |
||
24 | * Create a new middleware instance. |
||
25 | * |
||
26 | * @param \Illuminate\Contracts\Auth\Factory $auth |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function __construct(Factory $auth) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Handle an incoming request. |
||
37 | * |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Closure $next |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function handle($request, Closure $next) |
||
60 | } |
||
61 | |||
62 | protected function sentryIsBound(): bool |
||
63 | { |
||
64 | return SentryIntegration::bound(); |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param string $guard |
||
69 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | protected function resolveUserContext($guard, Authenticatable $user): array |
||
78 | ]; |
||
79 | } |
||
81 |