Code Duplication    Length = 9-9 lines in 5 locations

code/blocks/slider/models/BaseSliderItem.php 3 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
@@ 46-54 (lines=9) @@
43
     *
44
     * @return array
45
     */
46
    public function getHorizontallyTypes() {
47
        $types = [];
48
49
        foreach ($this->dbObject('AlignX')->enumValues() as $alignType) {
50
            $types[$alignType] = $this->fieldLabel($alignType);
51
        }
52
53
        return $types;
54
    }
55
56
    /**
57
     * Get localized types

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

code/blocks/video/models/VideoBlock.php 1 location

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