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

@@ -13,13 +13,13 @@ namespace Chill\BudgetBundle\Entity;
use Chill\MainBundle\Entity\HasCentersInterface;
use Chill\PersonBundle\Entity\Person;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
/**
* Charge.
*
* @ORM\Table(name="chill_budget.charge")
*
* @ORM\Entity(repositoryClass="Chill\BudgetBundle\Repository\ChargeRepository")
*/
class Charge extends AbstractElement implements HasCentersInterface
@@ -41,6 +41,7 @@ class Charge extends AbstractElement implements HasCentersInterface
/**
* @ORM\ManyToOne(targetEntity=ChargeKind::class, inversedBy="AbstractElement")
*
* @ORM\JoinColumn
*/
private ?ChargeKind $charge = null;
@@ -52,14 +53,16 @@ class Charge extends AbstractElement implements HasCentersInterface
/**
* @ORM\Column(name="id", type="integer")
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private ?int $id = null;
public function __construct()
{
$this->setStartDate(new DateTimeImmutable('today'));
$this->setStartDate(new \DateTimeImmutable('today'));
}
public function getCenters(): array