1 | <?php |
||
14 | class ConversationController extends Controller |
||
15 | { |
||
16 | /** |
||
17 | * Show the conversation by its id. |
||
18 | * |
||
19 | * @return \Illuminate\Http\Response |
||
|
|||
20 | */ |
||
21 | public function show(Request $request, string $slug, int $id) |
||
44 | |||
45 | /** |
||
46 | * Show the create form. |
||
47 | * |
||
48 | * @return \Illuminate\View\View |
||
49 | */ |
||
50 | public function showCreateForm(): View |
||
58 | |||
59 | /** |
||
60 | * Handle a conversation create request for the application. |
||
61 | * |
||
62 | * @param \Illuminate\Http\Request $request |
||
63 | * |
||
64 | * @return \Illuminate\Http\RedirectResponse |
||
65 | */ |
||
66 | public function create(Request $request) |
||
88 | |||
89 | /** |
||
90 | * Handle a conversation update request for the application. |
||
91 | * |
||
92 | * @param \Illuminate\Http\Request $request |
||
93 | * @param string $slug The slug of the conversation to update. |
||
94 | * @param int $id The id of the conversation to update. |
||
95 | * |
||
96 | * @return \Illuminate\Http\RedirectResponse |
||
97 | */ |
||
98 | public function update(Request $request, string $slug, int $id) |
||
111 | |||
112 | /** |
||
113 | * Handle the delete request for a conversation. |
||
114 | * |
||
115 | * @param string $slug The slug of the conversation to delete. |
||
116 | * @param int $id The id of the conversation to delete. |
||
117 | * |
||
118 | * @return \Illuminate\Http\RedirectResponse |
||
119 | */ |
||
120 | public function delete(string $slug, int $id) : RedirectResponse |
||
135 | |||
136 | /** |
||
137 | * Get the current page for the conversation. |
||
138 | * |
||
139 | * @param \Illuminate\Http\Request $request |
||
140 | * |
||
141 | * @return int |
||
142 | */ |
||
143 | protected function getCurrentPage(Request $request): int |
||
147 | } |
||
148 |
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.