Minor - format code

pull/3924/head
Julio Montoya 4 years ago
parent 93e8b6d3b5
commit 54cb5fd899
  1. 2
      public/main/course_info/download.php
  2. 2
      public/main/exercise/export/aiken/aiken_import.inc.php
  3. 1
      public/main/inc/lib/fileUpload.lib.php
  4. 9
      public/main/lp/learnpathItem.class.php

@ -27,7 +27,7 @@ if (empty($extension) || !file_exists($archive_path.$archive_file)) {
exit;
}
$extension = strtolower($extension);
//$extension = strtolower($extension);
$content_type = '';
if (in_array($extension, ['xml', 'csv']) &&

@ -64,7 +64,7 @@ function aiken_import_exercise($file)
$file_found = false;
$operation = false;
$result = aiken_parse_file($exercise_info, $file);
$result = aiken_parse_file($exercise_info, $file);
if (true !== $result) {
return $result;

@ -1,7 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Entity\ResourceLink;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Entity\CDocument;
use Symfony\Component\HttpFoundation\File\UploadedFile;

@ -5,7 +5,6 @@
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Entity\CForum;
use Chamilo\CourseBundle\Entity\CForumThread;
use Chamilo\CourseBundle\Entity\CLp;
use Chamilo\CourseBundle\Entity\CLpItem;
/**
@ -285,8 +284,8 @@ class learnpathItem
error_log("Type: ".$type);
error_log("get_id: ".$this->get_id());
}
if ($type !== 'sco') {
if ($type == TOOL_QUIZ || $type == TOOL_HOTPOTATOES) {
if ('sco' !== $type) {
if (TOOL_QUIZ == $type || TOOL_HOTPOTATOES == $type) {
$this->get_status(
true,
true
@ -308,6 +307,7 @@ class learnpathItem
if ($debug) {
error_log('End - learnpathItem:close');
}
return true;
}
@ -3709,7 +3709,7 @@ class learnpathItem
Database::update($item_view_table, $params, $where);
} else {
// For all other content types...
if ($this->type === 'quiz') {
if ('quiz' === $this->type) {
$my_status = ' ';
$total_time = ' ';
if (!empty($_REQUEST['exeId'])) {
@ -4258,7 +4258,6 @@ class learnpathItem
*
* @param int $courseId The course ID from the learning path
* @param int $sessionId Optional. The session ID from the learning path
*
*/
public function getForumThread($courseId, $sessionId = 0): ?CForumThread
{

Loading…
Cancel
Save