Code Duplication    Length = 9-9 lines in 2 locations

locallib.php 2 locations

@@ 290-298 (lines=9) @@
287
    else return 1;
288
}
289
290
function bigbluebuttonbn_doDeleteRecordings( $recordIDs, $URL, $SALT ) {
291
    $ids = 	explode(",", $recordIDs);
292
    foreach( $ids as $id){
293
        $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getDeleteRecordingsURL($id, $URL, $SALT) );
294
        if( $xml && $xml->returncode != 'SUCCESS' )
295
            return false;
296
    }
297
    return true;
298
}
299
300
function bigbluebuttonbn_doPublishRecordings( $recordIDs, $set, $URL, $SALT ) {
301
    $ids = 	explode(",", $recordIDs);
@@ 300-308 (lines=9) @@
297
    return true;
298
}
299
300
function bigbluebuttonbn_doPublishRecordings( $recordIDs, $set, $URL, $SALT ) {
301
    $ids = 	explode(",", $recordIDs);
302
    foreach( $ids as $id){
303
        $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getPublishRecordingsURL($id, $set, $URL, $SALT) );
304
        if( $xml && $xml->returncode != 'SUCCESS' )
305
            return false;
306
    }
307
    return true;
308
}
309
310
function bigbluebuttonbn_doEndMeeting( $meetingID, $modPW, $URL, $SALT ) {
311
    $xml = bigbluebuttonbn_wrap_xml_load_file( bigbluebuttonbn_getEndMeetingURL( $meetingID, $modPW, $URL, $SALT ) );