Code Duplication    Length = 3-3 lines in 2 locations

code/Controllers/CMSMain.php 2 locations

@@ 2053-2055 (lines=3) @@
2050
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
2051
            /** @var SiteTree $page */
2052
            $page = SiteTree::get()->byID($id);
2053
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
2054
                return Security::permissionFailure($this);
2055
            }
2056
            if (!$page || !$page->ID) {
2057
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
2058
            }
@@ 2097-2099 (lines=3) @@
2094
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
2095
            /** @var SiteTree $page */
2096
            $page = SiteTree::get()->byID($id);
2097
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
2098
                return Security::permissionFailure($this);
2099
            }
2100
            if (!$page || !$page->ID) {
2101
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
2102
            }