chamilo/chamilo-lms

View on GitHub
public/main/dropbox/dropbox_download.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                ON (person.file_id=file.id AND file.c_id = $course_id AND person.c_id = $course_id)

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

    if (!is_array($files_to_download) || empty($files_to_download)) {

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

                ON (person.file_id=file.id AND file.c_id = $course_id AND person.c_id = $course_id)

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

    $files_to_download = [];

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

                ON (post.file_id = file.id AND post.c_id = $course_id AND file.c_id = $course_id)

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

    $allowed_to_download = true;

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

                    file.uploader_id = $user_id AND

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

    if (!is_array($files_to_download) || empty($files_to_download)) {

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

    $path = api_get_path(SYS_COURSE_PATH).$_course['path'].'/dropbox/'.$work->filename;

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

    zip_download($files_to_download);

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

if (!$allowed_to_download) {

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

$user_id = api_get_user_id();

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

                ON (person.file_id=file.id AND file.c_id = $course_id AND person.c_id = $course_id)

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

                    person.user_id = $user_id";

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

        $files_to_download[] = $row['id'];

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

                    post.dest_user_id = $user_id";

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

    $_SESSION['_seen'][$_course['id']][TOOL_DROPBOX][] = intval($_GET['id']);

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

$_course = api_get_course_info();

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

$course_id = api_get_course_int_id();

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

$allowed_to_download = false;

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

                ON (person.file_id=file.id AND file.c_id = $course_id AND person.c_id = $course_id)

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

                ON (post.file_id = file.id AND post.c_id = $course_id AND file.c_id = $course_id)

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

        api_get_path(SYS_COURSE_PATH).$_course['path'].'/dropbox/'

There are no issues that match your filters.

Category
Status