Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1795-1799 (lines=5) @@
1792
 */
1793
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1794
    $payload = array();
1795
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1796
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1797
            'action' => 'edit', 'tag' => 'edit',
1798
            'target' => 'name');
1799
    }
1800
    $oldsource = 'meta_contextactivity';
1801
    if (isset($recording[$oldsource])) {
1802
        $metaname = trim($recording[$oldsource]);
@@ 1824-1828 (lines=5) @@
1821
 */
1822
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1823
    $payload = array();
1824
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1825
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1826
            'action' => 'edit', 'tag' => 'edit',
1827
            'target' => 'description');
1828
    }
1829
    $oldsource = 'meta_contextactivitydescription';
1830
    if (isset($recording[$oldsource])) {
1831
        $metadescription = trim($recording[$oldsource]);