MDL-36088 questions: Add new events
[moodle.git] / question / export.php
index 81b86fa..07d48dc 100644 (file)
@@ -77,13 +77,13 @@ if ($from_form = $export_form->get_data()) {
     echo get_string('yourfileshoulddownload', 'question', $export_url->out());
     echo $OUTPUT->box_end();
 
-        // Log the export of these questions.
-        $eventparams = array(
+    // Log the export of these questions.
+    $eventparams = [
             'contextid' => $category->contextid,
-            'other' => array('format' => $from_form->format, 'categoryid' => $category->id)
-        );
-        $event = \core\event\questions_exported::create($eventparams);
-        $event->trigger();
+            'other' => ['format' => $from_form->format, 'categoryid' => $category->id],
+    ];
+    $event = \core\event\questions_exported::create($eventparams);
+    $event->trigger();
 
     // Don't allow force download for behat site, as pop-up can't be handled by selenium.
     if (!defined('BEHAT_SITE_RUNNING')) {