Commit 42119226 by Damien Moulard

Apply php-cs-fixer to entities touched by the mapping fixes

Formatting only, no behavior change.
parent fe2b789e
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace App\Entity; namespace App\Entity;
use App\Repository\AllocationRepository; use App\Repository\AllocationRepository;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/** /**
* @ORM\Entity(repositoryClass=AllocationRepository::class) * @ORM\Entity(repositoryClass=AllocationRepository::class)
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
namespace App\Entity; namespace App\Entity;
use App\Repository\PrestataireProductFamilyRepository;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
/** /**
...@@ -39,7 +37,6 @@ class DependentChild ...@@ -39,7 +37,6 @@ class DependentChild
*/ */
protected $sharedCustodyPercentage; protected $sharedCustodyPercentage;
public function getId(): ?int public function getId(): ?int
{ {
return $this->id; return $this->id;
......
...@@ -108,18 +108,17 @@ class ExternalAdherentDatedData ...@@ -108,18 +108,17 @@ class ExternalAdherentDatedData
public function __toString(): string public function __toString(): string
{ {
$incomes = []; $incomes = [];
if ($this->getMonthlyIncome() != null) { if (null != $this->getMonthlyIncome()) {
$incomes[] = "mensuels : " . $this->getMonthlyIncome() . "€"; $incomes[] = 'mensuels : ' . $this->getMonthlyIncome() . '€';
} }
if ($this->getAnnualIncome() != null) { if (null != $this->getAnnualIncome()) {
$incomes[] = "annuels : " . $this->getAnnualIncome() . "€"; $incomes[] = 'annuels : ' . $this->getAnnualIncome() . '€';
} }
if (count($incomes) > 0) { if (count($incomes) > 0) {
return "Année " . $this->getYear() . " : Revenus " . join(" / ", $incomes); return 'Année ' . $this->getYear() . ' : Revenus ' . join(' / ', $incomes);
} else { } else {
return ""; return '';
} }
} }
} }
...@@ -2,14 +2,12 @@ ...@@ -2,14 +2,12 @@
namespace App\Entity; namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity; use Gedmo\Timestampable\Traits\TimestampableEntity;
use Ramsey\Uuid\Doctrine\UuidGenerator; use Ramsey\Uuid\Doctrine\UuidGenerator;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
/** /**
* @ORM\Entity(repositoryClass="App\Repository\ProfilDeCotisationRepository") * @ORM\Entity(repositoryClass="App\Repository\ProfilDeCotisationRepository")
* @ORM\HasLifecycleCallbacks() * @ORM\HasLifecycleCallbacks()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment