chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$course_id = isset($_REQUEST['cid']) ? (int) $_REQUEST['cid'] : api_get_course_int_id();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                $file_info = parse_url($src);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$display_none = '';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $lpMinTime = '('.$time_min.' min)';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    if ($lpTime >= ($time_min * 60)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$course_code = $courseInfo['code'];
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$course = api_get_course_entity($course_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $src = api_get_path(WEB_CODE_PATH).'lp/lp_view_item.php?lp_item_id='.$lp_item_id.'&'.api_get_cidreq();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    if (!empty($safe_id) && !empty($safe_item_id)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $lp_theme_css = $my_style;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

            $userScore = $gradebookLinks[0]->calc_score($user_id, 'best');
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('is_allowed_to_edit', $is_allowed_to_edit);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

    $url = api_get_path(WEB_CODE_PATH)."lp/lp_impress.php?lp_id=$lp_id&".api_get_cidreq();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$get_toc_list = $oLP->get_toc();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $TBL_LP_ITEM_VIEW = Database::get_course_table(TABLE_LP_ITEM_VIEW);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$margin_left = '340px';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('progress_bar', $progress_bar);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$lp_id = !empty($_GET['lp_id']) ? (int) $_GET['lp_id'] : 0;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $time_progress_value = 100;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$user_id = api_get_user_id();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

            $preReqCheck = $oLP->prerequisites_match($lp_item_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        Exercise::saveExerciseInLp($safe_item_id, $safe_exe_id, $course_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$oLP->set_previous_item($lp_item_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $lp_theme_css = $my_style;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$navigation_bar = $oLP->get_navigation_bar();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$sql = "SELECT audio FROM $tbl_lp_item
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$res_media = Database::query($sql);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        if (!empty($row_media['audio'])) {
Severity: Minor
Found in public/main/lp/lp_view.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(false, true, true, false);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $course_id,
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $template->assign('time_progress_value', $time_progress_value);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $lp_item_id,
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $get_toc_list
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                $src = $oLP->get_link('http', $lp_item_id, $get_toc_list);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    if (!empty($safe_id) && !empty($safe_item_id)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$get_teacher_buttons = $oLP->get_teacher_toc_buttons();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                $src = $oLP->get_link('http', $lp_item_id, $get_toc_list);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

            $gradebookLinks[0]->get_ref_id() == $oLP->lp_id
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $lpTime = isset($lpTimeList[TOOL_LEARNPATH][$lp_id]) ? (int) $lpTimeList[TOOL_LEARNPATH][$lp_id] : 0;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $time_progress_perc = '100%';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$lp_item_id = $oLP->get_current_item_id();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $type_quiz = 'quiz' === $toc['type'];
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $lp_item_id,
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $TBL_TRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

    $lpTimeList = Tracking::getCalculateTime($user_id, api_get_course_int_id(), api_get_session_id());
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $lp_id = $lp->getIid();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

Session::write('scorm_item_id', $lp_item_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $safe_item_id = (int) $_REQUEST['lp_item_id'];
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

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

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

$display_mode = $lp->getDefaultViewMod();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

if (Database::num_rows($res_media) > 0) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('toc_list', $get_toc_list);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('teacher_toc_buttons', $get_teacher_buttons);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $time_min = (int) ($pl * $tc * $perc / 100);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

if (empty($lp_id)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

chamilo_courseCode = "'.$course_code.'";
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $file_info = pathinfo($file_info['path']);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                if (isset($file_info['extension']) &&
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    'pdf' === api_strtolower(substr($file_info['extension'], 0, 3))
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $TBL_LP_ITEM = Database::get_course_table(TABLE_LP_ITEM);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

$progress_bar = '';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$courseInfo = api_get_course_info_by_id($course_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

foreach ($get_toc_list as $toc) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    error_log('$lp_id: '.$lp_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    while ($row_media = Database::fetch_array($res_media)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                Category::generateUserCertificate($categoryEntity, $user_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('navigation_bar', $navigation_bar);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('navigation_bar_bottom', $navigation_bar_bottom);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $time_progress_value = intval(($lpTime * 100) / ($time_min * 60));
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $time_progress_perc = $time_progress_value.'%';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $user = api_get_user_entity($user_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $get_toc_list
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $safe_id = $lp_id;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $progress_bar = $oLP->getProgressBar();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $time_progress_value = intval(($lpTime * 100) / ($time_min * 60));
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $template->assign('time_progress_perc', $time_progress_perc);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

            $preReqCheck = $oLP->prerequisites_match($lp_item_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    error_log('$type_quiz: '.$type_quiz);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    isset($lp_id) &&
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $safe_id = $lp_id;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        Exercise::saveExerciseInLp($safe_item_id, $safe_exe_id, $course_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$save_setting = api_get_setting('show_navigation_menu');
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$navigation_bar_bottom = $oLP->get_navigation_bar('control-bottom');
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    while ($row_media = Database::fetch_array($res_media)) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$my_style = Container::getThemeHelper()->getVisualTheme();
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                if (isset($file_info['path'])) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

            $preReqCheck = $oLP->prerequisites_match($lp_item_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $lpTime = isset($lpTimeList[TOOL_LEARNPATH][$lp_id]) ? (int) $lpTimeList[TOOL_LEARNPATH][$lp_id] : 0;
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

    $safe_exe_id = (int) $_REQUEST['exeId'];
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

$template->assign('show_audio_player', $show_audioplayer);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

                    $file_info = pathinfo($file_info['path']);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        Exercise::saveExerciseInLp($safe_item_id, $safe_exe_id, $course_id);
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

        $src = api_get_path(WEB_CODE_PATH).'exercise/result.php?id='.$safe_exe_id.'&'.api_get_cidreq(true, true, 'learnpath');
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

if (!empty($lp_theme_css) && !empty($mycourselptheme) && -1 != $mycourselptheme && 1 == $mycourselptheme) {
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

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

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

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

        $time_progress_perc = $time_progress_value.'%';
Severity: Minor
Found in public/main/lp/lp_view.php by phpcodesniffer

There are no issues that match your filters.

Category
Status