| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function update(AccountAttributesRequest $request) |
||
| 33 | { |
||
| 34 | $data = $request->validated(); |
||
| 35 | $currentUser = $request->user($this->getGuard()); |
||
| 36 | |||
| 37 | // Update profile |
||
| 38 | $currentUser->fill($data)->save(); |
||
| 39 | |||
| 40 | return intend([ |
||
| 41 | 'back' => true, |
||
| 42 | 'with' => ['success' => trans('cortex/auth::messages.account.updated_attributes')], |
||
| 43 | ]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.