apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -33,22 +33,19 @@ use Traversable;
class Event implements HasCenterInterface, HasScopeInterface
{
/**
* @var Center
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Center")
*/
private $center;
private ?\Chill\MainBundle\Entity\Center $center = null;
/**
* @var Scope
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
*/
private $circle;
private ?\Chill\MainBundle\Entity\Scope $circle = null;
/**
* @var DateTime
* @ORM\Column(type="datetime")
*/
private $date;
private ?\DateTime $date = null;
/**
* @var int
@@ -80,10 +77,9 @@ class Event implements HasCenterInterface, HasScopeInterface
private Collection $participations;
/**
* @var EventType
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\EventType")
*/
private $type;
private ?\Chill\EventBundle\Entity\EventType $type = null;
/**
* Event constructor.

View File

@@ -35,12 +35,11 @@ use function in_array;
class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterface
{
/**
* @var Event
* @ORM\ManyToOne(
* targetEntity="Chill\EventBundle\Entity\Event",
* inversedBy="participations")
*/
private $event;
private ?\Chill\EventBundle\Entity\Event $event = null;
/**
* @var int
@@ -52,28 +51,24 @@ class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterfac
private $id;
/**
* @var DateTime
* @ORM\Column(type="datetime")
*/
private $lastUpdate;
private ?\DateTime $lastUpdate = null;
/**
* @var Person
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*/
private $person;
private ?\Chill\PersonBundle\Entity\Person $person = null;
/**
* @var Role
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Role")
*/
private $role;
private ?\Chill\EventBundle\Entity\Role $role = null;
/**
* @var Status
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Status")
*/
private $status;
private ?\Chill\EventBundle\Entity\Status $status = null;
/**
* @return Center

View File

@@ -44,12 +44,11 @@ class Role
private $name;
/**
* @var EventType
* @ORM\ManyToOne(
* targetEntity="Chill\EventBundle\Entity\EventType",
* inversedBy="roles")
*/
private $type;
private ?\Chill\EventBundle\Entity\EventType $type = null;
/**
* Get active.

View File

@@ -44,12 +44,11 @@ class Status
private $name;
/**
* @var EventType
* @ORM\ManyToOne(
* targetEntity="Chill\EventBundle\Entity\EventType",
* inversedBy="statuses")
*/
private $type;
private ?\Chill\EventBundle\Entity\EventType $type = null;
/**
* Get active.