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;
@@ 764-774 (lines=11) @@
761
        }
762
        $pass = $this->getModMeetingPassword();
763
        $info = $this->getMeetingInfo(array('meetingId' => $meetingData['remote_id'], 'password' => $pass));
764
        if ($info === false) {
765
            //checking with the remote_id didn't work, so just in case and
766
            // to provide backwards support, check with the id
767
            $params = array(
768
                'meetingId' => $meetingData['id'],
769
                //  -- REQUIRED - The unique id for the meeting
770
                'password' => $pass
771
                //  -- REQUIRED - The moderator password for the meeting
772
            );
773
            $info = $this->getMeetingInfo($params);
774
        }
775
776
        if (!empty($info) && isset($info['participantCount'])) {
777
            return $info['participantCount'];