Test Setup Failed
Push — master ( eb8e32...ff17f5 )
by Evgeny
03:06
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/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/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.
src/TestSuite/IntegrationTestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      * Returns user token.
75 75
      *
76 76
      * @param string $userId User id.
77
-     * @return mixed|null
77
+     * @return string
78 78
      */
79 79
     protected function _userToken($userId = null)
80 80
     {
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->config('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/CrudEditActionTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@
 block discarded – undo
101 101
         $this->Action->execute();
102 102
     }
103 103
 
104
+    /**
105
+     * @param integer $id
106
+     */
104 107
     protected function _initializeAction($id, $post = [])
105 108
     {
106 109
         $this->_initializeController([
Please login to merge, or discard this patch.
tests/TestCase/Service/Renderer/XmlRendererTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -152,6 +152,9 @@
 block discarded – undo
152 152
         $renderer->error($error);
153 153
     }
154 154
 
155
+    /**
156
+     * @param string $text
157
+     */
155 158
     protected function _xmlMessage($text)
156 159
     {
157 160
         return '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $text . "\n";
Please login to merge, or discard this patch.
src/Middleware/ApiMiddleware.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Zend\Diactoros\Response\RedirectResponse;
11 11
 use Cake\Http\RequestTransformer;
12 12
 use Cake\Http\ResponseTransformer;
13
-
14 13
 use CakeDC\Api\Service\ConfigReader;
15 14
 use CakeDC\Api\Service\ServiceRegistry;
16 15
 
Please login to merge, or discard this patch.
src/Service/Action/Auth/ResetPasswordAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     /**
68 68
      * Execute action.
69 69
      *
70
-     * @return mixed
70
+     * @return string
71 71
      * @throws Exception
72 72
      */
73 73
     public function execute()
Please login to merge, or discard this patch.