Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 21, 2023
1 parent f4252ed commit f25a5e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ 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;
Expand All @@ -146,7 +146,7 @@ public function getContentByType($data_type, $data_row, $value)
case 'date':
if ($value == null) {
$return_value = $value;
} else{
} else {
$z_removed = explode('.', $value)[0];
$date = explode('T', $z_removed)[0];
$return_value = $date;
Expand All @@ -155,7 +155,7 @@ public function getContentByType($data_type, $data_row, $value)
case 'datetime':
if ($value == null) {
$return_value = $value;
} else{
} else {
$z_removed = explode('.', $value)[0];
$date_time = str_replace('T', ' ', $z_removed);
$return_value = $date_time;
Expand Down

0 comments on commit f25a5e5

Please sign in to comment.