Code Duplication    Length = 7-7 lines in 2 locations

controller/waterfalls/LogController.class.inc.php 2 locations

@@ 123-129 (lines=7) @@
120
            'next' => array());
121
        
122
        $previous_log = LogCollector::getPreviousLog($this->log->id);
123
        if($previous_log != false)
124
        {
125
            $series['previous'] = (object) array(
126
                'path' => '/' . self::$JOURNAL_DIRECTORY . '/' . $previous_log->alias . '/',
127
                'title' => $previous_log->title,
128
                'date' => $previous_log->date);
129
        }
130
        
131
        $next_log = LogCollector::getNextLog($this->log->id);
132
        if($next_log != false)
@@ 132-138 (lines=7) @@
129
        }
130
        
131
        $next_log = LogCollector::getNextLog($this->log->id);
132
        if($next_log != false)
133
        {
134
            $series['next'] = (object) array(
135
                'path' => '/' . self::$JOURNAL_DIRECTORY . '/' . $next_log->alias . '/',
136
                'title' => $next_log->title,
137
                'date' => $next_log->date);
138
        }
139
        
140
        return $series;
141
    }