Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

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