chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

            $file_name = stripslashes($file_name);

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

            $clean_name = api_replace_dangerous_char($file_name);

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

                $file_extension = $filename_components[count($filename_components) - 1];

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 "lp_items_to_remove_audio" is not in valid camel caps format
Open

    if (count($lp_items_to_remove_audio) > 0) {

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

                $clean_name = implode($filename_components).'.'.$file_extension;

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 "clean_name" is not in valid camel caps format
Open

                $filename_components = explode('.', $clean_name);

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

    $lp_items_to_remove_audio = [];

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

                $filename_components[count($filename_components) - 1] = time();

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

        if (isset($is_success) && true === $is_success) {

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

    $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);

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

    DocumentManager::createDefaultAudioFolder($_course);

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

            $clean_name = disable_dangerous_file($clean_name);

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

            $clean_name = disable_dangerous_file($clean_name);

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

        $sql = "UPDATE $tbl_lp_item SET audio = ''

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

            $lp_item_id = str_ireplace('mp3file', '', $key);

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

            $check_file_path = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document/audio/'.$clean_name;

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

                $clean_name = implode($filename_components).'.'.$file_extension;

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 "filename_components" is not in valid camel caps format
Open

                $filename_components = explode('.', $clean_name);

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

                $file_extension = $filename_components[count($filename_components) - 1];

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

        if (isset($is_success) && true === $is_success) {

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

        if (isset($is_success) && true === $is_success) {

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

            $lp_items_to_remove_audio[] = str_ireplace('removemp3', '', $key);

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

            $check_file_path = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document/audio/'.$clean_name;

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

$tbl_lp = Database::get_course_table(TABLE_LP_MAIN);

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

if (!$is_allowed_to_edit || $isStudentView) {

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

            $file_name = add_ext_on_mime($file_name, $_FILES[$key]['type']);

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

            $file_name = add_ext_on_mime($file_name, $_FILES[$key]['type']);

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

            $file_name = stripslashes($file_name);

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

                $clean_name = implode($filename_components).'.'.$file_extension;

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

                $_FILES[$key]['name'] = $clean_name;

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

        if (isset($is_success) && true === $is_success) {

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

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

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

            $in = implode(',', $lp_items_to_remove_audio);

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

            if (file_exists($check_file_path)) {

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

            $sql = "UPDATE $tbl_lp_item

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

                    WHERE iid = ".(int) $lp_item_id;

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

$this_section = SECTION_COURSES;

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

            $check_file_path = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document/audio/'.$clean_name;

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

$tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);

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

    header('location:lp_controller.php?action=view&lp_id='.$learnpath_id);

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

$show_learn_path = true;

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

            $clean_name = api_replace_dangerous_char($file_name);

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

$_course = api_get_course_info();

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

$lp_theme_css = $learnPath->get_theme();

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

            $file_name = $_FILES[$key]['name'];

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

                $file_extension = $filename_components[count($filename_components) - 1];

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

                $filename_components[count($filename_components) - 1] = time();

There are no issues that match your filters.

Category
Status