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

@@ -19,7 +19,9 @@ use Symfony\Component\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
*
* @ORM\Table(name="chill_person_social_work_evaluation")
*
* @Serializer\DiscriminatorMap(typeProperty="type", mapping={
* "social_work_evaluation": Evaluation::class
* })
@@ -33,26 +35,32 @@ class Evaluation
/**
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
*
* @Serializer\Groups({"read"})
*/
private ?DateInterval $delay = null;
private ?\DateInterval $delay = null;
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*
* @Serializer\Groups({"read", "docgen:read"})
*/
private ?int $id = null;
/**
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
*
* @Serializer\Groups({"read"})
*/
private ?DateInterval $notificationDelay = null;
private ?\DateInterval $notificationDelay = null;
/**
* @var Collection<SocialAction>
*
* @ORM\ManyToMany(
* targetEntity=SocialAction::class,
* mappedBy="evaluations"
@@ -62,13 +70,16 @@ class Evaluation
/**
* @ORM\Column(type="json")
*
* @Serializer\Groups({"read", "docgen:read"})
*
* @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
*/
private array $title = [];
/**
* @ORM\Column(type="text", nullable=true)
*
* @Serializer\Groups({"read", "docgen:read"})
*/
private ?string $url = null;
@@ -90,7 +101,7 @@ class Evaluation
return $this;
}
public function getDelay(): ?DateInterval
public function getDelay(): ?\DateInterval
{
return $this->delay;
}
@@ -100,7 +111,7 @@ class Evaluation
return $this->id;
}
public function getNotificationDelay(): ?DateInterval
public function getNotificationDelay(): ?\DateInterval
{
return $this->notificationDelay;
}
@@ -146,14 +157,14 @@ class Evaluation
return $this;
}
public function setDelay(?DateInterval $delay): self
public function setDelay(?\DateInterval $delay): self
{
$this->delay = $delay;
return $this;
}
public function setNotificationDelay(?DateInterval $notificationDelay): self
public function setNotificationDelay(?\DateInterval $notificationDelay): self
{
$this->notificationDelay = $notificationDelay;