Code Duplication    Length = 7-7 lines in 2 locations

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

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