Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Callbacks |
||
8 | { |
||
9 | /** |
||
10 | * Return a HTTP 401 Unauthorized response. |
||
11 | * |
||
12 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
||
13 | */ |
||
14 | 32 | public static function unauthorized() |
|
15 | { |
||
16 | 32 | throw new HttpException(401); |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * Return a HTTP 404 Not Found response. |
||
21 | * |
||
22 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
||
23 | */ |
||
24 | public static function notFound() |
||
27 | 32 | } |
|
28 | |||
29 | /** |
||
30 | * Redirect to given route. |
||
31 | * |
||
32 | * @param string $route |
||
33 | * @return \Illuminate\Http\RedirectResponse |
||
34 | */ |
||
35 | public static function redirectTo(string $route) |
||
40 |