DX: fix cs

This commit is contained in:
Julien Fastré 2023-04-19 13:05:21 +02:00
parent 906d1fdab5
commit e6163b2bc3
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
6 changed files with 4 additions and 5 deletions

View File

@ -120,7 +120,6 @@ class ListActivitiesByAccompanyingPeriodContext implements
public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, $entity, array $data): array public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, $entity, array $data): array
{ {
$denormalized = $this->accompanyingPeriodContext->contextGenerationDataDenormalize($template, $entity, $data); $denormalized = $this->accompanyingPeriodContext->contextGenerationDataDenormalize($template, $entity, $data);
foreach (['myActivitiesOnly', 'myWorksOnly'] as $k) { foreach (['myActivitiesOnly', 'myWorksOnly'] as $k) {

View File

@ -107,5 +107,4 @@ class AddressToReferenceMatcherController
true true
); );
} }
} }

View File

@ -70,7 +70,8 @@ class ScopePickerType extends AbstractType
static function (Scope $s) { static function (Scope $s) {
return $s->isActive(); return $s->isActive();
} }
)); )
);
if (0 === count($items)) { if (0 === count($items)) {
throw new RuntimeException('no scopes are reachable. This form should not be shown to user'); 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) { function ($step, ExecutionContextInterface $context, $payload) {
$form = $context->getObject(); $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)) { if (in_array($u, $form->get('future_cc_users')->getData(), true)) {
$context $context
->buildViolation('workflow.The user in cc cannot be a dest user in the same workflow step') ->buildViolation('workflow.The user in cc cannot be a dest user in the same workflow step')

View File

@ -69,7 +69,6 @@ final class Version20230306145728 extends AbstractMigration
$this->addSql('CREATE INDEX IDX_165051F63174800F ON chill_main_address (createdBy_id)'); $this->addSql('CREATE INDEX IDX_165051F63174800F ON chill_main_address (createdBy_id)');
$this->addSql('CREATE INDEX IDX_165051F665FF1AEC ON chill_main_address (updatedBy_id)'); $this->addSql('CREATE INDEX IDX_165051F665FF1AEC ON chill_main_address (updatedBy_id)');
$this->addSql('COMMENT ON COLUMN chill_main_address_reference.point IS \'(DC2Type:point)\''); $this->addSql('COMMENT ON COLUMN chill_main_address_reference.point IS \'(DC2Type:point)\'');
} }
public function down(Schema $schema): void public function down(Schema $schema): void

View File

@ -685,6 +685,7 @@ final class SingleTaskController extends AbstractController
/** /**
* Creates a form to delete a Task entity by id. * Creates a form to delete a Task entity by id.
* @param mixed $id
*/ */
private function createDeleteForm($id): FormInterface private function createDeleteForm($id): FormInterface
{ {