Code Duplication    Length = 5-5 lines in 2 locations

core/libraries/form_sections/inputs/EE_File_Input.input.php 2 locations

@@ 38-42 (lines=5) @@
35
     */
36
    public function __construct($options = array())
37
    {
38
        if (isset($options['allowed_file_extensions'])) {
39
            $this->allowed_file_extensions = (array) $options['allowed_file_extensions'];
40
        } else {
41
            $this->allowed_file_extensions = ['csv'];
42
        }
43
        if (isset($options['allowed_mime_types'])) {
44
            $this->allowed_mime_types = (array) $options['allowed_file_extensions'];
45
        } else {
@@ 43-47 (lines=5) @@
40
        } else {
41
            $this->allowed_file_extensions = ['csv'];
42
        }
43
        if (isset($options['allowed_mime_types'])) {
44
            $this->allowed_mime_types = (array) $options['allowed_file_extensions'];
45
        } else {
46
            $this->allowed_mime_types = ['text/csv'];
47
        }
48
49
        $this->_set_display_strategy(new EE_File_Input_Display_Strategy());
50
        $this->_set_normalization_strategy(new EE_File_Normalization());