Code Duplication    Length = 7-7 lines in 2 locations

code/models/BaseElement.php 2 locations

@@ 458-464 (lines=7) @@
455
        );
456
    }
457
458
    public function PageLink() {
459
        if ($page = $this->getPage()) {
460
            $html = new HTMLText('PageLink');
461
            $html->setValue('<a href="' . $page->Link() . '">' . $page->Title . '</a>');
462
            return $html;
463
        }
464
    }
465
466
    public function PageCMSEditLink() {
467
        if ($page = $this->getPage()) {
@@ 466-472 (lines=7) @@
463
        }
464
    }
465
466
    public function PageCMSEditLink() {
467
        if ($page = $this->getPage()) {
468
            $html = new HTMLText('UsedOn');
469
            $html->setValue('<a href="' . $page->CMSEditLink() . '">' . $page->Title . '</a>');
470
            return $html;
471
        }
472
    }
473
474
    public static function all_allowed_elements() {
475
        $classes = array();