Code Duplication    Length = 7-7 lines in 2 locations

src/Intraface/modules/cms/Page.php 1 location

@@ 118-124 (lines=7) @@
115
        return $this->kernel;
116
    }
117
118
    function getDBQuery()
119
    {
120
        if ($this->dbquery) {
121
            return $this->dbquery;
122
        }
123
        return ($this->dbquery = new Intraface_DBQuery($this->kernel, 'cms_page', 'cms_page.intranet_id = '.$this->kernel->intranet->get('id').' AND cms_page.active = 1 AND site_id = ' . $this->cmssite->get('id')));
124
    }
125
126
    /**
127
     * Returns position object

src/Intraface/modules/cms/PageGateway.php 1 location

@@ 38-44 (lines=7) @@
35
            3 => 'news');
36
    }
37
38
    function getDBQuery()
39
    {
40
        if ($this->dbquery) {
41
            return $this->dbquery;
42
        }
43
        return ($this->dbquery = new Intraface_DBQuery($this->kernel, 'cms_page', 'cms_page.intranet_id = '.$this->kernel->intranet->get('id').' AND cms_page.active = 1 AND site_id = ' . $this->cmssite->get('id')));
44
    }
45
46
    function setDBQuery($dbquery)
47
    {