@@ -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([ |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use CakeDC\Api\TestSuite\TestCase; |
17 | 17 | use CakeDC\Api\Test\ConfigTrait; |
18 | 18 | use CakeDC\Api\Test\FixturesTrait; |
19 | - |
|
20 | 19 | use Cake\Datasource\EntityInterface; |
21 | 20 | |
22 | 21 | class CrudEditActionTest extends TestCase |
@@ -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 | { |
@@ -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 | { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | * |
296 | 296 | * @param int $version Version number. |
297 | 297 | * @deprecated 3.4.0 Use setVersion()/getVersion() instead. |
298 | - * @return int|$this |
|
298 | + * @return null|integer |
|
299 | 299 | */ |
300 | 300 | public function version($version = null) |
301 | 301 | { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * |
372 | 372 | * @param \Cake\Http\ServerRequest $request A Request object. |
373 | 373 | * @deprecated 3.4.0 Use getRequest()/setRequest() instead. |
374 | - * @return \Cake\Http\ServerRequest|$this |
|
374 | + * @return null|ServerRequest |
|
375 | 375 | */ |
376 | 376 | public function request($request = null) |
377 | 377 | { |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | * Build router settings. |
442 | 442 | * This implementation build action map for resource routes based on Service actions. |
443 | 443 | * |
444 | - * @return array |
|
444 | + * @return callable |
|
445 | 445 | */ |
446 | 446 | public function routerDefaultOptions() |
447 | 447 | { |
@@ -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; |
@@ -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); |