Completed
Push — master ( 7c1383...8fd89c )
by Cheren
05:32
created
src/Controller/Admin/GroupsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * Edit action.
39 39
      *
40
-     * @return  mixed
40
+     * @return  \Cake\Http\Response|null
41 41
      *
42 42
      * @throws  RolledbackTransactionException
43 43
      */
Please login to merge, or discard this patch.
src/Model/Table/UsersTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @param   array|\ArrayAccess $options The options to use when saving.
73 73
      * @return  \Cake\Datasource\EntityInterface|false
74 74
      */
75
-    public function save(EntityInterface $entity, $options = [])
75
+    public function save(EntityInterface $entity, $options = [ ])
76 76
     {
77 77
         EventManager::trigger('Model.User.beforeSave', $this, [
78 78
             'user' => $entity
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 'message'  => __d('community', 'User with this login already exists.')
106 106
             ])
107 107
             ->add('login', 'length', [
108
-                'rule'    => ['minLength', MIN_LENGTH_LOGIN],
108
+                'rule'    => [ 'minLength', MIN_LENGTH_LOGIN ],
109 109
                 'message' => __d('community', 'The minimum login length must be {0} characters', MIN_LENGTH_LOGIN)
110 110
             ]);
111 111
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 'message'  => __d('community', 'User with this alias already exists.')
119 119
             ])
120 120
             ->add('slug', 'length', [
121
-                'rule'    => ['minLength', MIN_LENGTH_LOGIN],
121
+                'rule'    => [ 'minLength', MIN_LENGTH_LOGIN ],
122 122
                 'message' => __d('community', 'The minimum alias length must be {0} characters', MIN_LENGTH_LOGIN)
123 123
             ]);
124 124
 
@@ -142,14 +142,14 @@  discard block
 block discarded – undo
142 142
         $validator
143 143
             ->notEmpty('password', __d('community', 'Please, enter you password.'))
144 144
             ->add('password', 'minLength', [
145
-                'rule'    => ['minLength', MIN_LENGTH_PASS],
145
+                'rule'    => [ 'minLength', MIN_LENGTH_PASS ],
146 146
                 'message' => __d('community', 'The minimum password length is {0}', MIN_LENGTH_PASS)
147 147
             ]);
148 148
 
149 149
         $validator
150 150
             ->notEmpty('password_confirm', __d('community', 'Please, confirm you password.'))
151 151
             ->add('password_confirm', 'no-misspelling', [
152
-                'rule'    => ['compareWith', 'password'],
152
+                'rule'    => [ 'compareWith', 'password' ],
153 153
                 'message' => __d('community', 'Passwords are not equal')
154 154
             ]);
155 155
 
Please login to merge, or discard this patch.