php cs fixes

This commit is contained in:
Julie Lenaerts 2024-07-10 12:49:51 +02:00
parent 8a7b48b201
commit 218280304c
3 changed files with 19 additions and 15 deletions

View File

@ -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(),
]
);
}

View File

@ -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()

View File

@ -1,5 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Form;
use Chill\MainBundle\Entity\Workflow\EntityWorkflowStepSignature;
@ -7,7 +16,6 @@ use Chill\MainBundle\Form\Type\ChillDateType;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
@ -15,9 +23,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
class WorkflowSignatureMetadataType extends AbstractType
{
public function __construct(private ParameterBagInterface $parameterBag, private RequestStack $requestStack)
{
}
public function __construct(private ParameterBagInterface $parameterBag, private RequestStack $requestStack) {}
public function buildForm(FormBuilderInterface $builder, array $options)
{
@ -53,10 +59,10 @@ class WorkflowSignatureMetadataType extends AbstractType
]);
}
/* public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'data_class' => EntityWorkflowStepSignature::class,
]);
}*/
/* public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'data_class' => EntityWorkflowStepSignature::class,
]);
}*/
}