mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -30,6 +30,7 @@ class WorkflowNotificationHandler implements NotificationHandlerInterface
|
||||
public function getTemplateData(Notification $notification, array $options = []): array
|
||||
{
|
||||
$entityWorkflow = $this->entityWorkflowRepository->find($notification->getRelatedEntityId());
|
||||
|
||||
return [
|
||||
'entity_workflow' => $entityWorkflow,
|
||||
'handler' => $this->entityWorkflowManager->getHandler($entityWorkflow),
|
||||
@@ -41,7 +42,7 @@ class WorkflowNotificationHandler implements NotificationHandlerInterface
|
||||
{
|
||||
$notificationCc = false;
|
||||
|
||||
if ($notification->getRelatedEntityClass() === EntityWorkflow::class) {
|
||||
if (EntityWorkflow::class === $notification->getRelatedEntityClass()) {
|
||||
$relatedEntity = $this->entityWorkflowRepository->findOneBy(['id' => $notification->getRelatedEntityId()]);
|
||||
|
||||
if ($relatedEntity->getCurrentStepCreatedBy() !== $this->security->getUser()) {
|
||||
@@ -54,6 +55,6 @@ class WorkflowNotificationHandler implements NotificationHandlerInterface
|
||||
|
||||
public function supports(Notification $notification, array $options = []): bool
|
||||
{
|
||||
return $notification->getRelatedEntityClass() === EntityWorkflow::class;
|
||||
return EntityWorkflow::class === $notification->getRelatedEntityClass();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user