mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
csfixes
This commit is contained in:
parent
467ae5f474
commit
9244040d7b
@ -1258,7 +1258,6 @@ class AccompanyingPeriod implements
|
|||||||
*/
|
*/
|
||||||
public function setPinnedComment(?Comment $comment = null): self
|
public function setPinnedComment(?Comment $comment = null): self
|
||||||
{
|
{
|
||||||
|
|
||||||
if (null !== $this->pinnedComment) {
|
if (null !== $this->pinnedComment) {
|
||||||
$this->addComment($this->pinnedComment);
|
$this->addComment($this->pinnedComment);
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,10 @@ class AccompanyingPeriodCommentVoter extends Voter
|
|||||||
switch ($attribute) {
|
switch ($attribute) {
|
||||||
case self::EDIT:
|
case self::EDIT:
|
||||||
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
|
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
|
||||||
|
|
||||||
case self::DELETE:
|
case self::DELETE:
|
||||||
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
|
return $this->security->isGranted(AccompanyingPeriodVoter::EDIT, $subject->getAccompanyingPeriod());
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new UnexpectedValueException("This attribute {$attribute} is not supported");
|
throw new UnexpectedValueException("This attribute {$attribute} is not supported");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user