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

@@ -20,8 +20,11 @@ use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
*
* @ORM\Table(name="scopes")
*
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region")
*
* @DiscriminatorMap(typeProperty="type", mapping={
* "scope": Scope::class
* })
@@ -35,8 +38,11 @@ class Scope
/**
* @ORM\Id
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"read", "docgen:read"})
*/
private ?int $id = null;
@@ -45,7 +51,9 @@ class Scope
* translatable names.
*
* @ORM\Column(type="json")
*
* @Groups({"read", "docgen:read"})
*
* @Context({"is-translatable": true}, groups={"docgen:read"})
*/
private array $name = [];
@@ -56,6 +64,7 @@ class Scope
* @ORM\OneToMany(
* targetEntity="Chill\MainBundle\Entity\RoleScope",
* mappedBy="scope")
*
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
*/
private Collection $roleScopes;
@@ -75,9 +84,6 @@ class Scope
return $this;
}
/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
@@ -106,8 +112,6 @@ class Scope
}
/**
* @param $name
*
* @return $this
*/
public function setName(array $name): self