Skip to content

Commit

Permalink
Merge pull request #1052 from uasoft-indonesia/analysis-54anVP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
miftahurrahmi authored Nov 21, 2023
2 parents f4252ed + f25a5e5 commit eb84428
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 eb84428

Please sign in to comment.