chamilo/chamilo-lms

View on GitHub
public/main/course_info/legal.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;

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

            COURSE_VISIBILITY_REGISTERED == $course_info['visibility'] &&

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

if (empty($session_id)) {

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

$session_id = isset($_REQUEST['session_id']) ? (int) $_REQUEST['session_id'] : null;

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

        $course_legal = $data['content'];

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

        $session_id

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

    if (1 == $accept_legal) {

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

$user_pass_open_course = false;

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

    $accept_legal = $form->exportValue('accept_legal');

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

$course_info = api_get_course_info($course_code);

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

$form->addElement('hidden', 'course_code', $course_code);

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

    $user_pass_open_course = true;

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

$user_id = api_get_user_id();

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

        $user_id,

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

$form = new FormValidator('legal', 'GET', api_get_self().'?course_code='.$course_code.'&session_id='.$session_id);

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

    $form->addElement('label', null, $plugin->getCurrentFile($course_info['real_id'], $session_id));

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

$url = api_get_course_url($course_info['real_id'], $session_id);

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

            CourseManager::subscribeUser($user_id, $course_info['real_id'], STUDENT, 0);

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

            CourseManager::subscribeUser($user_id, $course_info['real_id'], STUDENT, 0);

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

            $session_id

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

$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;

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

if (api_check_user_access_to_legal($course_info) && Session::read($variable)) {

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

$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;

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

            1 == $course_info['subscribe']

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

$course_legal = $course_info['legal'];

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

    $form->addElement('label', null, $plugin->getCurrentFile($course_info['real_id'], $session_id));

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

        if (empty($session_id) &&

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

        CourseManager::save_user_legal($user_id, $course_info, $session_id);

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

$course_info = api_get_course_info($course_code);

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

$form = new FormValidator('legal', 'GET', api_get_self().'?course_code='.$course_code.'&session_id='.$session_id);

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

$form->addElement('label', null, $course_legal);

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

$this_section = SECTION_COURSES;

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

        CourseManager::save_user_legal($user_id, $course_info, $session_id);

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

        if (api_check_user_access_to_legal($course_info)) {

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

            $user_id,

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

            $course_info['real_id'],

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

$form->addElement('hidden', 'session_id', $session_id);

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

$url = api_get_course_url($course_info['real_id'], $session_id);

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

$course_code = isset($_REQUEST['course_code']) ? Security::remove_XSS($_REQUEST['course_code']) : null;

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

if (empty($course_code)) {

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

$course_legal = $course_info['legal'];

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

        $course_info['real_id'],

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

    if (CourseManager::is_user_subscribed_in_course($user_id, $course_code) ||

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

    $data = $plugin->getData($course_info['real_id'], $session_id);

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

        CourseManager::save_user_legal($user_id, $course_info, $session_id);

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

    $data = $plugin->getData($course_info['real_id'], $session_id);

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

        if ($user_accepted_legal || $user_pass_open_course) {

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

        if ($user_accepted_legal || $user_pass_open_course) {

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

        if ($user_accepted_legal || $user_pass_open_course) {

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

    if (isset($userStatus) || api_check_user_access_to_legal($course_info)) {

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

            $session_id

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

            $user_id,

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

            $course_code

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

    $userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);

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

        $user_accepted_legal = CourseManager::is_user_accepted_legal(

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

            $user_id,

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

        api_check_user_access_to_legal($course_info)

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

        $user_accepted_legal = CourseManager::is_user_accepted_legal(

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

    $userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);

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

        if ($user_accepted_legal || $user_pass_open_course) {

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

            $course_code,

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

    if (CourseManager::is_user_subscribed_in_course($user_id, $course_code) ||

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

    $userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);

There are no issues that match your filters.

Category
Status