Code Duplication    Length = 9-9 lines in 3 locations

code/blocks/slider/models/BaseSliderItem.php 2 locations

@@ 61-69 (lines=9) @@
58
     *
59
     * @return array
60
     */
61
    public function getVerticallyTypes() {
62
        $types = [];
63
64
        foreach ($this->dbObject('AlignY')->enumValues() as $alignType) {
65
            $types[$alignType] = $this->fieldLabel($alignType);
66
        }
67
68
        return $types;
69
    }
70
71
    /**
72
     * Get localized types
@@ 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

@@ 110-118 (lines=9) @@
107
    /**
108
     * @return array
109
     */
110
    public function getSliderTypes() {
111
        $types = [];
112
113
        foreach ($this->dbObject('Type')->enumValues() as $type) {
114
            $types[$type] = $this->fieldLabel($type);
115
        }
116
117
        return $types;
118
    }
119
120
    /**
121
     * @return \FieldList