From 76ed75c3b9d729228f0f0bf4d6903f04b738385c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 7 Mar 2024 20:47:34 +0100 Subject: [PATCH] Fix coding style --- lib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib.php b/lib.php index 6ac797d..97c3927 100644 --- a/lib.php +++ b/lib.php @@ -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 * @@ -91,7 +89,6 @@ public function get_preferred_format() { /** * Supports file picker and repos? * - * @todo * @return bool */ public function supports_repositories() { @@ -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))); } }