Code Duplication    Length = 6-8 lines in 2 locations

blocks/news_bigstory.php 1 location

@@ 42-47 (lines=6) @@
39
    } else {
40
        foreach ($stories as $key => $story) {
41
            $htmltitle = '';
42
            if ($infotips > 0) {
43
                $block['infotips'] = NewsUtility::makeInfotips($story->hometext());
44
                $htmltitle         = ' title="' . $block['infotips'] . '"';
45
            } else {
46
                $htmltitle = ' title="' . $story->title('Show') . '"';
47
            }
48
            $block['htmltitle']         = $htmltitle;
49
            $block['message']           = _MB_NEWS_TMRSI;
50
            $block['story_title']       = $story->title('Show');

blocks/news_randomnews.php 1 location

@@ 75-82 (lines=8) @@
72
            $html             = 1 == $story->nohtml() ? 0 : 1;
73
            $news['teaser']   = NewsUtility::truncateTagSafe($myts->displayTarea($story->hometext, $html), $options[3] + 3);
74
            $news['infotips'] = ' title="' . $story->title() . '"';
75
        } else {
76
            $news['teaser'] = '';
77
            if ($infotips > 0) {
78
                $news['infotips'] = ' title="' . NewsUtility::makeInfotips($story->hometext()) . '"';
79
            } else {
80
                $news['infotips'] = ' title="' . $story->title() . '"';
81
            }
82
        }
83
        $block['stories'][] = $news;
84
    }
85
    $block['lang_read_more'] = _MB_READMORE;