chamilo/chamilo-lms

View on GitHub
public/main/lp/lp_view_item.php

Summary

Maintainability
A
0 mins
Test Coverage

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

if (!$is_allowed_to_edit || $isStudentView) {

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

    'url' => api_get_self()."?action=add_item&type=step&lp_id=$learnpath_id&".api_get_cidreq(),

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

$lp_theme_css = $lp->get_theme();

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

$this_section = SECTION_COURSES;

Closing brace must be on a line by itself
Open

            echo $lp->return_new_tree(); exit;

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

    $real_url_info = parse_url(api_get_path(WEB_PATH));

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

    header('Location: '.api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?action=view&lp_id='.$learnpath_id.'&'.api_get_cidreq());

Terminating statement must be on a line by itself
Open

            echo $lp->return_new_tree(); exit;

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

    $url_info = parse_url($src);

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

    if ($url_info['host'] == $real_url_info['host']) {

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

    'url' => api_get_self()."?action=add_item&lp_id=$learnpath_id&".api_get_cidreq(),

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

$id = isset($new_item_id) ? $new_item_id : $_GET['id'];

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

    $lp_item_id = (int) $_GET['lp_item_id'];

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

$course_id = api_get_course_int_id();

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

    if ($url_info['host'] == $real_url_info['host']) {

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

$id = isset($new_item_id) ? $new_item_id : $_GET['id'];

Each PHP statement must be on a line by itself
Open

            echo $lp->return_new_tree(); exit;

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

        $src = $lp->get_link('http', $lp_item_id);

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

$is_allowed_to_edit = api_is_allowed_to_edit(null, true);

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

$learnpath_id = (int) $_REQUEST['lp_id'];

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

$show_learn_path = true;

Closing brace must be on a line by itself
Open

            echo $lp->return_new_tree(); exit;

There are no issues that match your filters.

Category
Status