Code Duplication    Length = 6-6 lines in 2 locations

mod_form.php 2 locations

@@ 462-467 (lines=6) @@
459
            $field['description_key'], $cfg['lockonjoinconfigurable_default']);
460
461
        // Output message if no settings.
462
        if (!$locksettings) {
463
            $field = ['type' => 'static', 'name' => 'no_locksettings',
464
                'defaultvalue' => get_string('mod_form_field_nosettings', 'bigbluebuttonbn')];
465
            $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], null, null,
466
                $field['defaultvalue']);
467
        }
468
    }
469
470
    /**
@@ 516-521 (lines=6) @@
513
        $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
514
            $field['description_key'], $cfg['recordings_preview_default']);
515
516
        if (!$recordingsettings) {
517
            $field = ['type' => 'static', 'name' => 'no_recordings',
518
                'defaultvalue' => get_string('mod_form_field_nosettings', 'bigbluebuttonbn')];
519
            $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], null, null,
520
                $field['defaultvalue']);
521
        }
522
    }
523
524
    /**