chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$lp_theme_css = $learnPath->get_theme();
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

$show_learn_path = true;
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

if (0 == $learnpath_id) {
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

    $is_new = true;
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

$is_allowed_to_edit = api_is_allowed_to_edit(null, true);
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

$learnpath_id = (int) $_REQUEST['lp_id'];
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

    header('location:lp_controller.php?action=view&lp_id='.$learnpath_id.'&'.api_get_cidreq());
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

$this_section = SECTION_COURSES;
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

$is_new = false;
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

Consider putting global function "show_block" in a static class
Open

function show_block($link, $title, $subtitle, $icon)
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

if (!$is_allowed_to_edit || $isStudentView) {
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

if (isset($is_success) && true === $is_success) {
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

Missing function doc comment
Open

function show_block($link, $title, $subtitle, $icon)
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

    if ($is_new) {
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

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

if (isset($is_success) && true === $is_success) {
Severity: Minor
Found in public/main/lp/lp_build.php by phpcodesniffer

There are no issues that match your filters.

Category
Status