mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -21,6 +21,7 @@ use DateTime;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
@@ -172,15 +173,19 @@ class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterfac
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->getRole()->getType()->getId() !==
|
||||
$this->getEvent()->getType()->getId()) {
|
||||
if (
|
||||
$this->getRole()->getType()->getId() !==
|
||||
$this->getEvent()->getType()->getId()
|
||||
) {
|
||||
$context->buildViolation('The role is not allowed with this event type')
|
||||
->atPath('role')
|
||||
->addViolation();
|
||||
}
|
||||
|
||||
if ($this->getStatus()->getType()->getId() !==
|
||||
$this->getEvent()->getType()->getId()) {
|
||||
if (
|
||||
$this->getStatus()->getType()->getId() !==
|
||||
$this->getEvent()->getType()->getId()
|
||||
) {
|
||||
$context->buildViolation('The status is not allowed with this event type')
|
||||
->atPath('status')
|
||||
->addViolation();
|
||||
|
Reference in New Issue
Block a user