Test Setup Failed
Push — master ( be54f8...94269f )
by Evgeny
06:45 queued 04:10
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/Auth/Authenticate/BaseAuthenticate.php 1 patch
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.
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/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.
src/Service/Auth/Authenticate/TokenAuthenticate.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/Action/Extension/CrudRelationsExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     /**
110 110
      * @param CrudAction $action An Action instance.
111 111
      * @param Query $query A Query instance.
112
-     * @return mixed
112
+     * @return Query
113 113
      */
114 114
     protected function _attachAssociations(CrudAction $action, Query $query)
115 115
     {
Please login to merge, or discard this patch.
src/Service/Auth/Authorize/SimpleRbacAuthorize.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * Set a default role if no role is provided
141 141
      *
142 142
      * @param array $user user data
143
-     * @param Request $request request
143
+     * @param ServerRequest $request request
144 144
      * @return bool
145 145
      */
146 146
     public function authorize($user, ServerRequest $request)
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      *
163 163
      * @param array $user current user array
164 164
      * @param string $role effective role for the current user
165
-     * @param Request $request request
165
+     * @param ServerRequest $request request
166 166
      * @return bool true if there is a match in permissions
167 167
      */
168 168
     protected function _checkRules(array $user, $role, ServerRequest $request)
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
      * @param array $permission configuration
185 185
      * @param array $user current user
186 186
      * @param string $role effective user role
187
-     * @param Request $request request
188
-     * @return bool if rule matched, null if rule not matched
187
+     * @param ServerRequest $request request
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
     {
Please login to merge, or discard this patch.
src/Service/Locator/LocatorAwareTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * If no parameters are passed, it will return the currently used locator.
32 32
      *
33 33
      * @param \CakeDC\Api\Service\Locator\LocatorInterface|null $serviceLocator LocatorInterface instance.
34
-     * @return \CakeDC\Api\Service\Locator\LocatorInterface
34
+     * @return \Cake\ORM\Locator\LocatorInterface
35 35
      * @deprecated 3.6.0 Use getTableLocator()/setTableLocator() instead.
36 36
      */
37 37
     public function serviceLocator(LocatorInterface $serviceLocator = null)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * Sets the table locator.
52 52
      *
53
-     * @param \Cake\ORM\Locator\LocatorInterface $tableLocator LocatorInterface instance.
53
+     * @param LocatorInterface $tableLocator LocatorInterface instance.
54 54
      * @return $this
55 55
      */
56 56
     public function setTableLocator(LocatorInterface $tableLocator)
Please login to merge, or discard this patch.