Code Duplication    Length = 9-9 lines in 2 locations

locallib.php 2 locations

@@ 296-304 (lines=9) @@
293
    }
294
}
295
296
function bigbluebuttonbn_doDeleteRecordings( $recordIDs, $URL, $SALT ) {
297
    $ids = 	explode(",", $recordIDs);
298
    foreach( $ids as $id){
299
        $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getDeleteRecordingsURL($id, $URL, $SALT) );
300
        if( $xml && $xml->returncode != 'SUCCESS' ) {
301
            return false;
302
        }
303
    }
304
    return true;
305
}
306
307
function bigbluebuttonbn_doPublishRecordings( $recordIDs, $set, $URL, $SALT ) {
@@ 307-315 (lines=9) @@
304
    return true;
305
}
306
307
function bigbluebuttonbn_doPublishRecordings( $recordIDs, $set, $URL, $SALT ) {
308
    $ids = 	explode(",", $recordIDs);
309
    foreach( $ids as $id){
310
        $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getPublishRecordingsURL($id, $set, $URL, $SALT) );
311
        if( $xml && $xml->returncode != 'SUCCESS' ) {
312
            return false;
313
        }
314
    }
315
    return true;
316
}
317
318
function bigbluebuttonbn_doEndMeeting( $meetingID, $modPW, $URL, $SALT ) {