Minor: Format code

pull/4430/head
Angel Fernando Quiroz Campos 3 years ago
parent 2a1a7b9d3f
commit 84ca93f845
  1. 4
      main/exercise/exercise.class.php
  2. 7
      main/inc/lib/course.lib.php
  3. 3
      main/inc/lib/webservices/Rest.php
  4. 2
      plugin/lti_provider/tool/logout.php

@ -4453,7 +4453,7 @@ class Exercise
$studentAnswerToShow = $studentAnswer;
if (empty($studentAnswer)) {
continue;
break;
}
if ($debug) {
@ -4477,7 +4477,7 @@ class Exercise
}
if (empty($correctAnswer)) {
continue;
break;
}
if (FillBlanks::isStudentAnswerGood(

@ -5066,10 +5066,7 @@ class CourseManager
}
/**
* Updates the language for all courses
*
* @param string $from
* @param string $to
* Updates the language for all courses.
*/
public static function updateAllCourseLanguages(string $from, string $to): bool
{
@ -5079,8 +5076,10 @@ class CourseManager
if (!empty($to) && !empty($from)) {
$sql = "UPDATE $tableCourse SET course_language = '$to'
WHERE course_language = '$from'";
return Database::query($sql);
}
return false;
}

@ -1927,7 +1927,8 @@ class Rest extends WebService
}
/**
* Set a given message as already read
* Set a given message as already read.
*
* @param $messageId
*/
public function setMessageRead(int $messageId)

@ -1,8 +1,6 @@
<?php
/* For license terms, see /license.txt */
use ChamiloSession as Session;
require_once __DIR__.'/../../../main/inc/global.inc.php';
require_once __DIR__.'/../src/LtiProvider.php';
require_once __DIR__.'/../LtiProviderPlugin.php';

Loading…
Cancel
Save