Code Duplication    Length = 9-9 lines in 2 locations

bbb_view.php 1 location

@@ 330-338 (lines=9) @@
327
    $data['welcome'] = trim($bbbsession['welcome']);
328
    // Set the duration for the meeting.
329
    $durationtime = bigbluebuttonbn_bbb_view_create_meeting_data_duration($bbbsession['bigbluebuttonbn']->closingtime);
330
    if ($durationtime > 0) {
331
        $data['duration'] = $durationtime;
332
        $data['welcome'] .= '<br><br>';
333
        $data['welcome'] .= str_replace(
334
            '%duration%',
335
            (string) $durationtime,
336
            get_string('bbbdurationwarning', 'bigbluebuttonbn')
337
          );
338
    }
339
    $voicebridge = intval($bbbsession['voicebridge']);
340
    if ($voicebridge > 0 && $voicebridge < 79999) {
341
        $data['voiceBridge'] = $voicebridge;

classes/locallib/mobileview.php 1 location

@@ 196-204 (lines=9) @@
193
        $data['welcome'] = trim($bbbsession['welcome']);
194
        // Set the duration for the meeting.
195
        $durationtime = self::create_meeting_data_duration($bbbsession['bigbluebuttonbn']->closingtime);
196
        if ($durationtime > 0) {
197
            $data['duration'] = $durationtime;
198
            $data['welcome'] .= '<br><br>';
199
            $data['welcome'] .= str_replace(
200
                '%duration%',
201
                (string) $durationtime,
202
                get_string('bbbdurationwarning', 'bigbluebuttonbn')
203
            );
204
        }
205
        $voicebridge = intval($bbbsession['voicebridge']);
206
        if ($voicebridge > 0 && $voicebridge < 79999) {
207
            $data['voiceBridge'] = $voicebridge;