Code Duplication    Length = 11-11 lines in 3 locations

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

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