@@ -16,11 +16,9 @@ |
||
16 | 16 | use CakeDC\Users\Controller\Component\UsersAuthComponent; |
17 | 17 | use CakeDC\Users\Controller\Traits\CustomUsersTableTrait; |
18 | 18 | use CakeDC\Users\Controller\Traits\RegisterTrait; |
19 | -use CakeDC\Users\Exception\UserNotFoundException; |
|
20 | 19 | use Cake\Core\Configure; |
21 | 20 | use Cake\Datasource\EntityInterface; |
22 | 21 | use Cake\Utility\Hash; |
23 | -use Cake\Validation\Validator; |
|
24 | 22 | |
25 | 23 | /** |
26 | 24 | * Class RegisterAction |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Execute action. |
69 | 69 | * |
70 | - * @return mixed |
|
70 | + * @return string|null |
|
71 | 71 | * @throws Exception |
72 | 72 | */ |
73 | 73 | public function execute() |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Execute action. |
24 | 24 | * |
25 | - * @return mixed |
|
25 | + * @return boolean |
|
26 | 26 | */ |
27 | 27 | public function execute() |
28 | 28 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Execute action. |
42 | 42 | * |
43 | - * @return mixed |
|
43 | + * @return \Cake\Datasource\EntityInterface |
|
44 | 44 | */ |
45 | 45 | public function execute() |
46 | 46 | { |
@@ -185,7 +185,7 @@ |
||
185 | 185 | * @param array $user current user |
186 | 186 | * @param string $role effective user role |
187 | 187 | * @param Request $request request |
188 | - * @return bool if rule matched, null if rule not matched |
|
188 | + * @return boolean|null if rule matched, null if rule not matched |
|
189 | 189 | */ |
190 | 190 | protected function _matchRule($permission, $user, $role, $request) |
191 | 191 | { |
@@ -152,6 +152,9 @@ |
||
152 | 152 | $renderer->error($error); |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $text |
|
157 | + */ |
|
155 | 158 | protected function _xmlMessage($text) |
156 | 159 | { |
157 | 160 | return '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $text . "\n"; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * Determines the content type of the data the client has sent (i.e. in a POST request) |
63 | 63 | * |
64 | - * @param string|array|null $type Can be null (or no parameter), a string type name, or an array of types |
|
64 | + * @param string $type Can be null (or no parameter), a string type name, or an array of types |
|
65 | 65 | * @return mixed If a single type is supplied a boolean will be returned. If no type is provided |
66 | 66 | * The mapped value of CONTENT_TYPE will be returned. If an array is supplied the first type |
67 | 67 | * in the request content type will be returned. |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Execute action. |
69 | 69 | * |
70 | - * @return mixed |
|
70 | + * @return string|null |
|
71 | 71 | * @throws Exception |
72 | 72 | */ |
73 | 73 | public function execute() |
@@ -85,6 +85,9 @@ |
||
85 | 85 | $this->Action->execute(); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $id |
|
90 | + */ |
|
88 | 91 | protected function _initializeAction($id, $post = []) |
89 | 92 | { |
90 | 93 | $this->_initializeRequest([ |