Code Duplication    Length = 6-6 lines in 2 locations

blocks/news_top.php 2 locations

@@ 285-290 (lines=6) @@
282
                    } else {
283
                        $news['author'] = '';
284
                    }
285
                    if ($options[3] > 0) {
286
                        $html           = $story->nohtml() == 1 ? 0 : 1;
287
                        $news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3);
288
                    } else {
289
                        $news['teaser'] = '';
290
                    }
291
                    if ($infotips > 0) {
292
                        $news['infotips'] = ' title="' . news_make_infotips($story->hometext()) . '"';
293
                    } else {
@@ 329-334 (lines=6) @@
326
                        if ($options[7] !== '') {
327
                            $news['image'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), $myts->displayTarea($options[7], $story->nohtml));
328
                        }
329
                        if ($options[3] > 0) {
330
                            $html         = $story->nohtml() == 1 ? 0 : 1;
331
                            $news['text'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3);
332
                        } else {
333
                            $news['text'] = '';
334
                        }
335
336
                        if ($story->votes() == 1) {
337
                            $news['number_votes'] = _NW_ONEVOTE;