Conditions | 3 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function update(AccountSettingsRequest $request) |
||
37 | { |
||
38 | $input = $request->all(); |
||
39 | $currentUser = $request->user($this->getGuard()); |
||
40 | |||
41 | // Update profile |
||
42 | $currentUser->fill($input)->save(); |
||
43 | |||
44 | return intend([ |
||
45 | 'back' => true, |
||
46 | 'with' => ['success' => trans('cortex/fort::messages.account.'.(isset($input['email_verified']) ? 'reverify' : 'updated'))] |
||
47 | + (isset($input['two_factor']) ? ['warning' => trans('cortex/fort::messages.verification.twofactor.phone.auto_disabled')] : []), |
||
48 | ]); |
||
49 | } |
||
50 | } |
||
51 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.