Code Duplication    Length = 10-10 lines in 2 locations

lib/Filter/NumberFilter.php 1 location

@@ 38-47 (lines=10) @@
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function buildForm(FormBuilderInterface $builder, array $options)
39
    {
40
        $builder->add('comparator', ChoiceType::class, [
41
            'choices' => $this->getChoices(
42
                $options['capabilities']->getSupportedComparators(),
43
                $options['comparators']
44
            )
45
        ]);
46
        $builder->add('value', NumberType::class);
47
    }
48
49
    /**
50
     * {@inheritdoc}

lib/Filter/StringFilter.php 1 location

@@ 50-59 (lines=10) @@
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function buildForm(FormBuilderInterface $builder, array $options)
51
    {
52
        $builder->add('comparator', ChoiceType::class, [
53
            'choices' => $this->getChoices(
54
                $options['capabilities']->getSupportedComparators(),
55
                $options['comparators']
56
            )
57
        ]);
58
        $builder->add('value', TextType::class);
59
    }
60
61
    /**
62
     * {@inheritdoc}