fix: SonarQube - DomainEmailSyncListener suppression params event inutilises
Doctrine entity listeners n'exigent pas le second parametre EventArgs. Suppression des 3 params $_event et des imports associes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,9 +5,6 @@ namespace App\EventListener;
|
||||
use App\Entity\DomainEmail;
|
||||
use App\Service\EsyMailService;
|
||||
use Doctrine\Bundle\DoctrineBundle\Attribute\AsEntityListener;
|
||||
use Doctrine\ORM\Event\PostPersistEventArgs;
|
||||
use Doctrine\ORM\Event\PostRemoveEventArgs;
|
||||
use Doctrine\ORM\Event\PostUpdateEventArgs;
|
||||
use Doctrine\ORM\Events;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
@@ -22,7 +19,7 @@ class DomainEmailSyncListener
|
||||
) {
|
||||
}
|
||||
|
||||
public function postPersist(DomainEmail $email, PostPersistEventArgs $_event): void
|
||||
public function postPersist(DomainEmail $email): void
|
||||
{
|
||||
if (!$this->esyMail->isAvailable()) {
|
||||
return;
|
||||
@@ -42,7 +39,7 @@ class DomainEmailSyncListener
|
||||
}
|
||||
}
|
||||
|
||||
public function postUpdate(DomainEmail $email, PostUpdateEventArgs $_event): void
|
||||
public function postUpdate(DomainEmail $email): void
|
||||
{
|
||||
if (!$this->esyMail->isAvailable()) {
|
||||
return;
|
||||
@@ -58,7 +55,7 @@ class DomainEmailSyncListener
|
||||
$this->logger->info('EsyMail sync: boite mise a jour '.$fullEmail);
|
||||
}
|
||||
|
||||
public function postRemove(DomainEmail $email, PostRemoveEventArgs $_event): void
|
||||
public function postRemove(DomainEmail $email): void
|
||||
{
|
||||
if (!$this->esyMail->isAvailable()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user