mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 13:54:59 +00:00
Upgrade of php-cs-fixer
This commit is contained in:
@@ -58,7 +58,7 @@ class AccompanyingPeriodWorkReferrerHistory implements TrackCreationInterface, T
|
||||
*
|
||||
* @ORM\Column(type="date_immutable", nullable=false)
|
||||
*/
|
||||
private \DateTimeImmutable $startDate
|
||||
private \DateTimeImmutable $startDate,
|
||||
) {
|
||||
}
|
||||
|
||||
|
@@ -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'),
|
||||
) {
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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)
|
||||
|
@@ -58,7 +58,7 @@ class PersonCenterHistory implements TrackCreationInterface, TrackUpdateInterfac
|
||||
/**
|
||||
* @ORM\Column(type="date_immutable", nullable=false)
|
||||
*/
|
||||
private ?\DateTimeImmutable $startDate = null
|
||||
private ?\DateTimeImmutable $startDate = null,
|
||||
) {
|
||||
}
|
||||
|
||||
|
@@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user