fix gitlab tests
This commit is contained in:
@@ -13,7 +13,8 @@ class InvoiceTuitionService
|
||||
private float $secondStudentFee,
|
||||
private float $youthFee,
|
||||
private string $timezone
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function calculateTuitionFee(array $registeredKids, array $withdrawnKids, ?string $refundDeadline): float
|
||||
{
|
||||
@@ -60,7 +61,7 @@ class InvoiceTuitionService
|
||||
|
||||
private function isRefundAllowed(?string $refundDeadline): bool
|
||||
{
|
||||
if (! $refundDeadline) {
|
||||
if (!$refundDeadline) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -68,7 +69,6 @@ class InvoiceTuitionService
|
||||
$tz = new \DateTimeZone($this->timezone);
|
||||
$today = new \DateTimeImmutable('today', $tz);
|
||||
$deadline = new \DateTimeImmutable($refundDeadline, $tz);
|
||||
|
||||
return $today <= $deadline;
|
||||
} catch (\Throwable $e) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user