chamilo/chamilo-lms

View on GitHub
public/main/calendar/agenda_js.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "export_icon_low" is not in valid camel caps format
Open

$export_icon_low = ActionIcon::EXPORT_ARCHIVE;

Variable "export_icon_high" is not in valid camel caps format
Open

$export_icon_high = ActionIcon::EXPORT_ARCHIVE;

Variable "group_id" is not in valid camel caps format
Open

if ('course' === $type && !empty($group_id)) {

Variable "can_add_events" is not in valid camel caps format
Open

$tpl->assign('can_add_events', $can_add_events);

Variable "group_id" is not in valid camel caps format
Open

    $group_properties = GroupManager::get_group_properties($group_id);

Variable "group_id" is not in valid camel caps format
Open

$group_id = api_get_group_id();

Variable "group_properties" is not in valid camel caps format
Open

    $group_properties = GroupManager::get_group_properties($group_id);

Variable "type_label" is not in valid camel caps format
Open

$type_label = get_lang(ucfirst($type).'Calendar');

Variable "type_event_class" is not in valid camel caps format
Open

    $type_event_class = 'session_event';

Variable "can_add_events" is not in valid camel caps format
Open

$can_add_events = 0;

Variable "extra_field_data" is not in valid camel caps format
Open

            isset($extra_field_data['google_calendar_url']) &&

Variable "extra_field_data" is not in valid camel caps format
Open

            $tpl->assign('google_calendar_url', $extra_field_data['google_calendar_url']);

Variable "type_label" is not in valid camel caps format
Open

    $type_label = get_lang('Session calendar');

Variable "type_event_class" is not in valid camel caps format
Open

$tpl->assign('type_event_class', $type_event_class);

Variable "agenda_ajax_url" is not in valid camel caps format
Open

    $agenda_ajax_url = api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?type='.$type;

Variable "agenda_ajax_url" is not in valid camel caps format
Open

$tpl->assign('web_agenda_ajax_url', $agenda_ajax_url);

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_MYAGENDA;

Variable "this_section" is not in valid camel caps format
Open

        $this_section = SECTION_COURSES;

Variable "can_add_events" is not in valid camel caps format
Open

            $can_add_events = 1;

Variable "agenda_ajax_url" is not in valid camel caps format
Open

    $agenda_ajax_url .= '&'.api_get_cidreq();

Variable "group_properties" is not in valid camel caps format
Open

        "name" => get_lang('Group area').' '.$group_properties['name'],

Variable "extra_field_data" is not in valid camel caps format
Open

        $extra_field_data = UserManager::get_extra_user_data_by_field(

Variable "can_add_events" is not in valid camel caps format
Open

            $can_add_events = 1;

Variable "region_value" is not in valid camel caps format
Open

    $region_value = 'en-GB';

Variable "type_event_class" is not in valid camel caps format
Open

$type_event_class = $type.'_event';

Variable "this_section" is not in valid camel caps format
Open

        $this_section = SECTION_PLATFORM_ADMIN;

Variable "extra_field_data" is not in valid camel caps format
Open

        if (!empty($extra_field_data) &&

Variable "extra_field_data" is not in valid camel caps format
Open

            !empty($extra_field_data['google_calendar_url'])

Variable "type_event_class" is not in valid camel caps format
Open

    $type_event_class = 'group_event';

Variable "type_label" is not in valid camel caps format
Open

    $type_label = get_lang('Agenda');

Variable "can_add_events" is not in valid camel caps format
Open

            $can_add_events = 1;

Variable "region_value" is not in valid camel caps format
Open

$region_value = api_get_language_isocode();

Variable "export_icon" is not in valid camel caps format
Open

$export_icon = ActionIcon::EXPORT_ARCHIVE;

Variable "export_icon_high" is not in valid camel caps format
Open

        $export_icon_high,

Variable "agenda_ajax_url" is not in valid camel caps format
Open

    $agenda_ajax_url = api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?user_id='.$userId.'&type='.$type;

Variable "type_event_class" is not in valid camel caps format
Open

switch ($type_event_class) {

Variable "type_label" is not in valid camel caps format
Open

$tpl->assign('type_label', $type_label);

Variable "agenda_ajax_url" is not in valid camel caps format
Open

$agenda_ajax_url .= '&sec_token='.Security::get_token();

Variable "current_course_tool" is not in valid camel caps format
Open

$current_course_tool = TOOL_CALENDAR_EVENT;

Variable "session_id" is not in valid camel caps format
Open

if ('course' === $type && !empty($session_id)) {

Variable "use_anonymous" is not in valid camel caps format
Open

$use_anonymous = true;

Variable "session_id" is not in valid camel caps format
Open

$session_id = api_get_session_id();

Variable "group_id" is not in valid camel caps format
Open

if (!empty($group_id)) {

Variable "region_value" is not in valid camel caps format
Open

if ('en' === $region_value) {

Variable "region_value" is not in valid camel caps format
Open

$tpl->assign('region_value', $region_value);

Variable "this_section" is not in valid camel caps format
Open

        $this_section = SECTION_COURSES;

Variable "this_section" is not in valid camel caps format
Open

        $this_section = SECTION_MYAGENDA;

Variable "agenda_ajax_url" is not in valid camel caps format
Open

    $agenda_ajax_url .= '&session_id='.intval($_GET['session_id']);

There are no issues that match your filters.

Category
Status