Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 395-405 (lines=11) @@
392
        while ($status === false) {
393
394
            $meetingIsRunningInfo = $this->getMeetingInfo($params);
395
            if ($meetingIsRunningInfo === false) {
396
                //checking with the remote_id didn't work, so just in case and
397
                // to provide backwards support, check with the id
398
                $params = array(
399
                    'meetingId' => $meetingData['id'],
400
                    //  -- REQUIRED - The unique id for the meeting
401
                    'password' => $this->getModMeetingPassword()
402
                    //  -- REQUIRED - The moderator password for the meeting
403
                );
404
                $meetingIsRunningInfo = $this->getMeetingInfo($params);
405
            }
406
407
            if ($this->debug) {
408
                error_log(print_r($meetingIsRunningInfo, 1));
@@ 519-529 (lines=11) @@
516
        $item = array();
517
        foreach ($meetingList as $meetingDB) {
518
            $meetingBBB = $this->getMeetingInfo(['meetingId' => $meetingDB['remote_id'], 'password' => $pass]);
519
            if ($meetingBBB === false) {
520
                //checking with the remote_id didn't work, so just in case and
521
                // to provide backwards support, check with the id
522
                $params = array(
523
                    'meetingId' => $meetingDB['id'],
524
                    //  -- REQUIRED - The unique id for the meeting
525
                    'password' => $pass
526
                    //  -- REQUIRED - The moderator password for the meeting
527
                );
528
                $meetingBBB = $this->getMeetingInfo($params);
529
            }
530
531
            if ($meetingDB['visibility'] == 0 && $this->isConferenceManager() === false) {
532
                continue;
@@ 763-773 (lines=11) @@
760
        }
761
        $pass = $this->getModMeetingPassword();
762
        $info = $this->getMeetingInfo(array('meetingId' => $meetingData['remote_id'], 'password' => $pass));
763
        if ($info === false) {
764
            //checking with the remote_id didn't work, so just in case and
765
            // to provide backwards support, check with the id
766
            $params = array(
767
                'meetingId' => $meetingData['id'],
768
                //  -- REQUIRED - The unique id for the meeting
769
                'password' => $pass
770
                //  -- REQUIRED - The moderator password for the meeting
771
            );
772
            $info = $this->getMeetingInfo($params);
773
        }
774
775
        if (!empty($info) && isset($info['participantCount'])) {
776
            return $info['participantCount'];