Code Duplication    Length = 8-9 lines in 2 locations

code/model/PageRow.php 2 locations

@@ 643-651 (lines=9) @@
640
        return 'PageRow-'.$className;
641
    }
642
643
    public function MyPreviewLink($id = 0)
644
    {
645
        if (! $id) {
646
            $id = $this->ID;
647
        }
648
        $controller = Injector::inst()->get('PreviewPageRow');
649
650
        return $controller->Link('preview/'.$id);
651
    }
652
653
    public function MyPublicViewLink()
654
    {
@@ 653-660 (lines=8) @@
650
        return $controller->Link('preview/'.$id);
651
    }
652
653
    public function MyPublicViewLink()
654
    {
655
        if (! $id) {
656
            $id = $this->ID;
657
        }
658
        $controller = Injector::inst()->get('PreviewPageRow');
659
        return $controller->Link('preview/'.$id);
660
    }
661
662
663
    public function MoreDetailsRowChildLinkingID()