Code Duplication    Length = 10-10 lines in 2 locations

lib/Filter/NumberFilter.php 1 location

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

lib/Filter/StringFilter.php 1 location

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