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

@@ -16,7 +16,6 @@ use Chill\MainBundle\Doctrine\Model\TrackCreationInterface;
use Chill\MainBundle\Doctrine\Model\TrackCreationTrait;
use Chill\MainBundle\Doctrine\Model\TrackUpdateInterface;
use Chill\MainBundle\Doctrine\Model\TrackUpdateTrait;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
@@ -24,13 +23,16 @@ use Symfony\Component\Serializer\Annotation\Groups;
* PostalCode.
*
* @ORM\Entity
*
* @ORM\Table(
* name="chill_main_postal_code",
* uniqueConstraints={
*
* @ORM\UniqueConstraint(name="postal_code_import_unicity", columns={"code", "refpostalcodeid", "postalcodesource"},
* options={"where": "refpostalcodeid is not null"})
* },
* indexes={
*
* @ORM\Index(name="search_name_code", columns={"code", "label"}),
* @ORM\Index(name="search_by_reference_code", columns={"code", "refpostalcodeid"})
* })
@@ -53,23 +55,22 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
private string $canonical = '';
/**
*
* @ORM\Column(type="point", nullable=true)
*
* @groups({"read"})
*/
private ?\Chill\MainBundle\Doctrine\Model\Point $center = null;
/**
* @var string
*
* @ORM\Column(type="string", length=100)
*
* @groups({"write", "read"})
*/
private ?string $code = null;
/**
*
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Country")
*
* @groups({"write", "read"})
*/
private ?\Chill\MainBundle\Entity\Country $country = null;
@@ -77,43 +78,43 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* @ORM\Column(type="datetime_immutable", nullable=true, options={"default": null})
*/
private ?DateTimeImmutable $deletedAt = null;
private ?\DateTimeImmutable $deletedAt = null;
/**
* @var int
*
* @ORM\Id
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @groups({"write", "read"})
*/
private ?int $id = null;
/**
* @var string
*
* @ORM\Column(type="string", length=255, name="label")
*
* @groups({"write", "read"})
*/
private ?string $name = null;
/**
*
* @ORM\Column(name="origin", type="integer", nullable=true)
*
* @groups({"write", "read"})
*/
private int $origin = 0;
/**
*
* @ORM\Column(type="string", length=255, nullable=true)
*
* @groups({"read"})
*/
private ?string $postalCodeSource = null;
/**
*
* @ORM\Column(type="string", length=255, nullable=true)
*
* @groups({"read"})
*/
private ?string $refPostalCodeId = null;
@@ -207,11 +208,9 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* Set country.
*
* @param Country $country
*
* @return PostalCode
*/
public function setCountry(?Country $country = null)
public function setCountry(Country $country = null)
{
$this->country = $country;