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

@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Entity\SocialWork;
use DateTimeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
@@ -20,7 +19,9 @@ use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
*
* @ORM\Table(name="chill_person_social_issue")
*
* @DiscriminatorMap(typeProperty="type", mapping={
* "social_issue": SocialIssue::class
* })
@@ -29,6 +30,7 @@ class SocialIssue
{
/**
* @var Collection<SocialIssue>
*
* @ORM\OneToMany(targetEntity=SocialIssue::class, mappedBy="parent")
*/
private Collection $children;
@@ -40,7 +42,9 @@ class SocialIssue
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*/
private ?int $id = null;
@@ -57,12 +61,14 @@ class SocialIssue
/**
* @var Collection<SocialAction>
*
* @ORM\OneToMany(targetEntity=SocialAction::class, mappedBy="issue")
*/
private Collection $socialActions;
/**
* @ORM\Column(type="json")
*
* @Groups({"read"})
*/
private array $title = [];
@@ -76,7 +82,6 @@ class SocialIssue
/**
* @internal use @see{SocialIssue::setParent} instead
*
*
* @return $this
*/
public function addChild(self $child): self
@@ -163,7 +168,7 @@ class SocialIssue
return $this->children;
}
public function getDesactivationDate(): ?DateTimeInterface
public function getDesactivationDate(): ?\DateTimeInterface
{
return $this->desactivationDate;
}
@@ -255,7 +260,7 @@ class SocialIssue
/**
* @return Collection<SocialAction> All the descendant social actions of all
* the descendants of the entity
* the descendants of the entity
*/
public function getRecursiveSocialActions(): Collection
{
@@ -336,7 +341,7 @@ class SocialIssue
return $this;
}
public function setDesactivationDate(?DateTimeInterface $desactivationDate): self
public function setDesactivationDate(?\DateTimeInterface $desactivationDate): self
{
$this->desactivationDate = $desactivationDate;