mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
DX: fix cs
This commit is contained in:
@@ -202,7 +202,7 @@ class Household
|
||||
{
|
||||
$at ??= new DateTime('today');
|
||||
|
||||
$addrs = $this->getAddresses()->filter(static fn(Address $a) => $a->getValidFrom() <= $at && (
|
||||
$addrs = $this->getAddresses()->filter(static fn (Address $a) => $a->getValidFrom() <= $at && (
|
||||
null === $a->getValidTo() || $a->getValidTo() > $at
|
||||
));
|
||||
|
||||
@@ -336,7 +336,7 @@ class Household
|
||||
public function getCurrentPersons(?DateTimeImmutable $now = null): ReadableCollection
|
||||
{
|
||||
return $this->getCurrentMembers($now)
|
||||
->map(static fn(HouseholdMember $m) => $m->getPerson());
|
||||
->map(static fn (HouseholdMember $m) => $m->getPerson());
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
@@ -363,7 +363,7 @@ class Household
|
||||
$membership->getStartDate(),
|
||||
$membership->getEndDate()
|
||||
)->filter(
|
||||
static fn(HouseholdMember $m) => $m->getPerson() !== $membership->getPerson()
|
||||
static fn (HouseholdMember $m) => $m->getPerson() !== $membership->getPerson()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -502,7 +502,7 @@ class Household
|
||||
|
||||
usort(
|
||||
$compositionOrdered,
|
||||
static fn(HouseholdComposition $a, HouseholdComposition $b) => $a->getStartDate() <=> $b->getStartDate()
|
||||
static fn (HouseholdComposition $a, HouseholdComposition $b) => $a->getStartDate() <=> $b->getStartDate()
|
||||
);
|
||||
|
||||
$iterator = new ArrayIterator($compositionOrdered);
|
||||
|
Reference in New Issue
Block a user