cs: Fix code style (safe rules only).

This commit is contained in:
Pol Dellaiera
2021-11-23 14:06:38 +01:00
parent 149d7ce991
commit 8f96a1121d
1223 changed files with 65199 additions and 64625 deletions

View File

@@ -1,17 +1,23 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Entity\Relationships;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\DiscriminatorColumn;
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
use Symfony\Component\Serializer\Annotation as Serializer;
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
/**
* @ORM\Entity()
* @ORM\Entity
* @ORM\Table(name="chill_person_relations")
* @DiscriminatorMap(typeProperty="type", mapping={
* "relation"=Relation::class
* "relation": Relation::class
* })
*/
class Relation
@@ -25,10 +31,10 @@ class Relation
private ?int $id = null;
/**
* @ORM\Column(type="json", nullable=true)
* @ORM\Column(type="boolean", nullable=true)
* @Serializer\Groups({"read"})
*/
private array $title = [];
private bool $isActive = true;
/**
* @ORM\Column(type="json", nullable=true)
@@ -37,33 +43,38 @@ class Relation
private array $reverseTitle = [];
/**
* @ORM\Column(type="boolean", nullable=true)
* @ORM\Column(type="json", nullable=true)
* @Serializer\Groups({"read"})
*/
private bool $isActive = true;
private array $title = [];
public function getId(): ?int
{
return $this->id;
}
public function getIsActive(): bool
{
return $this->isActive;
}
public function getReverseTitle(): ?array
{
return $this->reverseTitle;
}
public function getTitle(): ?array
{
return $this->title;
}
public function setTitle(?array $title): self
public function setIsActive(?bool $isActive): self
{
$this->title = $title;
$this->isActive = $isActive;
return $this;
}
public function getReverseTitle(): ?array
{
return $this->reverseTitle;
}
public function setReverseTitle(?array $reverseTitle): self
{
$this->reverseTitle = $reverseTitle;
@@ -71,14 +82,9 @@ class Relation
return $this;
}
public function getIsActive(): bool
public function setTitle(?array $title): self
{
return $this->isActive;
}
public function setIsActive(?bool $isActive): self
{
$this->isActive = $isActive;
$this->title = $title;
return $this;
}