lint
All checks were successful
/ ls (pull_request) Successful in 37s
/ ls (push) Successful in 35s

This commit is contained in:
lubiana 2024-08-16 11:15:23 +02:00
parent 6f23c3c1b7
commit 2a28465626
No known key found for this signature in database
3 changed files with 6 additions and 12 deletions

View file

@ -67,15 +67,10 @@ class FoodOrder
public function isClosed(): bool
{
if ($this->closedAt === null) {
if (! $this->closedAt instanceof DateTimeImmutable) {
return false;
}
if ($this->closedAt < new DateTimeImmutable) {
return true;
}
return false;
return $this->closedAt < new DateTimeImmutable;
}
public function close(): static