| @@ -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 | 
| @@ -66,7 +66,7 @@ | ||
| 66 | 66 | /** | 
| 67 | 67 | * Execute action. | 
| 68 | 68 | * | 
| 69 | - * @return mixed | |
| 69 | + * @return string|null | |
| 70 | 70 | * @throws Exception | 
| 71 | 71 | */ | 
| 72 | 72 | public function execute() | 
| @@ -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 |      { | 
| @@ -105,7 +105,7 @@ | ||
| 105 | 105 | /** | 
| 106 | 106 | * @param Action $action An Action instance. | 
| 107 | 107 | * @param Query $query A Query instance. | 
| 108 | - * @return mixed | |
| 108 | + * @return Query | |
| 109 | 109 | */ | 
| 110 | 110 | protected function _attachAssociations(Action $action, Query $query) | 
| 111 | 111 |      { | 
| @@ -214,7 +214,7 @@ | ||
| 214 | 214 | * systems like basic and digest auth. | 
| 215 | 215 | * | 
| 216 | 216 | * @param \Cake\Network\Request $request Request object. | 
| 217 | - * @return mixed Either false or an array of user information | |
| 217 | + * @return boolean Either false or an array of user information | |
| 218 | 218 | */ | 
| 219 | 219 | public function getUser(Request $request) | 
| 220 | 220 |      { | 
| @@ -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 |      { | 
| @@ -51,7 +51,7 @@ discard block | ||
| 51 | 51 | * | 
| 52 | 52 | * @param Action $action An Action instance. | 
| 53 | 53 | * @param callable $beforeReverse Callback. | 
| 54 | - * @return array | |
| 54 | + * @return string|null | |
| 55 | 55 | */ | 
| 56 | 56 | public function indexPath(Action $action, $beforeReverse = null) | 
| 57 | 57 |      { | 
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 | * @param string $parentName Action name. | 
| 86 | 86 | * @param Action $action An Action instance. | 
| 87 | 87 | * @param string $type Type of action. | 
| 88 | - * @return array | |
| 88 | + * @return string | |
| 89 | 89 | */ | 
| 90 | 90 | public function parentViewPath($parentName, $action, $type) | 
| 91 | 91 |      { | 
| @@ -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 |      { | 
| @@ -52,7 +52,7 @@ | ||
| 52 | 52 | /** | 
| 53 | 53 | * Execute action. | 
| 54 | 54 | * | 
| 55 | - * @return mixed | |
| 55 | + * @return boolean | |
| 56 | 56 | */ | 
| 57 | 57 | public function action($tag_id) | 
| 58 | 58 |      { |