This commit is contained in:
Yuri Kuznetsov
2021-04-21 14:13:08 +03:00
parent 50db978fa2
commit efd64ecded
33 changed files with 246 additions and 160 deletions
@@ -54,7 +54,7 @@ class DefaultAssignmentNotificator implements AssignmentNotificator
$this->userChecker = $userChecker;
}
public function process(Entity $entity, array $options = []) : void
public function process(Entity $entity, array $options = []): void
{
if ($entity->hasLinkMultipleField('assignedUsers')) {
$userIdList = $entity->getLinkMultipleIdList('assignedUsers');
@@ -88,7 +88,7 @@ class DefaultAssignmentNotificator implements AssignmentNotificator
$this->processForUser($entity, $assignedUserId);
}
protected function processForUser(Entity $entity, string $assignedUserId) : void
protected function processForUser(Entity $entity, string $assignedUserId): void
{
if (!$this->userChecker->checkAssignment($entity->getEntityType(), $assignedUserId)) {
return;