Code Duplication    Length = 4-4 lines in 3 locations

locallib.php 3 locations

@@ 1162-1165 (lines=4) @@
1159
            'target' => 'name');
1160
    }
1161
    $oldsource = 'meta_contextactivity';
1162
    if (isset($recording[$oldsource])) {
1163
        $metaname = trim($recording[$oldsource]);
1164
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1165
    }
1166
    $newsource = 'meta_bbb-recording-name';
1167
    if (isset($recording[$newsource])) {
1168
        $metaname = trim($recording[$newsource]);
@@ 1167-1170 (lines=4) @@
1164
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $oldsource, $payload);
1165
    }
1166
    $newsource = 'meta_bbb-recording-name';
1167
    if (isset($recording[$newsource])) {
1168
        $metaname = trim($recording[$newsource]);
1169
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1170
    }
1171
    $metaname = trim($recording['meetingName']);
1172
    return bigbluebuttonbn_get_recording_data_row_text($recording, $metaname, $newsource, $payload);
1173
}
@@ 1183-1186 (lines=4) @@
1180
            'target' => 'description');
1181
    }
1182
    $oldsource = 'meta_contextactivitydescription';
1183
    if (isset($recording[$oldsource])) {
1184
        $metadescription = trim($recording[$oldsource]);
1185
        return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $oldsource, $payload);
1186
    }
1187
    $newsource = 'meta_bbb-recording-description';
1188
    if (isset($recording[$newsource])) {
1189
        $metadescription = trim($recording[$newsource]);