Minor - format code

pull/3661/head
Julio Montoya 5 years ago
parent f6bd3f5765
commit 0607b355cb
  1. 6
      main/inc/lib/ExerciseCategoryManager.php
  2. 6
      main/inc/lib/exercise.lib.php
  3. 3
      main/inc/lib/export.lib.inc.php

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\CourseBundle\Entity\CExerciseCategory;
@ -103,7 +104,7 @@ class ExerciseCategoryManager extends Model
$table = Database::get_course_table(TABLE_QUIZ_TEST);
$id = (int) $id;
$sql = "UPDATE $table SET exercise_category_id = 0
$sql = "UPDATE $table SET exercise_category_id = 0
WHERE c_id = $courseId AND exercise_category_id = $id";
Database::query($sql);
}
@ -117,7 +118,6 @@ class ExerciseCategoryManager extends Model
*/
public function save($params, $showQuery = false)
{
$courseId = api_get_course_int_id();
$em = Database::getManager();
$category = new CExerciseCategory();
$category
@ -176,7 +176,7 @@ JAVASCRIPT;
</a>
JAVASCRIPT;
return "function action_formatter(cellvalue, options, rowObject) {
return "function action_formatter(cellvalue, options, rowObject) {
return '$editButton $deleteButton';
}";
}

@ -6035,9 +6035,9 @@ EOT;
continue;
}
} else {
if (false === $passBlock) {
continue;
}
if (false === $passBlock) {
continue;
}
}
}

@ -1,4 +1,5 @@
<?php
/* See license terms in /license.txt */
use Chamilo\CoreBundle\Component\Editor\Connector;
@ -15,8 +16,6 @@ use Symfony\Component\Filesystem\Filesystem;
* This is the export library for Chamilo.
* Include/require it in your code to use its functionality.
* Several functions below are adaptations from functions distributed by www.nexen.net.
*
* @package chamilo.library
*/
class Export
{

Loading…
Cancel
Save