Code Duplication    Length = 11-11 lines in 2 locations

code/extensions/CommentsExtension.php 1 location

@@ 269-279 (lines=11) @@
266
     *
267
     * @return PaginatedList
268
     */
269
    public function PagedComments()
270
    {
271
        $list = $this->Comments();
272
273
        // Add pagination
274
        $list = new PaginatedList($list, Controller::curr()->getRequest());
275
        $list->setPaginationGetVar('commentsstart' . $this->owner->ID);
276
        $list->setPageLength($this->owner->getCommentsOption('comments_per_page'));
277
278
        $this->owner->extend('updatePagedComments', $list);
279
        return $list;
280
    }
281
282
    /**

code/model/Comment.php 1 location

@@ 786-796 (lines=11) @@
783
     *
784
     * @return PaginatedList
785
     */
786
    public function PagedReplies()
787
    {
788
        $list = $this->Replies();
789
790
        // Add pagination
791
        $list = new PaginatedList($list, Controller::curr()->getRequest());
792
        $list->setPaginationGetVar('repliesstart'.$this->ID);
793
        $list->setPageLength($this->getOption('comments_per_page'));
794
795
        $this->extend('updatePagedReplies', $list);
796
        return $list;
797
    }
798
799
    /**