Code Duplication    Length = 13-13 lines in 2 locations

Provider/FileProvider.php 2 locations

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