Code Duplication    Length = 13-13 lines in 2 locations

Provider/FileProvider.php 2 locations

@@ 118-130 (lines=13) @@
115
     * @param string $label
116
     * @param array $options
117
     */
118
    public function addFileField(FormMapper $formMapper, $name, $label, $options = [])
119
    {
120
        $this->doAddFileField(
121
            $formMapper,
122
            $name,
123
            $label,
124
            false,
125
            [
126
                new Constraint\File($this->getFileConstraintOptions($options)),
127
                new Constraint\Callback([$this, 'validateExtension']),
128
            ]
129
        );
130
    }
131
132
    /**
133
     * @param FormMapper $formMapper
@@ 138-150 (lines=13) @@
135
     * @param string $label
136
     * @param array $options
137
     */
138
    public function addRequiredFileField(FormMapper $formMapper, $name, $label, $options = [])
139
    {
140
        $this->doAddFileField(
141
            $formMapper,
142
            $name,
143
            $label,
144
            true,
145
            [
146
                new Constraint\File($this->getFileConstraintOptions($options)),
147
                new Constraint\Callback([$this, 'validateExtension']),
148
            ]
149
        );
150
    }
151
152
    /**
153
     * @param array $options