Code Duplication    Length = 4-4 lines in 3 locations

locallib.php 3 locations

@@ 1555-1558 (lines=4) @@
1552
            'target' => 'name');
1553
    }
1554
    $oldsource = 'meta_contextactivity';
1555
    if (isset($recording[$oldsource])) {
1556
        $metaname = trim($recording[$oldsource]);
1557
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1558
    }
1559
    $newsource = 'meta_bbb-recording-name';
1560
    if (isset($recording[$newsource])) {
1561
        $metaname = trim($recording[$newsource]);
@@ 1560-1563 (lines=4) @@
1557
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1558
    }
1559
    $newsource = 'meta_bbb-recording-name';
1560
    if (isset($recording[$newsource])) {
1561
        $metaname = trim($recording[$newsource]);
1562
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1563
    }
1564
    $metaname = trim($recording['meetingName']);
1565
    return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1566
}
@@ 1584-1587 (lines=4) @@
1581
            'target' => 'description');
1582
    }
1583
    $oldsource = 'meta_contextactivitydescription';
1584
    if (isset($recording[$oldsource])) {
1585
        $metadescription = trim($recording[$oldsource]);
1586
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $oldsource, $payload);
1587
    }
1588
    $newsource = 'meta_bbb-recording-description';
1589
    if (isset($recording[$newsource])) {
1590
        $metadescription = trim($recording[$newsource]);