@@ -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 |
@@ -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 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * Returns user token. |
| 75 | 75 | * |
| 76 | 76 | * @param string $userId User id. |
| 77 | - * @return mixed|null |
|
| 77 | + * @return string |
|
| 78 | 78 | */ |
| 79 | 79 | protected function _userToken($userId = null) |
| 80 | 80 | { |
@@ -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"; |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | /** |
| 68 | 68 | * Execute action. |
| 69 | 69 | * |
| 70 | - * @return mixed |
|
| 70 | + * @return string |
|
| 71 | 71 | * @throws Exception |
| 72 | 72 | */ |
| 73 | 73 | public function execute() |
@@ -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. |
@@ -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([ |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use CakeDC\Api\TestSuite\TestCase; |
| 19 | 19 | use CakeDC\Api\Test\ConfigTrait; |
| 20 | 20 | use CakeDC\Api\Test\FixturesTrait; |
| 21 | -use Cake\Controller\Controller; |
|
| 22 | 21 | use Cake\Core\Configure; |
| 23 | 22 | |
| 24 | 23 | class ServiceTest extends TestCase |