diff --git a/src/Controllers/Controller.php b/src/Controllers/Controller.php index 9ec2b904..296772bb 100644 --- a/src/Controllers/Controller.php +++ b/src/Controllers/Controller.php @@ -130,27 +130,27 @@ public function getContentByType($data_type, $data_row, $value) $return_value = $value; break; case 'time': - if ($value == null){ + if ($value == null) { $return_value = $value; - }else{ + } else { $z_removed = explode('.', $value)[0]; $time = explode('T', $z_removed)[1]; $return_value = $time; } break; case 'date': - if($value == null){ + if ($value == null) { $return_value = $value; - }else{ + } else { $z_removed = explode('.', $value)[0]; $date = explode('T', $z_removed)[0]; $return_value = $date; } break; case 'datetime': - if($value == null){ + if ($value == null) { $return_value = $value; - }else{ + } else { $z_removed = explode('.', $value)[0]; $date_time = str_replace('T', ' ', $z_removed); $return_value = $date_time; @@ -578,7 +578,7 @@ public function updateData($data, $data_type) } if (in_array($data_row->type, [ - 'number','datetime','date','time' + 'number', 'datetime', 'date', 'time', ])) { $new_data[$key] = $this->getContentByType($data_type, $data_row, $value) !== null ? $this->getContentByType($data_type, $data_row, $value) : null; } else {