Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1790-1794 (lines=5) @@
1787
 */
1788
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1789
    $payload = array();
1790
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1791
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1792
            'action' => 'edit', 'tag' => 'edit',
1793
            'target' => 'name');
1794
    }
1795
    $oldsource = 'meta_contextactivity';
1796
    if (isset($recording[$oldsource])) {
1797
        $metaname = trim($recording[$oldsource]);
@@ 1819-1823 (lines=5) @@
1816
 */
1817
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1818
    $payload = array();
1819
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1820
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1821
            'action' => 'edit', 'tag' => 'edit',
1822
            'target' => 'description');
1823
    }
1824
    $oldsource = 'meta_contextactivitydescription';
1825
    if (isset($recording[$oldsource])) {
1826
        $metadescription = trim($recording[$oldsource]);