1 | <?php |
||
25 | class UsersController extends AuthorizedController |
||
26 | { |
||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | protected $resource = 'users'; |
||
31 | |||
32 | /** |
||
33 | * The user repository instance. |
||
34 | * |
||
35 | * @var \Rinvex\Fort\Contracts\UserRepositoryContract |
||
36 | */ |
||
37 | protected $userRepository; |
||
38 | |||
39 | /** |
||
40 | * Create a new users controller instance. |
||
41 | */ |
||
42 | public function __construct(UserRepositoryContract $userRepository) |
||
48 | |||
49 | /** |
||
50 | * Display a listing of the resource. |
||
51 | * |
||
52 | * @return \Illuminate\Http\Response |
||
|
|||
53 | */ |
||
54 | public function index() |
||
60 | |||
61 | /** |
||
62 | * Display the specified resource. |
||
63 | * |
||
64 | * @param \Rinvex\Fort\Models\User $user |
||
65 | * |
||
66 | * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
67 | */ |
||
68 | public function show(User $user) |
||
79 | |||
80 | /** |
||
81 | * Show the form for creating a new resource. |
||
82 | * |
||
83 | * @return \Illuminate\Http\Response |
||
84 | */ |
||
85 | public function create() |
||
89 | |||
90 | /** |
||
91 | * Show the form for copying the given resource. |
||
92 | * |
||
93 | * @param \Rinvex\Fort\Models\User $user |
||
94 | * |
||
95 | * @return \Illuminate\Http\Response |
||
96 | */ |
||
97 | public function copy(User $user) |
||
101 | |||
102 | /** |
||
103 | * Show the form for editing the given resource. |
||
104 | * |
||
105 | * @param \Rinvex\Fort\Models\User $user |
||
106 | * |
||
107 | * @return \Illuminate\Http\Response |
||
108 | */ |
||
109 | public function edit(User $user) |
||
113 | |||
114 | /** |
||
115 | * Store a newly created resource in storage. |
||
116 | * |
||
117 | * @param \Rinvex\Fort\Http\Requests\Backend\UserStoreRequest $request |
||
118 | * |
||
119 | * @return \Illuminate\Http\Response |
||
120 | */ |
||
121 | public function store(UserStoreRequest $request) |
||
125 | |||
126 | /** |
||
127 | * Update the given resource in storage. |
||
128 | * |
||
129 | * @param \Rinvex\Fort\Http\Requests\Backend\UserUpdateRequest $request |
||
130 | * @param \Rinvex\Fort\Models\User $user |
||
131 | * |
||
132 | * @return \Illuminate\Http\Response |
||
133 | */ |
||
134 | public function update(UserUpdateRequest $request, User $user) |
||
138 | |||
139 | /** |
||
140 | * Delete the given resource from storage. |
||
141 | * |
||
142 | * @param \Rinvex\Fort\Models\User $user |
||
143 | * |
||
144 | * @return \Illuminate\Http\Response |
||
145 | */ |
||
146 | public function delete(User $user) |
||
155 | |||
156 | /** |
||
157 | * Import the given resources into storage. |
||
158 | * |
||
159 | * @return \Illuminate\Http\Response |
||
160 | */ |
||
161 | public function import() |
||
165 | |||
166 | /** |
||
167 | * Export the given resources from storage. |
||
168 | * |
||
169 | * @return \Illuminate\Http\Response |
||
170 | */ |
||
171 | public function export() |
||
175 | |||
176 | /** |
||
177 | * Bulk control the given resources. |
||
178 | * |
||
179 | * @return \Illuminate\Http\Response |
||
180 | */ |
||
181 | public function bulk() |
||
185 | |||
186 | /** |
||
187 | * Show the form for create/edit/copy of the given resource. |
||
188 | * |
||
189 | * @param string $mode |
||
190 | * @param string $action |
||
191 | * @param \Rinvex\Fort\Models\User $user |
||
192 | * |
||
193 | * @return \Illuminate\Http\Response |
||
194 | */ |
||
195 | protected function form($mode, $action, User $user) |
||
209 | |||
210 | /** |
||
211 | * Process the form for store/update of the given resource. |
||
212 | * |
||
213 | * @param \Illuminate\Http\Request $request |
||
214 | * @param \Rinvex\Fort\Models\User $user |
||
215 | * |
||
216 | * @return \Illuminate\Http\Response |
||
217 | */ |
||
218 | protected function process(Request $request, User $user = null) |
||
241 | } |
||
242 |
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.