Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1803-1807 (lines=5) @@
1800
 */
1801
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1802
    $payload = array();
1803
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1804
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1805
            'action' => 'edit', 'tag' => 'edit',
1806
            'target' => 'name');
1807
    }
1808
    $oldsource = 'meta_contextactivity';
1809
    if (isset($recording[$oldsource])) {
1810
        $metaname = trim($recording[$oldsource]);
@@ 1832-1836 (lines=5) @@
1829
 */
1830
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1831
    $payload = array();
1832
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1833
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1834
            'action' => 'edit', 'tag' => 'edit',
1835
            'target' => 'description');
1836
    }
1837
    $oldsource = 'meta_contextactivitydescription';
1838
    if (isset($recording[$oldsource])) {
1839
        $metadescription = trim($recording[$oldsource]);