MDL-69269 contentbank: Fix issues identified in integration
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 31 Aug 2020 04:40:38 +0000 (12:40 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 31 Aug 2020 23:26:01 +0000 (07:26 +0800)
contentbank/classes/contenttype.php

index 614dd4e..57bf424 100644 (file)
@@ -40,15 +40,16 @@ use moodle_url;
  */
 abstract class contenttype {
 
-    /** Plugin implements uploading feature */
+    /** @var string Constant representing whether the plugin implements uploading feature */
     const CAN_UPLOAD = 'upload';
 
-    /** Plugin implements edition feature */
+    /** @var string Constant representing whether the plugin implements edition feature */
     const CAN_EDIT = 'edit';
 
-    /** Plugin implements download feature
-     *  @since  Moodle 3.10
-    */
+    /**
+     * @var string Constant representing whether the plugin implements download feature
+     * @since  Moodle 3.10
+     */
     const CAN_DOWNLOAD = 'download';
 
     /** @var \context This contenttype's context. **/
@@ -236,7 +237,7 @@ abstract class contenttype {
         $downloadurl = '';
         $file = $content->get_file();
         if (!empty($file)) {
-            $url  = \moodle_url::make_pluginfile_url(
+            $url = \moodle_url::make_pluginfile_url(
                 $file->get_contextid(),
                 $file->get_component(),
                 $file->get_filearea(),