Test Setup Failed
Push — master ( 4700e4...a7e017 )
by Yelitza
02:16 queued 22s
created
src/Service/Action/CrudAddAction.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/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.