Code Duplication    Length = 10-12 lines in 3 locations

code/control/SilverstripeColumnsPageControllerExtension.php 2 locations

@@ 18-29 (lines=12) @@
15
    /**
16
     * @return bool
17
     */
18
    public function HasFullWidthContent()
19
    {
20
        if ($this->owner->hasMethod('HasFullWidthContentOverloaded')) {
21
            $v = $this->owner->HasFullWidthContentOverloaded();
22
            if ($v !== null) {
23
                return $v;
24
            }
25
        }
26
        if ($this->owner->owner->getFullWidthContent()) {
27
            return true;
28
        }
29
    }
30
31
    /**
32
     * @return bool
@@ 112-122 (lines=11) @@
109
     *  Children Menu Items
110
     * @return null | DataList
111
     */
112
    public function InThisSection()
113
    {
114
        if ($this->owner->hasMethod('InThisSectionOverloaded')) {
115
            $v = $this->owner->InThisSectionOverloaded();
116
            if ($v !== null) {
117
                return $v;
118
            }
119
        }
120
121
        return $this->owner->ChildrenShowInMenu();
122
    }
123
124
    /**
125
     * Sibling Menu Items

code/model/SilverstripeColumnsPageExtension.php 1 location

@@ 145-154 (lines=10) @@
142
     *
143
     * @return string (HTML)
144
     */
145
    public function getMyDefaultSidebarContent()
146
    {
147
        if ($this->owner->hasMethod('MyDefaultSidebarContentOverloaded')) {
148
            $v = $this->owner->MyDefaultSidebarContentOverloaded();
149
            if ($v !== null) {
150
                return $v;
151
            }
152
        }
153
        return $this->owner->DefaultSidebarContent;
154
    }
155
156
    /**
157
     *