Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 304-314 (lines=11) @@
301
        while ($status === false) {
302
303
            $meetingIsRunningInfo = $this->getMeetingInfo($params);
304
            if ($meetingIsRunningInfo === false) {
305
                //checking with the remote_id didn't work, so just in case and
306
                // to provide backwards support, check with the id
307
                $params = array(
308
                    'meetingId' => $meetingData['id'],
309
                    //  -- REQUIRED - The unique id for the meeting
310
                    'password' => $this->getModMeetingPassword()
311
                    //  -- REQUIRED - The moderator password for the meeting
312
                );
313
                $meetingIsRunningInfo = $this->getMeetingInfo($params);
314
            }
315
316
            if ($this->debug) {
317
                error_log(print_r($meetingIsRunningInfo, 1));
@@ 416-426 (lines=11) @@
413
        $item = array();
414
        foreach ($meetingList as $meetingDB) {
415
            $meetingBBB = $this->getMeetingInfo(['meetingId' => $meetingDB['remote_id'], 'password' => $pass]);
416
            if ($meetingBBB === false) {
417
                //checking with the remote_id didn't work, so just in case and
418
                // to provide backwards support, check with the id
419
                $params = array(
420
                    'meetingId' => $meetingDB['id'],
421
                    //  -- REQUIRED - The unique id for the meeting
422
                    'password' => $pass
423
                    //  -- REQUIRED - The moderator password for the meeting
424
                );
425
                $meetingBBB = $this->getMeetingInfo($params);
426
            }
427
428
            if ($meetingDB['visibility'] == 0 && $this->isConferenceManager() === false) {
429
                continue;
@@ 746-756 (lines=11) @@
743
        }
744
        $pass = $this->getModMeetingPassword();
745
        $info = $this->getMeetingInfo(array('meetingId' => $meetingData['remote_id'], 'password' => $pass));
746
        if ($info === false) {
747
            //checking with the remote_id didn't work, so just in case and
748
            // to provide backwards support, check with the id
749
            $params = array(
750
                'meetingId' => $meetingData['id'],
751
                //  -- REQUIRED - The unique id for the meeting
752
                'password' => $pass
753
                //  -- REQUIRED - The moderator password for the meeting
754
            );
755
            $info = $this->getMeetingInfo($params);
756
        }
757
758
        if (!empty($info) && isset($info['participantCount'])) {
759
            return $info['participantCount'];