1 | <?php |
||
23 | class UserSettingsController extends AuthenticatedController |
||
24 | { |
||
25 | /** |
||
26 | * The user repository instance. |
||
27 | * |
||
28 | * @var \Rinvex\Fort\Contracts\UserRepositoryContract |
||
29 | */ |
||
30 | protected $userRepository; |
||
31 | |||
32 | /** |
||
33 | * Create a new profile update controller instance. |
||
34 | * |
||
35 | * @param \Rinvex\Fort\Contracts\UserRepositoryContract $userRepository |
||
36 | */ |
||
37 | public function __construct(UserRepositoryContract $userRepository) |
||
43 | |||
44 | /** |
||
45 | * Show the account update form. |
||
46 | * |
||
47 | * @return \Illuminate\Http\Response |
||
|
|||
48 | */ |
||
49 | public function edit(Request $request) |
||
58 | |||
59 | /** |
||
60 | * Process the account update form. |
||
61 | * |
||
62 | * @param \Rinvex\Fort\Http\Requests\Frontend\UserSettingsUpdateRequest $request |
||
63 | * |
||
64 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
65 | */ |
||
66 | public function update(UserSettingsUpdateRequest $request) |
||
97 | } |
||
98 |
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.