Upgrade of php-cs-fixer

This commit is contained in:
2024-09-11 14:21:32 +02:00
parent 8b1b255050
commit d0ee381627
273 changed files with 357 additions and 357 deletions

View File

@@ -58,7 +58,7 @@ class AccompanyingPeriodWorkReferrerHistory implements TrackCreationInterface, T
*
* @ORM\Column(type="date_immutable", nullable=false)
*/
private \DateTimeImmutable $startDate
private \DateTimeImmutable $startDate,
) {
}

View File

@@ -57,7 +57,7 @@ class UserHistory implements TrackCreationInterface
/**
* @ORM\Column(type="datetime_immutable", nullable=false, options={"default": "now()"})
*/
private \DateTimeImmutable $startDate = new \DateTimeImmutable('now')
private \DateTimeImmutable $startDate = new \DateTimeImmutable('now'),
) {
}

View File

@@ -65,7 +65,7 @@ class AccompanyingPeriodParticipation
*
* @Groups({"read", "docgen:read"})
*/
private ?Person $person
private ?Person $person,
) {
$this->startDate = new \DateTime('now');
$person->getAccompanyingPeriodParticipations()->add($this);

View File

@@ -739,7 +739,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
*/
public function getAccompanyingPeriodInvolved(
bool $asParticipantOpen = true,
bool $asRequestor = true
bool $asRequestor = true,
): Collection {
$result = new ArrayCollection();
@@ -766,7 +766,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
public function countAccompanyingPeriodInvolved(
bool $asParticipantOpen = true,
bool $asRequestor = true
bool $asRequestor = true,
): int {
// TODO should be optimized to avoid loading accompanying period ?
return $this->getAccompanyingPeriodInvolved($asParticipantOpen, $asRequestor)

View File

@@ -58,7 +58,7 @@ class PersonCenterHistory implements TrackCreationInterface, TrackUpdateInterfac
/**
* @ORM\Column(type="date_immutable", nullable=false)
*/
private ?\DateTimeImmutable $startDate = null
private ?\DateTimeImmutable $startDate = null,
) {
}

View File

@@ -436,7 +436,7 @@ class SocialAction
return match ($actions instanceof ReadableCollection) {
true => $actions->filter($filterFn),
false => array_filter($actions, $filterFn)
false => array_filter($actions, $filterFn),
};
}
}