Code Duplication    Length = 9-9 lines in 2 locations

locallib.php 2 locations

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