Code Duplication    Length = 11-11 lines in 3 locations

plugin/bbb/lib/bbb.lib.php 3 locations

@@ 517-527 (lines=11) @@
514
        while ($status === false) {
515
516
            $meetingIsRunningInfo = $this->getMeetingInfo($params);
517
            if ($meetingIsRunningInfo === false) {
518
                //checking with the remote_id didn't work, so just in case and
519
                // to provide backwards support, check with the id
520
                $params = array(
521
                    'meetingId' => $meetingData['id'],
522
                    //  -- REQUIRED - The unique id for the meeting
523
                    'password' => $this->getModMeetingPassword()
524
                    //  -- REQUIRED - The moderator password for the meeting
525
                );
526
                $meetingIsRunningInfo = $this->getMeetingInfo($params);
527
            }
528
529
            if ($this->debug) {
530
                error_log(print_r($meetingIsRunningInfo, 1));
@@ 709-719 (lines=11) @@
706
                ]
707
            );
708
709
            if ($meetingBBB === false) {
710
                //checking with the remote_id didn't work, so just in case and
711
                // to provide backwards support, check with the id
712
                $params = array(
713
                    'meetingId' => $meetingDB['id'],
714
                    //  -- REQUIRED - The unique id for the meeting
715
                    'password' => $pass
716
                    //  -- REQUIRED - The moderator password for the meeting
717
                );
718
                $meetingBBB = $this->getMeetingInfo($params);
719
            }
720
721
            if ($meetingDB['visibility'] == 0 && $this->isConferenceManager() === false) {
722
                continue;
@@ 992-1002 (lines=11) @@
989
        }
990
        $pass = $this->getModMeetingPassword();
991
        $info = $this->getMeetingInfo(array('meetingId' => $meetingData['remote_id'], 'password' => $pass));
992
        if ($info === false) {
993
            //checking with the remote_id didn't work, so just in case and
994
            // to provide backwards support, check with the id
995
            $params = array(
996
                'meetingId' => $meetingData['id'],
997
                //  -- REQUIRED - The unique id for the meeting
998
                'password' => $pass
999
                //  -- REQUIRED - The moderator password for the meeting
1000
            );
1001
            $info = $this->getMeetingInfo($params);
1002
        }
1003
1004
        if (!empty($info) && isset($info['participantCount'])) {
1005
            return $info['participantCount'];