Code Duplication    Length = 5-5 lines in 2 locations

locallib.php 2 locations

@@ 1635-1639 (lines=5) @@
1632
 */
1633
function bigbluebuttonbn_get_recording_data_row_meta_activity($recording, $bbbsession) {
1634
    $payload = array();
1635
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1636
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1637
            'action' => 'edit', 'tag' => 'edit',
1638
            'target' => 'name');
1639
    }
1640
    $oldsource = 'meta_contextactivity';
1641
    if (isset($recording[$oldsource])) {
1642
        $metaname = trim($recording[$oldsource]);
@@ 1664-1668 (lines=5) @@
1661
 */
1662
function bigbluebuttonbn_get_recording_data_row_meta_description($recording, $bbbsession) {
1663
    $payload = array();
1664
    if (bigbluebuttonbn_get_recording_data_row_editable($bbbsession)) {
1665
        $payload = array('recordingid' => $recording['recordID'], 'meetingid' => $recording['meetingID'],
1666
            'action' => 'edit', 'tag' => 'edit',
1667
            'target' => 'description');
1668
    }
1669
    $oldsource = 'meta_contextactivitydescription';
1670
    if (isset($recording[$oldsource])) {
1671
        $metadescription = trim($recording[$oldsource]);