@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Add a Group. |
42 | 42 | * |
43 | - * @return \Cake\Network\Response|void |
|
43 | + * @return \Cake\Http\Response|null |
|
44 | 44 | */ |
45 | 45 | public function add() |
46 | 46 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Edit a Group. |
71 | 71 | * |
72 | - * @return \Cake\Network\Response|void |
|
72 | + * @return \Cake\Http\Response|null |
|
73 | 73 | */ |
74 | 74 | public function edit() |
75 | 75 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Delete a group. |
113 | 113 | * |
114 | - * @return \Cake\Network\Response |
|
114 | + * @return \Cake\Http\Response|null |
|
115 | 115 | */ |
116 | 116 | public function delete() |
117 | 117 | { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Edit an user. |
114 | 114 | * |
115 | - * @return \Cake\Network\Response|void |
|
115 | + * @return \Cake\Http\Response|null |
|
116 | 116 | */ |
117 | 117 | public function edit() |
118 | 118 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Delete an user and all his articles, comments and likes. |
159 | 159 | * |
160 | - * @return \Cake\Network\Response |
|
160 | + * @return \Cake\Http\Response|null |
|
161 | 161 | */ |
162 | 162 | public function delete() |
163 | 163 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Delete an avatar. |
193 | 193 | * |
194 | - * @return \Cake\Network\Response |
|
194 | + * @return \Cake\Http\Response|null |
|
195 | 195 | */ |
196 | 196 | public function deleteAvatar() |
197 | 197 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use App\I18n\Language; |
5 | 5 | use Cake\Controller\Controller; |
6 | -use Cake\Core\Configure; |
|
7 | 6 | use Cake\Event\Event; |
8 | 7 | |
9 | 8 | class AppController extends Controller |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * |
29 | 29 | * @throws \Cake\Network\Exception\NotFoundException When it missing an arguments or when the file doesn't exist. |
30 | 30 | * |
31 | - * @return \Cake\Network\Exception\NotFoundException |
|
31 | + * @return \Cake\Http\Response |
|
32 | 32 | * \Cake\Network\Response |
33 | 33 | */ |
34 | 34 | public function download() |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | /** |
73 | 73 | * Display a specific category with all its articles. |
74 | 74 | * |
75 | - * @return \Cake\Network\Response|void |
|
75 | + * @return \Cake\Http\Response|null |
|
76 | 76 | */ |
77 | 77 | public function category() |
78 | 78 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Display a specific article. |
126 | 126 | * |
127 | - * @return \Cake\Network\Response|void |
|
127 | + * @return \Cake\Http\Response|null |
|
128 | 128 | */ |
129 | 129 | public function article() |
130 | 130 | { |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | * |
355 | 355 | * @param int $commentId Id of the comment. |
356 | 356 | * |
357 | - * @return \Cake\Network\Response |
|
357 | + * @return \Cake\Http\Response|null |
|
358 | 358 | */ |
359 | 359 | public function go($commentId = null) |
360 | 360 | { |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | * |
650 | 650 | * @param int $id Id of the comment to delete. |
651 | 651 | * |
652 | - * @return \Cake\Network\Response |
|
652 | + * @return \Cake\Http\Response|null |
|
653 | 653 | */ |
654 | 654 | public function deleteComment($id = null) |
655 | 655 | { |
@@ -772,7 +772,7 @@ discard block |
||
772 | 772 | * |
773 | 773 | * @throws \Cake\Network\Exception\NotFoundException When it's not a POST request. |
774 | 774 | * |
775 | - * @return \Cake\Network\Response |
|
775 | + * @return \Cake\Http\Response|null |
|
776 | 776 | */ |
777 | 777 | public function editComment($id = null) |
778 | 778 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Contact page. |
29 | 29 | * |
30 | - * @return \Cake\Network\Response|void |
|
30 | + * @return \Cake\Http\Response|null |
|
31 | 31 | */ |
32 | 32 | public function index() |
33 | 33 | { |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace App\Controller; |
3 | 3 | |
4 | -use Cake\Core\Configure; |
|
5 | 4 | use Cake\Event\Event; |
6 | 5 | use Cake\Mailer\MailerAwareTrait; |
7 | 6 | use Cake\Validation\Validator; |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | /** |
356 | 356 | * Display a conversation. |
357 | 357 | * |
358 | - * @return void|\Cake\Network\Response |
|
358 | + * @return \Cake\Http\Response|null |
|
359 | 359 | */ |
360 | 360 | public function view() |
361 | 361 | { |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | * |
605 | 605 | * @param int $id Id of the message. |
606 | 606 | * |
607 | - * @return \Cake\Network\Response |
|
607 | + * @return \Cake\Http\Response|null |
|
608 | 608 | */ |
609 | 609 | public function messageEdit($id = null) |
610 | 610 | { |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | * |
666 | 666 | * @param int $messageId Id of the message. |
667 | 667 | * |
668 | - * @return \Cake\Network\Response |
|
668 | + * @return \Cake\Http\Response|null |
|
669 | 669 | */ |
670 | 670 | public function go($messageId = null) |
671 | 671 | { |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | /** |
808 | 808 | * Reply to a conversation. |
809 | 809 | * |
810 | - * @return void|\Cake\Network\Response |
|
810 | + * @return \Cake\Http\Response|null |
|
811 | 811 | */ |
812 | 812 | public function reply() |
813 | 813 | { |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | /** |
912 | 912 | * Edit a conversation. |
913 | 913 | * |
914 | - * @return \Cake\Network\Response |
|
914 | + * @return \Cake\Http\Response|null |
|
915 | 915 | */ |
916 | 916 | public function edit() |
917 | 917 | { |
@@ -967,7 +967,7 @@ discard block |
||
967 | 967 | /** |
968 | 968 | * Function to invite user(s) in a conversation. |
969 | 969 | * |
970 | - * @return void|\Cake\Network\Response |
|
970 | + * @return \Cake\Http\Response|null |
|
971 | 971 | */ |
972 | 972 | public function invite() |
973 | 973 | { |
@@ -1068,7 +1068,7 @@ discard block |
||
1068 | 1068 | /** |
1069 | 1069 | * Function to leave a conversation. |
1070 | 1070 | * |
1071 | - * @return void|\Cake\Network\Response |
|
1071 | + * @return \Cake\Http\Response|null |
|
1072 | 1072 | */ |
1073 | 1073 | public function leave() |
1074 | 1074 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * An user vote to a poll. |
12 | 12 | * |
13 | - * @return \Cake\Network\Exception\NotFoundException|\Cake\Network\Response |
|
13 | + * @return \Cake\Http\Response|null |
|
14 | 14 | */ |
15 | 15 | public function vote() |
16 | 16 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Login and register page. |
83 | 83 | * |
84 | - * @return \Cake\Network\Response|void |
|
84 | + * @return \Cake\Http\Response|null |
|
85 | 85 | */ |
86 | 86 | public function login() |
87 | 87 | { |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | /** |
331 | 331 | * Logout an user. |
332 | 332 | * |
333 | - * @return \Cake\Network\Response |
|
333 | + * @return \Cake\Http\Response|null |
|
334 | 334 | */ |
335 | 335 | public function logout() |
336 | 336 | { |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | /** |
343 | 343 | * Ask to the user the 2FA code and verify it. |
344 | 344 | * |
345 | - * @return \Cake\Network\Response|void |
|
345 | + * @return \Cake\Http\Response|null |
|
346 | 346 | */ |
347 | 347 | public function tfa() |
348 | 348 | { |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | /** |
478 | 478 | * Page to configure our settings. |
479 | 479 | * |
480 | - * @return \Cake\Network\Response|void |
|
480 | + * @return \Cake\Http\Response|null |
|
481 | 481 | */ |
482 | 482 | public function settings() |
483 | 483 | { |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | /** |
556 | 556 | * View a profile page of an user. |
557 | 557 | * |
558 | - * @return \Cake\Network\Response|void |
|
558 | + * @return \Cake\Http\Response|null |
|
559 | 559 | */ |
560 | 560 | public function profile() |
561 | 561 | { |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | /** |
620 | 620 | * Delete an user with all his comments, articles and likes. |
621 | 621 | * |
622 | - * @return \Cake\Network\Response |
|
622 | + * @return \Cake\Http\Response|null |
|
623 | 623 | */ |
624 | 624 | public function delete() |
625 | 625 | { |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | /** |
683 | 683 | * Display the form to reset the password. |
684 | 684 | * |
685 | - * @return \Cake\Network\Response|void |
|
685 | + * @return \Cake\Http\Response|null |
|
686 | 686 | */ |
687 | 687 | public function forgotPassword() |
688 | 688 | { |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | /** |
753 | 753 | * Display the form to reset his password. |
754 | 754 | * |
755 | - * @return \Cake\Network\Response|void |
|
755 | + * @return \Cake\Http\Response|null |
|
756 | 756 | */ |
757 | 757 | public function resetPassword() |
758 | 758 | { |