Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1734-1738 (lines=5) @@
1731
 */
1732
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1733
    $payload = array();
1734
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1735
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1736
            'action' => 'edit', 'tag' => 'edit',
1737
            'target' => 'name');
1738
    }
1739
    $oldsource = 'meta_contextactivity';
1740
    if (isset($recording[$oldsource])) {
1741
        $metaname = trim($recording[$oldsource]);
@@ 1763-1767 (lines=5) @@
1760
 */
1761
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1762
    $payload = array();
1763
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1764
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1765
            'action' => 'edit', 'tag' => 'edit',
1766
            'target' => 'description');
1767
    }
1768
    $oldsource = 'meta_contextactivitydescription';
1769
    if (isset($recording[$oldsource])) {
1770
        $metadescription = trim($recording[$oldsource]);