Code Duplication    Length = 6-6 lines in 2 locations

blocks/news_top.php 2 locations

@@ 295-300 (lines=6) @@
292
                    } else {
293
                        $news['author'] = '';
294
                    }
295
                    if ($options[3] > 0) {
296
                        $html           = $story->nohtml() == 1 ? 0 : 1;
297
                        $news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3);
298
                    } else {
299
                        $news['teaser'] = '';
300
                    }
301
                    if ($infotips > 0) {
302
                        $news['infotips'] = ' title="' . news_make_infotips($story->hometext()) . '"';
303
                    } else {
@@ 341-346 (lines=6) @@
338
                            $news['image'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(),
339
                                                     $myts->displayTarea($options[7], $story->nohtml));
340
                        }
341
                        if ($options[3] > 0) {
342
                            $html         = $story->nohtml() == 1 ? 0 : 1;
343
                            $news['text'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3);
344
                        } else {
345
                            $news['text'] = '';
346
                        }
347
348
                        if ($story->votes() == 1) {
349
                            $news['number_votes'] = _NW_ONEVOTE;