chamilo/chamilo-lms

View on GitHub
public/main/work/upload.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $user_id,
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$url = api_get_path(WEB_AJAX_PATH).'work.ajax.php?'.api_get_cidreq().'&a=upload_file&id='.$work_id;
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$work_id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : null;
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$course_code = $course_info['code'];
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    } elseif ($student_can_edit_in_session && false == $validationStatus['has_ended']) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$course_info = api_get_course_info();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    'url' => api_get_path(WEB_CODE_PATH).'work/work_list.php?'.api_get_cidreq().'&id='.$work_id,
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    api_get_self().'?'.api_get_cidreq().'&id='.$work_id,
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

protectWork($course_info, $work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

if (false == $is_course_member || api_is_invitee()) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

            $group_id,
Severity: Minor
Found in public/main/work/upload.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();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

            $course_info,
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$course_code = $course_info['code'];
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

            $session_id,
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$workInfo = get_work_data_by_id($work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$is_course_member = $is_course_member || api_is_platform_admin();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

if (!empty($work_id)) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

protectWork($course_info, $work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$student_can_edit_in_session = api_is_allowed_to_session_edit(false, true);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$this_section = SECTION_COURSES;
Severity: Minor
Found in public/main/work/upload.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/work/upload.php by phpcodesniffer

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

$is_course_member = $is_course_member || api_is_platform_admin();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $count = get_work_count_by_student($user_id, $work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    if ($student_can_edit_in_session) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

        if (api_resource_is_locked_by_gradebook($work_id, LINK_STUDENTPUBLICATION)) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$group_id = api_get_group_id();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

if (empty($work_id)) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$current_course_tool = TOOL_STUDENTPUBLICATION;
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$course_id = api_get_course_int_id();
Severity: Minor
Found in public/main/work/upload.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/work/upload.php by phpcodesniffer

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

$session_id = api_get_session_id();
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

if (empty($session_id)) {
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

    $count = get_work_count_by_student($user_id, $work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

$form->addHidden('id', $work_id);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

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

        header('Location: '.api_get_path(WEB_CODE_PATH).'work/'.$script.'?'.api_get_cidreq().'&id='.$work_id);
Severity: Minor
Found in public/main/work/upload.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/work/upload.php by phpcodesniffer

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
Severity: Minor
Found in public/main/work/upload.php by phpcodesniffer

There are no issues that match your filters.

Category
Status