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,5 +1,12 @@
<?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\CalendarBundle\Entity;
use Chill\CalendarBundle\Repository\CancelReasonRepository;
@@ -11,17 +18,11 @@ use Doctrine\ORM\Mapping as ORM;
*/
class CancelReason
{
public const CANCELEDBY_DONOTCOUNT = 'CANCELEDBY_DONOTCOUNT';
const CANCELEDBY_USER = 'CANCELEDBY_USER';
const CANCELEDBY_PERSON = 'CANCELEDBY_PERSON';
const CANCELEDBY_DONOTCOUNT = 'CANCELEDBY_DONOTCOUNT';
public const CANCELEDBY_PERSON = 'CANCELEDBY_PERSON';
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
public const CANCELEDBY_USER = 'CANCELEDBY_USER';
/**
* @ORM\Column(type="boolean")
@@ -33,19 +34,36 @@ class CancelReason
*/
private $canceledBy;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="json")
*/
private $name = [];
public function getActive(): ?bool
{
return $this->active;
}
public function getCanceledBy(): ?string
{
return $this->canceledBy;
}
public function getId(): ?int
{
return $this->id;
}
public function getActive(): ?bool
public function getName(): ?array
{
return $this->active;
return $this->name;
}
public function setActive(bool $active): self
@@ -55,11 +73,6 @@ class CancelReason
return $this;
}
public function getCanceledBy(): ?string
{
return $this->canceledBy;
}
public function setCanceledBy(string $canceledBy): self
{
$this->canceledBy = $canceledBy;
@@ -67,11 +80,6 @@ class CancelReason
return $this;
}
public function getName(): ?array
{
return $this->name;
}
public function setName(array $name): self
{
$this->name = $name;