Code Duplication    Length = 10-12 lines in 2 locations

code/control/SilverstripeColumnsPageControllerExtension.php 1 location

@@ 15-26 (lines=12) @@
12
    /**
13
     * @return bool
14
     */
15
    function HasFullWidthContent()
16
    {
17
        if($this->owner->hasMethod('HasFullWidthContentOverloaded')) {
18
            $v = $this->owner->HasFullWidthContentOverloaded();
19
            if($v !== null) {
20
                return $v;
21
            }
22
        }
23
        if($this->owner->owner->getFullWidthContent()) {
24
            return true;
25
        }
26
    }
27
28
    /**
29
     * @return bool

code/model/SilverstripeColumnsPageExtension.php 1 location

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