@@ -86,7 +86,7 @@ public function __construct(
8686 private FileManager $ fileManager ,
8787 private FormTypeRenderer $ formTypeRenderer ,
8888 private RouterInterface $ router ,
89- private DoctrineHelper $ doctrineHelper
89+ private DoctrineHelper $ doctrineHelper,
9090 ) {
9191 }
9292
@@ -537,33 +537,33 @@ private function generateFormClass(ClassNameDetails $userClassDetails, Generator
537537 'agreeTerms ' => [
538538 'type ' => CheckboxType::class,
539539 'options_code ' => <<<EOF
540- 'mapped' => false,
541- 'constraints' => [
542- new IsTrue([
543- 'message' => 'You should agree to our terms.',
544- ]),
545- ],
546- EOF
540+ 'mapped' => false,
541+ 'constraints' => [
542+ new IsTrue([
543+ 'message' => 'You should agree to our terms.',
544+ ]),
545+ ],
546+ EOF
547547 ],
548548 'plainPassword ' => [
549549 'type ' => PasswordType::class,
550550 'options_code ' => <<<EOF
551- // instead of being set onto the object directly,
552- // this is read and encoded in the controller
553- 'mapped' => false,
554- 'attr' => ['autocomplete' => 'new-password'],
555- 'constraints' => [
556- new NotBlank([
557- 'message' => 'Please enter a password',
558- ]),
559- new Length([
560- 'min' => 6,
561- 'minMessage' => 'Your password should be at least {{ limit }} characters',
562- // max length allowed by Symfony for security reasons
563- 'max' => 4096,
564- ]),
565- ],
566- EOF
551+ // instead of being set onto the object directly,
552+ // this is read and encoded in the controller
553+ 'mapped' => false,
554+ 'attr' => ['autocomplete' => 'new-password'],
555+ 'constraints' => [
556+ new NotBlank([
557+ 'message' => 'Please enter a password',
558+ ]),
559+ new Length([
560+ 'min' => 6,
561+ 'minMessage' => 'Your password should be at least {{ limit }} characters',
562+ // max length allowed by Symfony for security reasons
563+ 'max' => 4096,
564+ ]),
565+ ],
566+ EOF
567567 ],
568568 ];
569569
0 commit comments