mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
csfixes
This commit is contained in:
parent
25fe105590
commit
1c21b80703
@ -35,6 +35,7 @@ use Symfony\Component\Security\Core\User\UserInterface;
|
|||||||
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
|
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
|
||||||
use Symfony\Component\Serializer\Annotation\Groups;
|
use Symfony\Component\Serializer\Annotation\Groups;
|
||||||
use Symfony\Component\Serializer\Annotation\SerializedName;
|
use Symfony\Component\Serializer\Annotation\SerializedName;
|
||||||
|
use function count;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Activity.
|
* Class Activity.
|
||||||
@ -231,9 +232,10 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
|||||||
{
|
{
|
||||||
$descendants = $socialAction->getDescendants();
|
$descendants = $socialAction->getDescendants();
|
||||||
|
|
||||||
if(count($descendants) > 0) {
|
if (count($descendants) > 0) {
|
||||||
foreach ($descendants as $d) {
|
foreach ($descendants as $d) {
|
||||||
$inCollection = $this->socialActions->contains($d);
|
$inCollection = $this->socialActions->contains($d);
|
||||||
|
|
||||||
if ($inCollection) {
|
if ($inCollection) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -241,7 +243,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
|||||||
} else {
|
} else {
|
||||||
if (!$this->socialActions->contains($socialAction)) {
|
if (!$this->socialActions->contains($socialAction)) {
|
||||||
$this->socialActions[] = $socialAction;
|
$this->socialActions[] = $socialAction;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -251,9 +253,10 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
|||||||
{
|
{
|
||||||
$descendants = $socialIssue->getDescendants();
|
$descendants = $socialIssue->getDescendants();
|
||||||
|
|
||||||
if(count($descendants) > 0) {
|
if (count($descendants) > 0) {
|
||||||
foreach ($descendants as $d) {
|
foreach ($descendants as $d) {
|
||||||
$inCollection = $this->socialIssues->contains($d);
|
$inCollection = $this->socialIssues->contains($d);
|
||||||
|
|
||||||
if ($inCollection) {
|
if ($inCollection) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -261,7 +264,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
|||||||
} else {
|
} else {
|
||||||
if (!$this->socialIssues->contains($socialIssue)) {
|
if (!$this->socialIssues->contains($socialIssue)) {
|
||||||
$this->socialIssues[] = $socialIssue;
|
$this->socialIssues[] = $socialIssue;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user