Code Duplication    Length = 10-12 lines in 3 locations

code/control/SilverstripeColumnsPageControllerExtension.php 2 locations

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

code/model/SilverstripeColumnsPageExtension.php 1 location

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