Code Duplication    Length = 21-21 lines in 2 locations

src/Surfnet/StepupRa/RaBundle/Form/Type/RemoveRaLocationType.php 1 location

@@ 26-46 (lines=21) @@
23
use Symfony\Component\Form\FormBuilderInterface;
24
use Symfony\Component\OptionsResolver\OptionsResolver;
25
26
class RemoveRaLocationType extends AbstractType
27
{
28
    public function buildForm(FormBuilderInterface $builder, array $options)
29
    {
30
        $builder
31
            ->add('locationId', HiddenType::class)
32
            ->add('institution', HiddenType::class);
33
    }
34
35
    public function configureOptions(OptionsResolver $resolver)
36
    {
37
        $resolver->setDefaults([
38
            'data_class' => 'Surfnet\StepupRa\RaBundle\Command\RemoveRaLocationCommand',
39
        ]);
40
    }
41
42
    public function getBlockPrefix()
43
    {
44
        return 'ra_remove_ra_location';
45
    }
46
}
47

src/Surfnet/StepupRa/RaBundle/Form/Type/RevokeSecondFactorType.php 1 location

@@ 26-46 (lines=21) @@
23
use Symfony\Component\Form\FormBuilderInterface;
24
use Symfony\Component\OptionsResolver\OptionsResolver;
25
26
class RevokeSecondFactorType extends AbstractType
27
{
28
    public function buildForm(FormBuilderInterface $builder, array $options)
29
    {
30
        $builder
31
            ->add('secondFactorId', HiddenType::class)
32
            ->add('identityId', HiddenType::class);
33
    }
34
35
    public function configureOptions(OptionsResolver $resolver)
36
    {
37
        $resolver->setDefaults([
38
            'data_class' => 'Surfnet\StepupRa\RaBundle\Command\RevokeSecondFactorCommand',
39
        ]);
40
    }
41
42
    public function getBlockPrefix()
43
    {
44
        return 'ra_revoke_second_factor';
45
    }
46
}
47