chore: reformat code

This commit is contained in:
Maël Gangloff
2024-07-11 22:22:59 +02:00
parent 6aad09297f
commit a691659cca
5 changed files with 8 additions and 10 deletions

View File

@@ -49,8 +49,8 @@ class Domain
*/
#[ORM\ManyToMany(targetEntity: Nameserver::class, inversedBy: 'domains')]
#[ORM\JoinTable(name: 'domain_nameservers',
joinColumns: [new ORM\JoinColumn(name: 'domain_handle', referencedColumnName: 'handle'), new ORM\JoinColumn(name: 'domain_ldh_name', referencedColumnName: 'ldh_name')],
inverseJoinColumns: [new ORM\JoinColumn(name: 'nameserver_handle', referencedColumnName: 'handle')]
joinColumns: [new ORM\JoinColumn(name: 'domain_handle', referencedColumnName: 'handle'), new ORM\JoinColumn(name: 'domain_ldh_name', referencedColumnName: 'ldh_name')],
inverseJoinColumns: [new ORM\JoinColumn(name: 'nameserver_handle', referencedColumnName: 'handle')]
)]
private Collection $nameservers;

View File

@@ -5,7 +5,6 @@ namespace App\Entity;
use App\Repository\EntityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EntityRepository::class)]

View File

@@ -2,7 +2,6 @@
namespace App\Entity;
use App\Config\EventAction;
use App\Repository\EntityEventRepository;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -3,7 +3,7 @@
namespace App\Entity;
use App\Config\EventAction;
use App\Repository\EntityEventRepository;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
#[ORM\MappedSuperclass]
@@ -18,7 +18,7 @@ class Event
private ?EventAction $action = null;
#[ORM\Column]
private ?\DateTimeImmutable $date = null;
private ?DateTimeImmutable $date = null;
public function getId(): ?int
@@ -38,12 +38,12 @@ class Event
return $this;
}
public function getDate(): ?\DateTimeImmutable
public function getDate(): ?DateTimeImmutable
{
return $this->date;
}
public function setDate(\DateTimeImmutable $date): static
public function setDate(DateTimeImmutable $date): static
{
$this->date = $date;

View File

@@ -68,13 +68,13 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
*/
public function getUserIdentifier(): string
{
return (string) $this->email;
return (string)$this->email;
}
/**
* @return list<string>
* @see UserInterface
*
* @return list<string>
*/
public function getRoles(): array
{