Code Duplication    Length = 5-5 lines in 3 locations

blocks/news_top.php 3 locations

@@ 225-229 (lines=5) @@
222
            $spotlight['hits']   = $tmpstory->counter();
223
            $spotlight['rating'] = number_format($tmpstory->rating(), 2);
224
            $spotlight['votes']  = $tmpstory->votes();
225
            if (strlen(xoops_trim($tmpstory->bodytext())) > 0) {
226
                $spotlight['read_more'] = true;
227
            } else {
228
                $spotlight['read_more'] = false;
229
            }
230
231
            $spotlight['readmore']        = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), _MB_READMORE);
232
            $spotlight['title_with_link'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), $tmpstory->title());
@@ 450-454 (lines=5) @@
447
                    // Added, topic's image and description
448
                    $spotlight['topic_image']       = XOOPS_URL . '/modules/news/assets/images/topics/' . $story->topic_imgurl();
449
                    $spotlight['topic_description'] = $myts->displayTarea($story->topic_description, 1);
450
                    if (strlen(xoops_trim($story->bodytext())) > 0) {
451
                        $spotlight['read_more'] = true;
452
                    } else {
453
                        $spotlight['read_more'] = false;
454
                    }
455
456
                    if ($displayname != 3) {
457
                        $spotlight['author'] = sprintf('%s %s', _POSTEDBY, $story->uname());
@@ 556-560 (lines=5) @@
553
                } else {
554
                    $spotlight['author'] = '';
555
                }
556
                if (strlen(xoops_trim($spotlightArticle->bodytext())) > 0) {
557
                    $spotlight['read_more'] = true;
558
                } else {
559
                    $spotlight['read_more'] = false;
560
                }
561
                $block['spotlight'] = $spotlight;
562
            }
563
        }