Code Duplication    Length = 13-13 lines in 2 locations

Provider/FileProvider.php 2 locations

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