mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-12 17:07:45 +00:00
phpstan boolean corrections
This commit is contained in:
@@ -608,7 +608,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
*/
|
||||
public function containsAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod): bool
|
||||
{
|
||||
return ($this->participationsContainAccompanyingPeriod($accompanyingPeriod)) ? false : true;
|
||||
return null === $this->participationsContainAccompanyingPeriod($accompanyingPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1428,7 +1428,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
{
|
||||
$participation = $this->participationsContainAccompanyingPeriod($accompanyingPeriod);
|
||||
|
||||
if (!null === $participation) {
|
||||
if (null !== $participation) {
|
||||
$participation->setEndDate(new \DateTime());
|
||||
$this->accompanyingPeriodParticipations->removeElement($participation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user