Code Duplication    Length = 7-7 lines in 2 locations

bbb_view.php 1 location

@@ 302-308 (lines=7) @@
299
            ];
300
    $data['record'] = bigbluebuttonbn_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

@@ 101-107 (lines=7) @@
98
        ];
99
        $data['record'] = self::create_meeting_data_record($bbbsession['record']);
100
        // Check if auto_start_record is enable.
101
        if ($data['record'] == 'true' && $bbbsession['recordallfromstart']) {
102
            $data['autoStartRecording'] = 'true';
103
            // Check if hide_record_button is enable.
104
            if ($bbbsession['recordallfromstart'] && $bbbsession['recordhidebutton']) {
105
                $data['allowStartStopRecording'] = 'false';
106
            }
107
        }
108
        $data['welcome'] = trim($bbbsession['welcome']);
109
        // Set the duration for the meeting.
110
        $durationtime = self::create_meeting_data_duration($bbbsession['bigbluebuttonbn']->closingtime);