These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * NOTICE OF LICENSE |
||
5 | * |
||
6 | * Part of the Rinvex Fort Package. |
||
7 | * |
||
8 | * This source file is subject to The MIT License (MIT) |
||
9 | * that is bundled with this package in the LICENSE file. |
||
10 | * |
||
11 | * Package: Rinvex Fort Package |
||
12 | * License: The MIT License (MIT) |
||
13 | * Link: https://rinvex.com |
||
14 | */ |
||
15 | |||
16 | namespace Rinvex\Fort\Http\Requests\Frontend; |
||
17 | |||
18 | use Rinvex\Support\Http\Requests\FormRequest; |
||
19 | |||
20 | class TwoFactorPhoneUpdateRequest extends FormRequest |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function forbiddenResponse() |
||
0 ignored issues
–
show
|
|||
26 | { |
||
27 | return intend([ |
||
28 | 'route' => 'rinvex.fort.frontend.user.settings', |
||
29 | 'withErrors' => ['token' => trans('rinvex/fort::frontend/messages.verification.twofactor.phone.globaly_disabled')], |
||
0 ignored issues
–
show
|
|||
30 | ]); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Determine if the user is authorized to make this request. |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function authorize() |
||
39 | { |
||
40 | return in_array('phone', config('rinvex.fort.twofactor.providers')); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Get the validation rules that apply to the request. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function rules() |
||
49 | { |
||
50 | return []; |
||
51 | } |
||
52 | } |
||
53 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.