Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1767-1771 (lines=5) @@
1764
 */
1765
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1766
    $payload = array();
1767
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1768
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1769
            'action' => 'edit', 'tag' => 'edit',
1770
            'target' => 'name');
1771
    }
1772
    $oldsource = 'meta_contextactivity';
1773
    if (isset($recording[$oldsource])) {
1774
        $metaname = trim($recording[$oldsource]);
@@ 1796-1800 (lines=5) @@
1793
 */
1794
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1795
    $payload = array();
1796
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1797
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1798
            'action' => 'edit', 'tag' => 'edit',
1799
            'target' => 'description');
1800
    }
1801
    $oldsource = 'meta_contextactivitydescription';
1802
    if (isset($recording[$oldsource])) {
1803
        $metadescription = trim($recording[$oldsource]);