Code Duplication    Length = 3-4 lines in 3 locations

locallib.php 3 locations

@@ 265-268 (lines=4) @@
262
        return $meetings;
263
    }
264
265
    if ($xml) {
266
        // Either failutre or success without meetings
267
        return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
268
    }
269
270
    //If the server is unreachable, then prompts the user of the necessary action
271
    return null;
@@ 309-312 (lines=4) @@
306
                   );
307
    }
308
309
    if ($xml) {
310
        // Either failutre or success without meeting info
311
        return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
312
    }
313
314
    //If the server is unreachable, then prompts the user of the necessary action
315
    return null;
@@ 508-510 (lines=3) @@
505
{
506
    $xml = bigbluebuttonbn_wrap_xml_load_file(bigbluebuttonbn_getEndMeetingURL($meetingID, $modPW));
507
508
    if ($xml) { //If the xml packet returned failure it displays the message to the user
509
        return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
510
    }
511
512
    //If the server is unreachable, then prompts the user of the necessary action
513
    return null;