Code Duplication    Length = 4-4 lines in 2 locations

locallib.php 1 location

@@ 3682-3685 (lines=4) @@
3679
        $metadata['analytics-callback-url'] = $bbbsession['meetingEventsURL'];
3680
    }
3681
    // Special metadata for Opencast recordings
3682
    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('oc_recording') 
3683
        && bigbluebuttonbn_check_opencast($bbbsession['course']->id)) {
3684
        $metadata['opencast-dc-isPartOf'] = bigbluebuttonbn_check_opencast($bbbsession['course']->id);
3685
    }
3686
    return $metadata;
3687
}
3688

viewlib.php 1 location

@@ 265-268 (lines=4) @@
262
    // If there are meetings with recordings load the data to the table.
263
    if ($bbbsession['bigbluebuttonbn']->recordings_html) {
264
        $recordings_html = '';
265
        if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('oc_recording') 
266
            && bigbluebuttonbn_check_opencast($bbbsession['course']->id)) {
267
            $recordings_html .= bigbluebuttonbn_output_recording_opencast($bbbsession['course']->id);
268
        }
269
        $recordings_html .= bigbluebuttonbn_output_recording_table($bbbsession, $recordings)."\n";
270
        // Render a plain html table.
271
        return $recordings_html;