Code Duplication    Length = 6-6 lines in 2 locations

blocks/news_top.php 2 locations

@@ 256-261 (lines=6) @@
253
            $spotlight['author_id'] = $tmpstory->uid();
254
255
            // Create the summary table under the spotlight text
256
            if (isset($options[14]) && $options[14] == 0) { // Use all topics
257
                $stories = NewsStory::getAllPublished($options[1], 0, $restricted, 0, 1, true, $options[0]);
258
            } else { // Use some topics
259
                $topics  = array_slice($options, 14);
260
                $stories = NewsStory::getAllPublished($options[1], 0, $restricted, $topics, 1, true, $options[0]);
261
            }
262
            if (count($stories) > 0) {
263
                foreach ($stories as $key => $story) {
264
                    $news  = array();
@@ 396-401 (lines=6) @@
393
        }
394
    } else { // ************************ Classical view **************************************************************************************************************
395
        $tmpstory = new NewsStory;
396
        if (isset($options[14]) && $options[14] == 0) {
397
            $stories = NewsStory::getAllPublished($options[1], 0, $restricted, 0, 1, true, $options[0]);
398
        } else {
399
            $topics  = array_slice($options, 14);
400
            $stories = NewsStory::getAllPublished($options[1], 0, $restricted, $topics, 1, true, $options[0]);
401
        }
402
403
        if (!count($stories)) {
404
            return '';