mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs fixer
This commit is contained in:
@@ -230,7 +230,6 @@ class SocialAction
|
||||
|
||||
/**
|
||||
* @param Collection|SocialAction[] $socialActions
|
||||
* @return Collection
|
||||
*/
|
||||
public static function getDescendantsWithThisForActions($socialActions): Collection
|
||||
{
|
||||
@@ -291,16 +290,16 @@ class SocialAction
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function hasParent(): bool
|
||||
{
|
||||
return $this->getParent() instanceof self;
|
||||
}
|
||||
|
||||
public function hasChildren(): bool
|
||||
{
|
||||
return 0 < $this->getChildren()->count();
|
||||
}
|
||||
|
||||
public function hasParent(): bool
|
||||
{
|
||||
return $this->getParent() instanceof self;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursive method which return true if the current $action
|
||||
* is a descendant of the $action given in parameter.
|
||||
|
@@ -73,7 +73,9 @@ class SocialIssue
|
||||
|
||||
/**
|
||||
* @internal use @see{SocialIssue::setParent} instead
|
||||
*
|
||||
* @param SocialIssue $child
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function addChild(self $child): self
|
||||
@@ -221,7 +223,6 @@ class SocialIssue
|
||||
|
||||
/**
|
||||
* @param array|SocialIssue[] $socialIssues
|
||||
* @return Collection
|
||||
*/
|
||||
public static function getDescendantsWithThisForIssues(array $socialIssues): Collection
|
||||
{
|
||||
@@ -283,16 +284,16 @@ class SocialIssue
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function hasParent(): bool
|
||||
{
|
||||
return null !== $this->parent;
|
||||
}
|
||||
|
||||
public function hasChildren(): bool
|
||||
{
|
||||
return 0 < $this->getChildren()->count();
|
||||
}
|
||||
|
||||
public function hasParent(): bool
|
||||
{
|
||||
return null !== $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursive method which return true if the current $issue is a descendant
|
||||
* of the $issue given in parameter.
|
||||
|
Reference in New Issue
Block a user