Passed
Push — master ( 76451e...ce8007 )
by Andreas
11:32
created
lib/org/openpsa/user/validator.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $result = $this->is_username_available($fields);
60 60
 
61
-        if (   $fields['password']['switch']
61
+        if ($fields['password']['switch']
62 62
             && !$this->get_accounthelper()->check_password_strength((string) $fields['password']['password'])) {
63 63
             $result = ['password' => $this->_l10n->get('password weak')];
64 64
         }
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
         $result = [];
163 163
 
164 164
         $accounthelper = $this->get_accounthelper(new midcom_db_person($fields["person"]));
165
-        if (!$accounthelper->check_password_reuse($fields['new_password'])){
165
+        if (!$accounthelper->check_password_reuse($fields['new_password'])) {
166 166
             $result['password'] = $this->l10n->get('password was already used');
167 167
         }
168
-        if (!$accounthelper->check_password_strength($fields['new_password'])){
168
+        if (!$accounthelper->check_password_strength($fields['new_password'])) {
169 169
             $result['password'] = $this->l10n->get('password weak');
170 170
         }
171 171
         return $result ?: true;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,10 +162,10 @@
 block discarded – undo
162 162
         $result = [];
163 163
 
164 164
         $accounthelper = $this->get_accounthelper(new midcom_db_person($fields["person"]));
165
-        if (!$accounthelper->check_password_reuse($fields['new_password'])){
165
+        if (!$accounthelper->check_password_reuse($fields['new_password'])) {
166 166
             $result['password'] = $this->l10n->get('password was already used');
167 167
         }
168
-        if (!$accounthelper->check_password_strength($fields['new_password'])){
168
+        if (!$accounthelper->check_password_strength($fields['new_password'])) {
169 169
             $result['password'] = $this->l10n->get('password weak');
170 170
         }
171 171
         return $result ?: true;
Please login to merge, or discard this patch.