Test Failed
Push — master ( c287b5...6819ee )
by Evgeny
02:49
created
src/Service/Action/Auth/RegisterAction.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Service/Action/Auth/ValidateAccountAction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use CakeDC\Api\Exception\ValidationException;
15 15
 use CakeDC\Api\Service\Action\Action;
16
-use CakeDC\Users\Controller\Component\UsersAuthComponent;
17 16
 use CakeDC\Users\Controller\Traits\CustomUsersTableTrait;
18 17
 use CakeDC\Users\Exception\TokenExpiredException;
19 18
 use CakeDC\Users\Exception\UserAlreadyActiveException;
Please login to merge, or discard this patch.
src/Service/Action/CrudAction.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Builds new entity instance.
116 116
      *
117
-     * @return \Cake\Collection\Collection
117
+     * @return EntityInterface
118 118
      */
119 119
     protected function _newEntity()
120 120
     {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      *
129 129
      * @param EntityInterface $entity An Entity instance.
130 130
      * @param array $data Entity data.
131
-     * @return \Cake\Datasource\EntityInterface|mixed
131
+     * @return EntityInterface
132 132
      */
133 133
     protected function _patchEntity($entity, $data)
134 134
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Returns single entity by id.
164 164
      *
165
-     * @param mixed $primaryKey Primary key.
165
+     * @param string $primaryKey Primary key.
166 166
      * @return \Cake\Collection\Collection
167 167
      */
168 168
     protected function _getEntity($primaryKey)
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * Save entity.
198 198
      *
199 199
      * @param EntityInterface $entity An Entity instance.
200
-     * @return mixed
200
+     * @return EntityInterface
201 201
      */
202 202
     protected function _save($entity)
203 203
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     /**
212 212
      * Model id getter.
213 213
      *
214
-     * @return mixed|string
214
+     * @return string
215 215
      */
216 216
     public function id()
217 217
     {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * Model id field name getter.
223 223
      *
224
-     * @return mixed|string
224
+     * @return string
225 225
      */
226 226
     public function idName()
227 227
     {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * Parent id getter.
233 233
      *
234
-     * @return mixed|string
234
+     * @return string
235 235
      */
236 236
     public function parentId()
237 237
     {
Please login to merge, or discard this patch.
src/Service/Action/CrudEditAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     {
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
@@ -105,7 +105,7 @@
 block discarded – undo
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
     {
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
@@ -214,7 +214,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Service/Auth/Authorize/SimpleRbacAuthorize.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Service/Service.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      * Build router settings.
340 340
      * This implementation build action map for resource routes based on Service actions.
341 341
      *
342
-     * @return array
342
+     * @return callable
343 343
      */
344 344
     public function routerDefaultOptions()
345 345
     {
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
      * Fill up response and stop execution.
571 571
      *
572 572
      * @param Result $result A Result instance.
573
-     * @return Response
573
+     * @return \Cake\Network\Response|null
574 574
      */
575 575
     public function respond($result = null)
576 576
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use Cake\Core\Configure;
25 25
 use Cake\Datasource\Exception\RecordNotFoundException;
26 26
 use Cake\Http\Client\Response;
27
-use Cake\Network\Exception\UnauthorizedException;
28 27
 use Cake\Routing\RouteBuilder;
29 28
 use Cake\Utility\Hash;
30 29
 use Cake\Utility\Inflector;
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
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.