Code Duplication    Length = 7-7 lines in 2 locations

bbb_view.php 1 location

@@ 302-308 (lines=7) @@
299
            ];
300
    $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']);
301
    // Check if auto_start_record is enable.
302
    if ($data['record'] == 'true' && $bbbsession['recordallfromstart']) {
303
        $data['autoStartRecording'] = 'true';
304
        // Check if hide_record_button is enable.
305
        if ($bbbsession['recordhidebutton']) {
306
            $data['allowStartStopRecording'] = 'false';
307
        }
308
    }
309
310
    $data['welcome'] = trim($bbbsession['welcome']);
311
    // Set the duration for the meeting.

classes/locallib/mobileview.php 1 location

@@ 130-136 (lines=7) @@
127
        ];
128
        $data['record'] = self::bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']);
129
        // Check if auto_start_record is enable.
130
        if ($data['record'] == 'true' && $bbbsession['recordallfromstart']) {
131
            $data['autoStartRecording'] = 'true';
132
            // Check if hide_record_button is enable.
133
            if ($bbbsession['recordallfromstart'] && $bbbsession['recordhidebutton']) {
134
                $data['allowStartStopRecording'] = 'false';
135
            }
136
        }
137
        $data['welcome'] = trim($bbbsession['welcome']);
138
        // Set the duration for the meeting.
139
        $durationtime = self::bigbluebutton_bbb_view_create_meeting_data_duration($bbbsession['bigbluebuttonbn']->closingtime);