Passed
Push — master ( 72f710...3d12b3 )
by Vince
01:54 queued 11s
created
src/core/user/user.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function updateAccount($properties)
156 156
     {
157
-        if( is_array($properties) ) {
157
+        if (is_array($properties)) {
158 158
             $properties = (object) $properties;
159 159
         }
160 160
 
@@ -207,16 +207,16 @@  discard block
 block discarded – undo
207 207
         }
208 208
 
209 209
         foreach ($properties->update as $u => $update) {
210
-            if( !in_array($u, $allowedFileds) ) {
210
+            if (!in_array($u, $allowedFileds)) {
211 211
                 unset($properties->update[$u]);
212
-            }else{
212
+            } else {
213 213
                 $set .= $u . ' = :' . $u . ',';
214 214
                 $binds[$u] = $update;
215 215
             }
216 216
         }
217 217
 
218 218
         $set = rtrim($set, ',');
219
-        $where =  key($properties->where) . ' = ' . $properties->where[key($properties->where)];
219
+        $where = key($properties->where) . ' = ' . $properties->where[key($properties->where)];
220 220
 
221 221
         return [
222 222
             'set' => $set,
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         $options = $this->getOptions();
260 260
         $skipValidatation = false;
261 261
 
262
-        if( isset($options['validate']) && $options['validate'] == false ) {
262
+        if (isset($options['validate']) && $options['validate'] == false) {
263 263
             $skipValidatation = true;
264 264
         }
265 265
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                 break;
276 276
 
277 277
             case 'mail':
278
-                if( !filter_var($property, FILTER_VALIDATE_EMAIL) && !$skipValidatation) {
278
+                if (!filter_var($property, FILTER_VALIDATE_EMAIL) && !$skipValidatation) {
279 279
                     return false;
280 280
                 }
281 281
                 $this->mail = $property;
Please login to merge, or discard this patch.