Minor - format code, use int casting

pull/2858/head
Julio Montoya 7 years ago
parent b77a4bda9d
commit 8a028c00fe
  1. 9
      main/calendar/agenda_list.php
  2. 1
      main/lp/lp_update_scorm.php
  3. 2
      main/survey/survey_invite.php
  4. 6
      src/Chamilo/CourseBundle/Component/CourseCopy/Resources/LearnPathCategory.php

@ -13,7 +13,6 @@ $logInfo = [
'tool_id' => 0,
'tool_id_detail' => 0,
'action' => $action,
'info' => '',
];
Event::registerLog($logInfo);
@ -31,12 +30,12 @@ if (!empty($groupId)) {
$groupProperties = GroupManager::get_group_properties($groupId);
$groupId = $groupProperties['iid'];
$interbreadcrumb[] = [
"url" => api_get_path(WEB_CODE_PATH)."group/group.php?".api_get_cidreq(),
"name" => get_lang('Groups'),
'url' => api_get_path(WEB_CODE_PATH)."group/group.php?".api_get_cidreq(),
'name' => get_lang('Groups'),
];
$interbreadcrumb[] = [
"url" => api_get_path(WEB_CODE_PATH)."group/group_space.php?".api_get_cidreq(),
"name" => get_lang('GroupSpace').' '.$groupProperties['name'],
'url' => api_get_path(WEB_CODE_PATH)."group/group_space.php?".api_get_cidreq(),
'name' => get_lang('GroupSpace').' '.$groupProperties['name'],
];
}

@ -8,7 +8,6 @@
*
* @package chamilo.learnpath
*/
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_COURSES;

@ -26,7 +26,7 @@ $course_id = api_get_course_int_id();
$_course = api_get_course_info();
// Getting the survey information
$survey_id = Security::remove_XSS($_GET['survey_id']);
$survey_id = (int) $_GET['survey_id'];
$survey_data = SurveyManager::get_survey($survey_id);
if (empty($survey_data)) {
api_not_allowed(true);

@ -21,10 +21,8 @@ class LearnPathCategory extends Resource
* @param int $id
* @param string $object
*/
public function __construct(
$id,
$object
) {
public function __construct($id, $object)
{
parent::__construct($id, RESOURCE_LEARNPATH_CATEGORY);
$this->object = $object;
}

Loading…
Cancel
Save