Code Duplication    Length = 4-4 lines in 3 locations

locallib.php 3 locations

@@ 1453-1456 (lines=4) @@
1450
            'target' => 'name');
1451
    }
1452
    $oldsource = 'meta_contextactivity';
1453
    if (isset($recording[$oldsource])) {
1454
        $metaname = trim($recording[$oldsource]);
1455
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1456
    }
1457
    $newsource = 'meta_bbb-recording-name';
1458
    if (isset($recording[$newsource])) {
1459
        $metaname = trim($recording[$newsource]);
@@ 1458-1461 (lines=4) @@
1455
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1456
    }
1457
    $newsource = 'meta_bbb-recording-name';
1458
    if (isset($recording[$newsource])) {
1459
        $metaname = trim($recording[$newsource]);
1460
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1461
    }
1462
    $metaname = trim($recording['meetingName']);
1463
    return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1464
}
@@ 1474-1477 (lines=4) @@
1471
            'target' => 'description');
1472
    }
1473
    $oldsource = 'meta_contextactivitydescription';
1474
    if (isset($recording[$oldsource])) {
1475
        $metadescription = trim($recording[$oldsource]);
1476
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $oldsource, $payload);
1477
    }
1478
    $newsource = 'meta_bbb-recording-description';
1479
    if (isset($recording[$newsource])) {
1480
        $metadescription = trim($recording[$newsource]);