diff --git a/view.php b/view.php
index cbc9a46fd4500b9722bcd319656d1d5c1c68fd85..ac6690e3501bed13e68487e5488e51c2ddb6acc3 100644
--- a/view.php
+++ b/view.php
@@ -83,14 +83,14 @@ if (!isset($CFG->mod_hvp_export) || $CFG->mod_hvp_export === true) {
     // Find course context.
     $context = \context_course::instance($course->id);
     if (has_capability('mod/hvp:getexport', $context)) {
-      $hvppath = "{$CFG->httpswwwroot}/pluginfile.php/{$context->id}/mod_hvp";
-      $exportfilename = ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p';
-      $export = "{$hvppath}/exports/{$exportfilename}";
+        $hvppath = "{$CFG->httpswwwroot}/pluginfile.php/{$context->id}/mod_hvp";
+        $exportfilename = ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p';
+        $export = "{$hvppath}/exports/{$exportfilename}";
     }
 }
 if (empty($export)) {
-  // Remove Download button when there's no export URL
-  $content['disable'] |= \H5PCore::DISABLE_DOWNLOAD;
+    // Remove Download button when there's no export URL
+    $content['disable'] |= \H5PCore::DISABLE_DOWNLOAD;
 }
 
 // Add JavaScript settings for this content.