Minor - Format code

pull/2970/head
Julio Montoya 7 years ago
parent c365c95547
commit 4ce324b27b
  1. 1
      main/exercise/exercise.class.php
  2. 2
      main/exercise/question.class.php
  3. 17
      main/inc/lib/internationalization.lib.php
  4. 1
      main/inc/lib/tracking.lib.php

@ -7,7 +7,6 @@ use Chamilo\CourseBundle\Entity\CExerciseCategory;
use ChamiloSession as Session;
use Doctrine\DBAL\Types\Type;
/**
* Class Exercise.
*

@ -1847,7 +1847,7 @@ abstract class Question
echo '<ul class="question_menu">';
foreach ($questionTypeList as $i => $type) {
/** @var Question $type */
$type = new $type[1];
$type = new $type[1]();
$img = $type->getTypePicture();
$explanation = get_lang($type->getExplanation());
echo '<li>';

@ -465,15 +465,14 @@ function api_get_utc_datetime(
/**
* Returns a DATETIME string converted to the right timezone.
*
* @param mixed $time The time to be converted
* @param string $to_timezone The timezone to be converted to.
* If null, the timezone will be determined based on user preference,
* or timezone chosen by the admin for the platform.
* @param string $from_timezone The timezone to be converted from. If null, UTC will be assumed.
* @param bool $returnNullIfInvalidDate
* @param bool $showTime
* @param bool $humanForm
* @param string $format
* @param mixed $time The time to be converted
* @param string $to_timezone If null, the timezone will be determined based on user preference,
* or timezone chosen by the admin for the platform.
* @param string $from_timezone The timezone to be converted from. If null, UTC will be assumed.
* @param bool $returnNullIfInvalidDate Return null if date is not correct.
* @param bool $showTime Show time.
* @param bool $humanForm Return a readable date time.
* @param string $format Specify format.
*
* @return string The converted time formatted as Y-m-d H:i:s
*

@ -2041,6 +2041,7 @@ class Tracking
return $icon.Display::label($last_login_date, 'warning');
}
return $last_login_date;
} else {
if ($convert_date) {

Loading…
Cancel
Save