Code Duplication    Length = 5-5 lines in 3 locations

blocks/news_top.php 3 locations

@@ 232-236 (lines=5) @@
229
            $spotlight['hits']   = $tmpstory->counter();
230
            $spotlight['rating'] = number_format($tmpstory->rating(), 2);
231
            $spotlight['votes']  = $tmpstory->votes();
232
            if (strlen(xoops_trim($tmpstory->bodytext())) > 0) {
233
                $spotlight['read_more'] = true;
234
            } else {
235
                $spotlight['read_more'] = false;
236
            }
237
238
            $spotlight['readmore']        = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(),
239
                                                    _MB_READMORE);
@@ 469-473 (lines=5) @@
466
                    // Added, topic's image and description
467
                    $spotlight['topic_image']       = XOOPS_URL . '/modules/news/assets/images/topics/' . $story->topic_imgurl();
468
                    $spotlight['topic_description'] = $myts->displayTarea($story->topic_description, 1);
469
                    if (strlen(xoops_trim($story->bodytext())) > 0) {
470
                        $spotlight['read_more'] = true;
471
                    } else {
472
                        $spotlight['read_more'] = false;
473
                    }
474
475
                    if ($displayname != 3) {
476
                        $spotlight['author'] = sprintf('%s %s', _POSTEDBY, $story->uname());
@@ 577-581 (lines=5) @@
574
                } else {
575
                    $spotlight['author'] = '';
576
                }
577
                if (strlen(xoops_trim($spotlightArticle->bodytext())) > 0) {
578
                    $spotlight['read_more'] = true;
579
                } else {
580
                    $spotlight['read_more'] = false;
581
                }
582
                $block['spotlight'] = $spotlight;
583
            }
584
        }