mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -32,7 +32,7 @@ class LocationValidityValidator extends ConstraintValidator
|
||||
throw new UnexpectedValueException($period, AccompanyingPeriod::class);
|
||||
}
|
||||
|
||||
if ($period->getLocationStatus() === 'person') {
|
||||
if ('person' === $period->getLocationStatus()) {
|
||||
if (
|
||||
null === $period->getOpenParticipationContainsPerson(
|
||||
$period->getPersonLocation()
|
||||
@@ -48,8 +48,8 @@ class LocationValidityValidator extends ConstraintValidator
|
||||
}
|
||||
|
||||
if (
|
||||
$period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
||||
&& $period->getLocationStatus() === 'none'
|
||||
AccompanyingPeriod::STEP_DRAFT !== $period->getStep()
|
||||
&& 'none' === $period->getLocationStatus()
|
||||
) {
|
||||
$this->context
|
||||
->buildViolation(
|
||||
|
Reference in New Issue
Block a user