Code Duplication    Length = 4-4 lines in 3 locations

locallib.php 3 locations

@@ 1582-1585 (lines=4) @@
1579
            'target' => 'name');
1580
    }
1581
    $oldsource = 'meta_contextactivity';
1582
    if (isset($recording[$oldsource])) {
1583
        $metaname = trim($recording[$oldsource]);
1584
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1585
    }
1586
    $newsource = 'meta_bbb-recording-name';
1587
    if (isset($recording[$newsource])) {
1588
        $metaname = trim($recording[$newsource]);
@@ 1587-1590 (lines=4) @@
1584
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1585
    }
1586
    $newsource = 'meta_bbb-recording-name';
1587
    if (isset($recording[$newsource])) {
1588
        $metaname = trim($recording[$newsource]);
1589
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1590
    }
1591
    $metaname = trim($recording['meetingName']);
1592
    return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1593
}
@@ 1611-1614 (lines=4) @@
1608
            'target' => 'description');
1609
    }
1610
    $oldsource = 'meta_contextactivitydescription';
1611
    if (isset($recording[$oldsource])) {
1612
        $metadescription = trim($recording[$oldsource]);
1613
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $oldsource, $payload);
1614
    }
1615
    $newsource = 'meta_bbb-recording-description';
1616
    if (isset($recording[$newsource])) {
1617
        $metadescription = trim($recording[$newsource]);