Code Duplication    Length = 7-7 lines in 2 locations

bbb_view.php 1 location

@@ 319-325 (lines=7) @@
316
            ];
317
    $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']);
318
    // Check if auto_start_record is enable.
319
    if ($data['record'] == 'true' && $bbbsession['recordallfromstart']) {
320
        $data['autoStartRecording'] = 'true';
321
        // Check if hide_record_button is enable.
322
        if ($bbbsession['recordhidebutton']) {
323
            $data['allowStartStopRecording'] = 'false';
324
        }
325
    }
326
327
    $data['welcome'] = trim($bbbsession['welcome']);
328
    // Set the duration for the meeting.

classes/locallib/mobileview.php 1 location

@@ 186-192 (lines=7) @@
183
        ];
184
        $data['record'] = self::create_meeting_data_record($bbbsession['record']);
185
        // Check if auto_start_record is enable.
186
        if ($data['record'] == 'true' && $bbbsession['recordallfromstart']) {
187
            $data['autoStartRecording'] = 'true';
188
            // Check if hide_record_button is enable.
189
            if ($bbbsession['recordallfromstart'] && $bbbsession['recordhidebutton']) {
190
                $data['allowStartStopRecording'] = 'false';
191
            }
192
        }
193
        $data['welcome'] = trim($bbbsession['welcome']);
194
        // Set the duration for the meeting.
195
        $durationtime = self::create_meeting_data_duration($bbbsession['bigbluebuttonbn']->closingtime);