apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -13,7 +13,6 @@ namespace Chill\PersonBundle\Entity\Person;
use Chill\MainBundle\Entity\Address;
use Chill\PersonBundle\Entity\Person;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
/**
@@ -26,6 +25,7 @@ use Doctrine\ORM\Mapping as ORM;
* household membership and address validity. See @see{PersonHouseholdAddress}
*
* @ORM\Entity(readOnly=true)
*
* @ORM\Table("view_chill_person_current_address")
*/
class PersonCurrentAddress
@@ -37,7 +37,9 @@ class PersonCurrentAddress
/**
* @ORM\Id
*
* @ORM\OneToOne(targetEntity=Person::class, inversedBy="currentPersonAddress")
*
* @ORM\JoinColumn(name="person_id", referencedColumnName="id")
*/
protected Person $person;
@@ -45,12 +47,12 @@ class PersonCurrentAddress
/**
* @ORM\Column(name="valid_from", type="date_immutable")
*/
protected DateTimeImmutable $validFrom;
protected \DateTimeImmutable $validFrom;
/**
* @ORM\Column(name="valid_to", type="date_immutable")
*/
protected ?DateTimeImmutable $validTo = null;
protected ?\DateTimeImmutable $validTo = null;
public function getAddress(): Address
{
@@ -66,7 +68,7 @@ class PersonCurrentAddress
* This date is the intersection of household membership
* and address validity.
*/
public function getValidFrom(): DateTimeImmutable
public function getValidFrom(): \DateTimeImmutable
{
return $this->validFrom;
}
@@ -75,7 +77,7 @@ class PersonCurrentAddress
* This date is the intersection of household membership
* and address validity.
*/
public function getValidTo(): ?DateTimeImmutable
public function getValidTo(): ?\DateTimeImmutable
{
return $this->validTo;
}