Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 375-385 (lines=11) @@
372
        while ($status === false) {
373
374
            $meetingIsRunningInfo = $this->getMeetingInfo($params);
375
            if ($meetingIsRunningInfo === false) {
376
                //checking with the remote_id didn't work, so just in case and
377
                // to provide backwards support, check with the id
378
                $params = array(
379
                    'meetingId' => $meetingData['id'],
380
                    //  -- REQUIRED - The unique id for the meeting
381
                    'password' => $this->getModMeetingPassword()
382
                    //  -- REQUIRED - The moderator password for the meeting
383
                );
384
                $meetingIsRunningInfo = $this->getMeetingInfo($params);
385
            }
386
387
            if ($this->debug) {
388
                error_log(print_r($meetingIsRunningInfo, 1));
@@ 499-509 (lines=11) @@
496
        $item = array();
497
        foreach ($meetingList as $meetingDB) {
498
            $meetingBBB = $this->getMeetingInfo(['meetingId' => $meetingDB['remote_id'], 'password' => $pass]);
499
            if ($meetingBBB === false) {
500
                //checking with the remote_id didn't work, so just in case and
501
                // to provide backwards support, check with the id
502
                $params = array(
503
                    'meetingId' => $meetingDB['id'],
504
                    //  -- REQUIRED - The unique id for the meeting
505
                    'password' => $pass
506
                    //  -- REQUIRED - The moderator password for the meeting
507
                );
508
                $meetingBBB = $this->getMeetingInfo($params);
509
            }
510
511
            if ($meetingDB['visibility'] == 0 && $this->isConferenceManager() === false) {
512
                continue;
@@ 856-866 (lines=11) @@
853
        }
854
        $pass = $this->getModMeetingPassword();
855
        $info = $this->getMeetingInfo(array('meetingId' => $meetingData['remote_id'], 'password' => $pass));
856
        if ($info === false) {
857
            //checking with the remote_id didn't work, so just in case and
858
            // to provide backwards support, check with the id
859
            $params = array(
860
                'meetingId' => $meetingData['id'],
861
                //  -- REQUIRED - The unique id for the meeting
862
                'password' => $pass
863
                //  -- REQUIRED - The moderator password for the meeting
864
            );
865
            $info = $this->getMeetingInfo($params);
866
        }
867
868
        if (!empty($info) && isset($info['participantCount'])) {
869
            return $info['participantCount'];