Passed
Branch master (b57df4)
by refat
04:17
created
App/Controllers/Admin/UsersController.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,7 +215,9 @@  discard block
 block discarded – undo
215 215
 
216 216
     $current_value = $this->db->select($name)->from($table)->where($user_id_table_name . ' = ?', [$id])->fetch()->$name;
217 217
 
218
-    if ($value == '') $value = null;
218
+    if ($value == '') {
219
+      $value = null;
220
+    }
219 221
 
220 222
     if (($current_value === strtolower($value)) || ($value == null && $current_value == null)) {
221 223
       $msg['same'] = $value ? strtolower($value) : '';
@@ -246,7 +248,9 @@  discard block
 block discarded – undo
246 248
       return json_encode($msg);
247 249
     }
248 250
 
249
-    if (isset($filters->date)) $value = date('Y-m-d', strtotime($value));
251
+    if (isset($filters->date)) {
252
+      $value = date('Y-m-d', strtotime($value));
253
+    }
250 254
 
251 255
     $update = $this->db->data($name, $value)->where($user_id_table_name . ' = ?', $id)->update($table);
252 256
 
Please login to merge, or discard this patch.