Code Duplication    Length = 3-3 lines in 2 locations

code/Controllers/CMSMain.php 2 locations

@@ 1989-1991 (lines=3) @@
1986
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
1987
            /** @var SiteTree $page */
1988
            $page = SiteTree::get()->byID($id);
1989
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
1990
                return Security::permissionFailure($this);
1991
            }
1992
            if (!$page || !$page->ID) {
1993
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
1994
            }
@@ 2033-2035 (lines=3) @@
2030
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
2031
            /** @var SiteTree $page */
2032
            $page = SiteTree::get()->byID($id);
2033
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
2034
                return Security::permissionFailure($this);
2035
            }
2036
            if (!$page || !$page->ID) {
2037
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
2038
            }