Apply rector rules: symfony up to 54

This commit is contained in:
2024-04-04 23:30:25 +02:00
parent 1ee3b9e2f0
commit 579bd829f8
204 changed files with 974 additions and 2346 deletions

View File

@@ -57,60 +57,52 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\ManyToOne(targetEntity=AddressReference::class)
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private ?AddressReference $addressReference = null;
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $buildingName = '';
/**
* @ORM\Column(type="boolean", options={"default": false})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private bool $confidential = false;
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $corridor = '';
/**
* used for the CEDEX information.
*
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $distribution = '';
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $extra = '';
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $flat = '';
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $floor = '';
/**
@@ -140,19 +132,17 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"write"})
*
* @readonly
*/
#[Groups(['write'])]
private ?int $id = null;
/**
* True if the address is a "no address", aka homeless person, ...
*
* @Groups({"write"})
*
* @ORM\Column(type="boolean", options={"default": false})
*/
#[Groups(['write'])]
private bool $isNoAddress = false;
/**
@@ -160,28 +150,25 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
*
* @ORM\ManyToOne(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
*
* @Groups({"write"})
*
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
*/
#[Groups(['write'])]
private ?ThirdParty $linkedToThirdParty = null;
/**
* A geospatial field storing the coordinates of the Address.
*
* @ORM\Column(type="point", nullable=true)
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private ?Point $point = null;
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\PostalCode")
*
* @ORM\JoinColumn(nullable=false)
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private ?PostalCode $postcode = null;
/**
@@ -198,23 +185,20 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $steps = '';
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $street = '';
/**
* @ORM\Column(type="text", nullable=false, options={"default": ""})
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private string $streetNumber = '';
/**
@@ -222,9 +206,8 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
* of address. By default, the current date.
*
* @ORM\Column(type="date")
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private \DateTime $validFrom;
/**
@@ -232,9 +215,8 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
* of address.
*
* @ORM\Column(type="date", nullable=true)
*
* @Groups({"write"})
*/
#[Groups(['write'])]
private ?\DateTime $validTo = null;
public function __construct()