Completed
Pull Request — master (#40)
by
unknown
10:59
created
src/Service/Action/CrudAction.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Service/Action/Extension/CrudRelationsExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     /**
109 109
      * @param Action $action An Action instance.
110 110
      * @param Query $query A Query instance.
111
-     * @return mixed
111
+     * @return Query
112 112
      */
113 113
     protected function _attachAssociations(CrudAction $action, Query $query)
114 114
     {
Please login to merge, or discard this patch.
src/Service/Auth/Authenticate/BaseAuthenticate.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,13 +26,11 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/Service/Auth/Authenticate/SocialAuthenticate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Service/Auth/Authenticate/TokenAuthenticate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      *
48 48
      * @param ServerRequest $request Cake request object.
49 49
      * @param Response $response Cake response object.
50
-     * @return mixed
50
+     * @return boolean
51 51
      */
52 52
     public function authenticate(ServerRequest $request, Response $response)
53 53
     {
Please login to merge, or discard this patch.
src/Service/Service.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Service/Utility/ReverseRouting.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/TestCase/Auth/Authorize/SimpleRbacAuthorizeTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -116,6 +116,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/TestCase/Service/Action/CrudAddActionTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
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 CrudAddActionTest extends TestCase
Please login to merge, or discard this patch.