From 218280304c34f2fae2c6a0acbdda14331255beb5 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 10 Jul 2024 12:49:51 +0200 Subject: [PATCH] php cs fixes --- .../Controller/WorkflowController.php | 6 ++--- .../DependencyInjection/Configuration.php | 2 +- .../Form/WorkflowSignatureMetadataType.php | 26 ++++++++++++------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php index 44c620213..93eb24bfc 100644 --- a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php +++ b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php @@ -385,7 +385,6 @@ class WorkflowController extends AbstractController $metadataForm = $this->createForm(WorkflowSignatureMetadataType::class); $metadataForm->add('submit', SubmitType::class, ['label' => $this->translator->trans('Save')]); - $metadataForm->handleRequest($request); if ($metadataForm->isSubmitted() && $metadataForm->isValid()) { @@ -402,16 +401,15 @@ class WorkflowController extends AbstractController $this->entityManager->persist($signature); $this->entityManager->flush(); - //Todo should redirect to document for actual signing? To be adjusted still + // Todo should redirect to document for actual signing? To be adjusted still return $this->redirectToRoute('chill_main_workflow_show', ['id' => $entityWorkflow->getId()]); } - return $this->render( '@ChillMain/Workflow/_signature_metadata.html.twig', [ 'metadata_form' => $metadataForm->createView(), - 'person' => $signature->getSigner() + 'person' => $signature->getSigner(), ] ); } diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php b/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php index 542ffb343..36d3d1206 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php @@ -172,7 +172,7 @@ class Configuration implements ConfigurationInterface ->end() ->end() ->end() - ->end() //end of document types + ->end() // end of document types ->arrayNode('cruds') ->defaultValue([]) ->arrayPrototype() diff --git a/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php b/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php index 923f8da55..2f180c1f6 100644 --- a/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php +++ b/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php @@ -1,5 +1,14 @@ setDefaults([ - 'data_class' => EntityWorkflowStepSignature::class, - ]); - }*/ + /* public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + 'data_class' => EntityWorkflowStepSignature::class, + ]); + }*/ }