DX: fix cs

This commit is contained in:
2023-04-19 13:05:21 +02:00
parent 906d1fdab5
commit e6163b2bc3
6 changed files with 4 additions and 5 deletions

View File

@@ -70,7 +70,8 @@ class ScopePickerType extends AbstractType
static function (Scope $s) {
return $s->isActive();
}
));
)
);
if (0 === count($items)) {
throw new RuntimeException('no scopes are reachable. This form should not be shown to user');

View File

@@ -247,7 +247,7 @@ class WorkflowStepType extends AbstractType
function ($step, ExecutionContextInterface $context, $payload) {
$form = $context->getObject();
foreach($form->get('future_dest_users')->getData() as $u) {
foreach ($form->get('future_dest_users')->getData() as $u) {
if (in_array($u, $form->get('future_cc_users')->getData(), true)) {
$context
->buildViolation('workflow.The user in cc cannot be a dest user in the same workflow step')