apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -25,10 +25,9 @@ class CommentEmbeddable
private ?string $comment = null;
/**
* @var DateTime
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
private ?\DateTime $date = null;
/**
* Embeddable does not support associations.

View File

@@ -29,7 +29,7 @@ class PermissionsGroup
*
* @ORM\Column(type="json")
*/
private $flags = [];
private array $flags = [];
/**
* @var Collection<GroupCenter>

View File

@@ -53,12 +53,11 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
private string $canonical = '';
/**
* @var Point
*
* @ORM\Column(type="point", nullable=true)
* @groups({"read"})
*/
private $center;
private ?\Chill\MainBundle\Doctrine\Model\Point $center = null;
/**
* @var string
@@ -69,12 +68,11 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
private $code;
/**
* @var Country
*
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Country")
* @groups({"write", "read"})
*/
private $country;
private ?\Chill\MainBundle\Entity\Country $country = null;
/**
* @ORM\Column(type="datetime_immutable", nullable=true, options={"default": null})
@@ -100,28 +98,25 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
private $name;
/**
* @var int
*
* @ORM\Column(name="origin", type="integer", nullable=true)
* @groups({"write", "read"})
*/
private $origin = 0;
private int $origin = 0;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @groups({"read"})
*/
private $postalCodeSource;
private ?string $postalCodeSource = null;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @groups({"read"})
*/
private $refPostalCodeId;
private ?string $refPostalCodeId = null;
public function getCenter(): ?Point
{