Browse Source

Minor - format code, flint fixes

Julio Montoya 6 năm trước cách đây
mục cha
commit
32700f8a61

+ 1 - 1
main/exercise/export/scorm/ScormAnswerFillInBlanks.php

@@ -37,7 +37,7 @@ class ScormAnswerFillInBlanks extends Answer
             $attributes['style'] = 'width:'.$listAnswerInfo['input_size'][$i].'px';
             $answer .= FillBlanks::getFillTheBlankHtml(
                 $this->questionJSId,
-                $this->questionJSId+1,
+                $this->questionJSId + 1,
                 '',
                 $attributes,
                 $answer,

+ 1 - 2
main/exercise/export/scorm/ScormQuestion.php

@@ -27,7 +27,6 @@ class ScormQuestion extends Question
     public function __construct()
     {
         parent::__construct();
-
     }
 
     /**
@@ -35,7 +34,7 @@ class ScormQuestion extends Question
      *
      * @param int  $questionId The question ID
      * @param bool $standalone (ie including XML tag, DTD declaration, etc)
-     * @param int  $jsId      The JavaScript ID for this question.
+     * @param int  $jsId       The JavaScript ID for this question.
      *                         Due to the nature of interactions, we must have a natural sequence for
      *                         questions in the generated JavaScript.
      *

+ 0 - 2
main/exercise/export/scorm/scorm_classes.php

@@ -1,8 +1,6 @@
 <?php
 /* For licensing terms, see /license.txt */
 
-
-
 /**
  * This class handles the SCORM export of free-answer questions.
  *

+ 1 - 0
main/inc/lib/api.lib.php

@@ -6265,6 +6265,7 @@ function api_replace_dangerous_char($filename, $treat_spaces_as_hyphens = true)
         false,
         $treat_spaces_as_hyphens
     );
+
     return $url;
 }
 

+ 1 - 0
main/inc/lib/exercise.lib.php

@@ -1456,6 +1456,7 @@ HTML;
                                 });
                         </script>
                     ";
+
                     return;
                 }
             }

+ 1 - 1
main/inc/local.inc.php

@@ -366,7 +366,7 @@ if (!empty($_SESSION['_user']['user_id']) && !($login || $logout)) {
                         $function = $options['check_login_function'];
                         $params = [
                             'login' => $uData['username'],
-                            'password' => $password
+                            'password' => $password,
                         ];
                         $result = $soapclient->call($function, [serialize($params)]);
                         if ($error = $soapclient->getError()) {

+ 1 - 1
main/lp/learnpath.class.php

@@ -101,7 +101,7 @@ class learnpath
      * Also builds the list of items into $this->items.
      *
      * @param string $course  Course code
-     * @param int    $lp_id c_lp.iid
+     * @param int    $lp_id   c_lp.iid
      * @param int    $user_id
      */
     public function __construct($course, $lp_id, $user_id)