Code Duplication    Length = 13-15 lines in 3 locations

src/SprykerEco/Yves/Payone/Form/CreditCardSubForm.php 2 locations

@@ 129-141 (lines=13) @@
126
     *
127
     * @return \SprykerEco\Yves\Payone\Form\CreditCardSubForm
128
     */
129
    protected function addCardNumber(FormBuilderInterface $builder)
130
    {
131
        $builder->add(
132
            self::FIELD_CARD_NUMBER,
133
            TextType::class,
134
            [
135
                'label' => false,
136
                'required' => false,
137
            ]
138
        );
139
140
        return $this;
141
    }
142
143
    /**
144
     * @param \Symfony\Component\Form\FormBuilderInterface $builder
@@ 221-233 (lines=13) @@
218
     *
219
     * @return \SprykerEco\Yves\Payone\Form\CreditCardSubForm
220
     */
221
    protected function addCardSecurityCode(FormBuilderInterface $builder)
222
    {
223
        $builder->add(
224
            self::FIELD_CARD_SECURITY_CODE,
225
            TextType::class,
226
            [
227
                'label' => false,
228
                'required' => false,
229
            ]
230
        );
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param \Symfony\Component\Form\FormBuilderInterface $builder

src/SprykerEco/Yves/Payone/Form/DirectDebitSubForm.php 1 location

@@ 210-224 (lines=15) @@
207
     *
208
     * @return \SprykerEco\Yves\Payone\Form\DirectDebitSubForm
209
     */
210
    protected function addIBAN(FormBuilderInterface $builder)
211
    {
212
        $builder->add(
213
            self::FIELD_IBAN,
214
            TextType::class,
215
            [
216
                'label' => false,
217
                'required' => true,
218
                'constraints' => [
219
                ],
220
            ]
221
        );
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param \Symfony\Component\Form\FormBuilderInterface $builder