Code Duplication    Length = 9-9 lines in 2 locations

code/blocks/slider/models/BaseSliderItem.php 1 location

@@ 76-84 (lines=9) @@
73
     *
74
     * @return array
75
     */
76
    public function getStyles() {
77
        $types = [];
78
79
        foreach ($this->dbObject('Style')->enumValues() as $style) {
80
            $types[$style] = $this->fieldLabel($style);
81
        }
82
83
        return $types;
84
    }
85
86
    /**
87
     * @return string

code/blocks/slider/models/VideoSliderItem.php 1 location

@@ 94-102 (lines=9) @@
91
    /**
92
     * @return array
93
     */
94
    public function getSliderTypes() {
95
        $types = [];
96
97
        foreach ($this->dbObject('Type')->enumValues() as $type) {
98
            $types[$type] = $this->fieldLabel($type);
99
        }
100
101
        return $types;
102
    }
103
104
    /**
105
     * @return \FieldList