Форматирование

This commit is contained in:
brusnitsyn
2026-04-24 16:46:10 +09:00
parent fd0e6ee817
commit 63daa62888
87 changed files with 1380 additions and 791 deletions

View File

@@ -92,7 +92,7 @@ class DateRangeService
return [
$startDate->format('Y-m-d H:i:s'),
$endDate->format('Y-m-d H:i:s')
$endDate->format('Y-m-d H:i:s'),
];
}
@@ -107,7 +107,9 @@ class DateRangeService
public function isRangeOneDay($startAt = null, $endAt = null): bool
{
if (!$startAt || !$endAt) return false;
if (! $startAt || ! $endAt) {
return false;
}
$startDate = $this->parseDate($startAt);
$endDate = $this->parseDate($endAt);
@@ -130,7 +132,7 @@ class DateRangeService
return [
$startDate->format('Y-m-d H:i:s'),
$endDate->format('Y-m-d H:i:s')
$endDate->format('Y-m-d H:i:s'),
];
}
@@ -145,7 +147,7 @@ class DateRangeService
return [
$startDate->format('Y-m-d H:i:s'),
$endDate->format('Y-m-d H:i:s')
$endDate->format('Y-m-d H:i:s'),
];
}