mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -38,9 +38,11 @@ class LocationValidityValidator extends ConstraintValidator
|
||||
}
|
||||
|
||||
if ($period->getLocationStatus() === 'person') {
|
||||
if (null === $period->getOpenParticipationContainsPerson(
|
||||
$period->getPersonLocation()
|
||||
)) {
|
||||
if (
|
||||
null === $period->getOpenParticipationContainsPerson(
|
||||
$period->getPersonLocation()
|
||||
)
|
||||
) {
|
||||
$this->context->buildViolation($constraint->messagePersonLocatedMustBeAssociated)
|
||||
->setParameter('{{ person_name }}', $this->render->renderString(
|
||||
$period->getPersonLocation(),
|
||||
@@ -50,8 +52,10 @@ class LocationValidityValidator extends ConstraintValidator
|
||||
}
|
||||
}
|
||||
|
||||
if ($period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
||||
&& $period->getLocationStatus() === 'none') {
|
||||
if (
|
||||
$period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
||||
&& $period->getLocationStatus() === 'none'
|
||||
) {
|
||||
$this->context
|
||||
->buildViolation(
|
||||
$constraint->messagePeriodMustRemainsLocated
|
||||
|
Reference in New Issue
Block a user