Code Duplication    Length = 5-6 lines in 2 locations

src/Models/Post.php 2 locations

@@ 363-367 (lines=5) @@
360
    public function BanLink()
361
    {
362
        $thread = $this->Thread();
363
        if ($thread->canModerate()) {
364
            $link = $thread->Forum()->Link('ban') . '/' . $this->AuthorID;
365
366
            return "<a class='banLink' href=\"$link\" rel=\"$this->AuthorID\">" . _t('Post.BANUSER', 'Ban User') . "</a>";
367
        }
368
369
        return false;
370
    }
@@ 380-385 (lines=6) @@
377
    public function GhostLink()
378
    {
379
        $thread = $this->Thread();
380
        if ($thread->canModerate()) {
381
            $link = Controller::join_links($thread->Forum()->Link('ghost'), $this->AuthorID);
382
383
            return "<a class='ghostLink' href=\"$link\" rel=\"$this->AuthorID\">" . _t('Post.GHOSTUSER',
384
                'Ghost User') . "</a>";
385
        }
386
387
        return false;
388
    }