@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * Returns current limit |
| 85 | 85 | * |
| 86 | 86 | * @param Action $action An Action instance |
| 87 | - * @return mixed |
|
| 87 | + * @return Action |
|
| 88 | 88 | */ |
| 89 | 89 | protected function _limit(Action $action) |
| 90 | 90 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use CakeDC\Api\Test\Settings; |
| 18 | 18 | use Cake\Core\Configure; |
| 19 | 19 | use Cake\ORM\TableRegistry; |
| 20 | -use Cake\Utility\Hash; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * Class ResetPasswordRequestActionTest |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * Model id getter. |
| 160 | 160 | * |
| 161 | - * @return mixed|string |
|
| 161 | + * @return string |
|
| 162 | 162 | */ |
| 163 | 163 | public function getId() |
| 164 | 164 | { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | /** |
| 179 | 179 | * Parent id getter. |
| 180 | 180 | * |
| 181 | - * @return mixed|string |
|
| 181 | + * @return string |
|
| 182 | 182 | */ |
| 183 | 183 | public function getParentId() |
| 184 | 184 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * @param EntityInterface $entity An Entity instance. |
| 214 | 214 | * @param array $data Entity data. |
| 215 | 215 | * @param array $options Patch entity options. |
| 216 | - * @return \Cake\Datasource\EntityInterface|mixed |
|
| 216 | + * @return EntityInterface |
|
| 217 | 217 | */ |
| 218 | 218 | protected function _patchEntity($entity, $data, $options = []) |
| 219 | 219 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * Returns single entity by id. |
| 253 | 253 | * |
| 254 | - * @param mixed $primaryKey Primary key. |
|
| 254 | + * @param string $primaryKey Primary key. |
|
| 255 | 255 | * @return \Cake\Collection\Collection |
| 256 | 256 | */ |
| 257 | 257 | protected function _getEntity($primaryKey) |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * Build condition for get entity method. |
| 274 | 274 | * |
| 275 | 275 | * @param string $primaryKey Primary key |
| 276 | - * @return array |
|
| 276 | + * @return callable|null |
|
| 277 | 277 | */ |
| 278 | 278 | protected function _buildViewCondition($primaryKey) |
| 279 | 279 | { |
@@ -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 | { |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | * systems like basic and digest auth. |
| 219 | 219 | * |
| 220 | 220 | * @param \Cake\Http\ServerRequest $request Request object. |
| 221 | - * @return mixed Either false or an array of user information |
|
| 221 | + * @return boolean Either false or an array of user information |
|
| 222 | 222 | */ |
| 223 | 223 | public function getUser(ServerRequest $request) |
| 224 | 224 | { |
@@ -26,13 +26,11 @@ |
||
| 26 | 26 | namespace CakeDC\Api\Service\Auth\Authenticate; |
| 27 | 27 | |
| 28 | 28 | use CakeDC\Api\Service\Action\Action; |
| 29 | - |
|
| 30 | 29 | use Cake\Auth\PasswordHasherFactory; |
| 31 | 30 | use Cake\Core\InstanceConfigTrait; |
| 32 | 31 | use Cake\Event\EventListenerInterface; |
| 33 | 32 | use Cake\Http\Response; |
| 34 | 33 | use Cake\Http\ServerRequest; |
| 35 | - |
|
| 36 | 34 | use Cake\ORM\TableRegistry; |
| 37 | 35 | |
| 38 | 36 | /** |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * |
| 61 | 61 | * @param ServerRequest $request Cake request object. |
| 62 | 62 | * @param Response $response Cake response object. |
| 63 | - * @return mixed |
|
| 63 | + * @return boolean |
|
| 64 | 64 | */ |
| 65 | 65 | public function authenticate(ServerRequest $request, Response $response) |
| 66 | 66 | { |
@@ -20,11 +20,9 @@ |
||
| 20 | 20 | use CakeDC\Api\Service\Exception\MissingRendererException; |
| 21 | 21 | use CakeDC\Api\Service\Renderer\BaseRenderer; |
| 22 | 22 | use CakeDC\Api\Service\RequestParser\BaseParser; |
| 23 | - |
|
| 24 | 23 | use Cake\Core\App; |
| 25 | 24 | use Cake\Core\Configure; |
| 26 | 25 | use Cake\Datasource\Exception\RecordNotFoundException; |
| 27 | - |
|
| 28 | 26 | use Cake\Event\EventDispatcherInterface; |
| 29 | 27 | use Cake\Event\EventDispatcherTrait; |
| 30 | 28 | use Cake\Event\EventListenerInterface; |
@@ -461,7 +461,7 @@ |
||
| 461 | 461 | * Build router settings. |
| 462 | 462 | * This implementation build action map for resource routes based on Service actions. |
| 463 | 463 | * |
| 464 | - * @return array |
|
| 464 | + * @return callable |
|
| 465 | 465 | */ |
| 466 | 466 | public function routerDefaultOptions() |
| 467 | 467 | { |
@@ -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|string |
|
| 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 | { |
@@ -116,6 +116,9 @@ |
||
| 116 | 116 | $this->assertEquals($this->defaultPermissions, $this->simpleRbacAuthorize->getConfig('permissions')); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param string $instance |
|
| 121 | + */ |
|
| 119 | 122 | protected function assertConstructorPermissions($instance, $config, $permissions) |
| 120 | 123 | { |
| 121 | 124 | $reflectedClass = new ReflectionClass($instance); |