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

@@ -17,14 +17,18 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ORM\Table(name="role_scopes")
*
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region")
*/
class RoleScope
{
/**
* @ORM\Id
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private ?int $id = null;
@@ -47,7 +51,9 @@ class RoleScope
* @ORM\ManyToOne(
* targetEntity="Chill\MainBundle\Entity\Scope",
* inversedBy="roleScopes")
*
* @ORM\JoinColumn(nullable=true, name="scope_id")
*
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
*/
private ?Scope $scope = null;
@@ -72,14 +78,14 @@ class RoleScope
return $this->scope;
}
public function setRole(?string $role = null): self
public function setRole(string $role = null): self
{
$this->role = $role;
return $this;
}
public function setScope(?Scope $scope = null): self
public function setScope(Scope $scope = null): self
{
$this->scope = $scope;