Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Mar 7, 2024
1 parent 799b749 commit 76ed75c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* Defines the Marklar editor behaviour in terms of Moodle text editor interface
*
Expand Down Expand Up @@ -91,7 +89,6 @@ public function get_preferred_format() {
/**
* Supports file picker and repos?
*
* @todo
* @return bool
*/
public function supports_repositories() {
Expand Down Expand Up @@ -122,7 +119,8 @@ public function use_editor($elementid, array $options=null, $fpoptions = null) {
// hack to work around that. See MDL-53423 for details.
$PAGE->requires->js_init_code('M.editor_marklar = M.editor_marklar || {}');
$PAGE->requires->js_init_code('M.editor_marklar.fpoptions = M.editor_marklar.fpoptions || {}');
$PAGE->requires->js_init_code(js_writer::set_variable('M.editor_marklar.fpoptions.'.$elementid, convert_to_array($fpoptions)));
$PAGE->requires->js_init_code(js_writer::set_variable('M.editor_marklar.fpoptions.'.$elementid,
convert_to_array($fpoptions)));
}
}

Expand Down

0 comments on commit 76ed75c

Please sign in to comment.