1 | <?php |
||
13 | class UsersController extends AuthorizedController |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | protected $resource = 'users'; |
||
19 | |||
20 | /** |
||
21 | * Display a listing of the resource. |
||
22 | * |
||
23 | * @return \Illuminate\Http\Response |
||
|
|||
24 | */ |
||
25 | public function index() |
||
31 | |||
32 | /** |
||
33 | * Store a newly created resource in storage. |
||
34 | * |
||
35 | * @param \Illuminate\Http\Request $request |
||
36 | * |
||
37 | * @return \Illuminate\Http\Response |
||
38 | */ |
||
39 | public function store(Request $request) |
||
43 | |||
44 | /** |
||
45 | * Update the given resource in storage. |
||
46 | * |
||
47 | * @param \Illuminate\Http\Request $request |
||
48 | * @param \Rinvex\Fort\Models\User $user |
||
49 | * |
||
50 | * @return \Illuminate\Http\Response |
||
51 | */ |
||
52 | public function update(Request $request, User $user) |
||
56 | |||
57 | /** |
||
58 | * Delete the given resource from storage. |
||
59 | * |
||
60 | * @param \Rinvex\Fort\Models\User $user |
||
61 | * |
||
62 | * @return \Illuminate\Http\Response |
||
63 | */ |
||
64 | public function delete(User $user) |
||
73 | |||
74 | /** |
||
75 | * Show the form for create/update of the given resource. |
||
76 | * |
||
77 | * @param \Rinvex\Fort\Models\User $user |
||
78 | * |
||
79 | * @return \Illuminate\Http\Response |
||
80 | */ |
||
81 | public function form(User $user) |
||
99 | |||
100 | /** |
||
101 | * Process the form for store/update of the given resource. |
||
102 | * |
||
103 | * @param \Illuminate\Http\Request $request |
||
104 | * @param \Rinvex\Fort\Models\User $user |
||
105 | * |
||
106 | * @return \Illuminate\Http\Response |
||
107 | */ |
||
108 | protected function process(Request $request, User $user) |
||
138 | } |
||
139 |
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.