lint
This commit is contained in:
parent
6f23c3c1b7
commit
2a28465626
3 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue