# Code Coverage for /home/users/tracer/www/spookie.lab.24unix.net/Spookie/src/Form/ResetPasswordRequestFormType.php

| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 0.00% covered (danger) | 0.00% | 0 / 11 | 0.00% covered (danger) | 0.00% | 0 / 2 | CRAP | 0.00% covered (danger) | 0.00% | 0 / 1
ResetPasswordRequestFormType | 0.00% covered (danger) | 0.00% | 0 / 11 | 0.00% covered (danger) | 0.00% | 0 / 2 | 6 | 0.00% covered (danger) | 0.00% | 0 / 1
buildForm | 0.00% covered (danger) | 0.00% | 0 / 10 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |
configureOptions | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |

1 | <?php
2 |
3 | namespace App\Form;
4 |
5 | use Symfony\Component\Form\AbstractType;
6 | use Symfony\Component\Form\Extension\Core\Type\EmailType;
7 | use Symfony\Component\Form\FormBuilderInterface;
8 | use Symfony\Component\OptionsResolver\OptionsResolver;
9 | use Symfony\Component\Validator\Constraints\NotBlank;
10 |
11 | class ResetPasswordRequestFormType extends AbstractType
12 | {
13 | public function buildForm(FormBuilderInterface $builder, array $options): void
14 | {
15 | $builder
16 | ->add(child: 'account', type: null, options: [
17 | 'mapped' => false,
18 | 'constraints' => [
19 | new NotBlank(options: [
20 | 'message' => 'Please enter your email or username',
21 | ]),
22 | ],
23 | ])
24 | ;
25 | }
26 |
27 | public function configureOptions(OptionsResolver $resolver): void
28 | {
29 | $resolver->setDefaults(defaults: []);
30 | }
31 | }