PHP CS Fixer updated (3.63.1 -> v3.64.0)

This commit is contained in:
2024-09-04 14:38:56 +02:00
parent 063bc2857f
commit 313fb9ffdf
302 changed files with 391 additions and 391 deletions

View File

@@ -45,7 +45,7 @@ class AccompanyingPeriodWorkReferrerHistory implements TrackCreationInterface, T
* @var \DateTimeImmutable
*/
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: false)]
private \DateTimeImmutable $startDate
private \DateTimeImmutable $startDate,
) {}
public function getId(): ?int

View File

@@ -39,7 +39,7 @@ class UserHistory implements TrackCreationInterface
#[ORM\JoinColumn(nullable: false)]
private User $user,
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: false, options: ['default' => 'now()'])]
private \DateTimeImmutable $startDate = new \DateTimeImmutable('now')
private \DateTimeImmutable $startDate = new \DateTimeImmutable('now'),
) {}
public function getAccompanyingPeriod(): AccompanyingPeriod

View File

@@ -42,7 +42,7 @@ class AccompanyingPeriodParticipation
#[ORM\JoinColumn(name: 'accompanyingperiod_id', referencedColumnName: 'id', nullable: false)]
private ?AccompanyingPeriod $accompanyingPeriod,
#[Groups(['read', 'docgen:read'])] #[ORM\ManyToOne(targetEntity: Person::class, inversedBy: 'accompanyingPeriodParticipations')] #[ORM\JoinColumn(name: 'person_id', referencedColumnName: 'id', nullable: false)]
private ?Person $person
private ?Person $person,
) {
$this->startDate = new \DateTime('now');
$person->getAccompanyingPeriodParticipations()->add($this);

View File

@@ -594,7 +594,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
*/
public function getAccompanyingPeriodInvolved(
bool $asParticipantOpen = true,
bool $asRequestor = true
bool $asRequestor = true,
): Collection {
$result = new ArrayCollection();
@@ -621,7 +621,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

@@ -44,7 +44,7 @@ class PersonCenterHistory implements TrackCreationInterface, TrackUpdateInterfac
#[ORM\ManyToOne(targetEntity: Center::class)]
private ?Center $center = null,
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: false)]
private ?\DateTimeImmutable $startDate = null
private ?\DateTimeImmutable $startDate = null,
) {}
public function getCenter(): ?Center

View File

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