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

@@ -56,23 +56,20 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* @ORM\Column(type="point", nullable=true)
*
* @groups({"read"})
*/
#[Groups(['read'])]
private ?Point $center = null;
/**
* @ORM\Column(type="string", length=100)
*
* @groups({"write", "read"})
*/
#[Groups(['write', 'read'])]
private ?string $code = null;
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Country")
*
* @groups({"write", "read"})
*/
#[Groups(['write', 'read'])]
private ?Country $country = null;
/**
@@ -86,37 +83,32 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @groups({"write", "read"})
*/
#[Groups(['write', 'read'])]
private ?int $id = null;
/**
* @ORM\Column(type="string", length=255, name="label")
*
* @groups({"write", "read"})
*/
#[Groups(['write', 'read'])]
private ?string $name = null;
/**
* @ORM\Column(name="origin", type="integer", nullable=true)
*
* @groups({"write", "read"})
*/
#[Groups(['write', 'read'])]
private int $origin = 0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @groups({"read"})
*/
#[Groups(['read'])]
private ?string $postalCodeSource = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @groups({"read"})
*/
#[Groups(['read'])]
private ?string $refPostalCodeId = null;
public function getCenter(): ?Point