chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$course_id = api_get_course_int_id();

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

                WHERE c_id = $course_id AND user_id = $user_id AND file_id = {$file['id']}";

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

    $recover_id = (int) $_GET['recover_id'];

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

                WHERE c_id = $course_id AND user_id = $user_id AND file_id = {$file['id']}";

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

    $sql = "INSERT INTO $person_tbl VALUES('$course_id', $recover_id, $user_id)";

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

        WHERE c_id = $course_id AND session_id = $session_id";

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

        WHERE c_id = $course_id AND session_id = $session_id";

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

        if (0 == Database::num_rows($result_person)) {

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

$session_id = api_get_session_id();

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

if (empty($course_id)) {

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

        $result_person = Database::query($sql);

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

    $sql = "INSERT INTO $person_tbl VALUES('$course_id', $recover_id, $user_id)";

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

$sql = "SELECT * FROM $file_tbl

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

        $sql = "SELECT * FROM $person_tbl

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

$user_id = api_get_user_id();

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

$person_tbl = Database::get_course_table(TABLE_DROPBOX_PERSON);

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

$file_tbl = Database::get_course_table(TABLE_DROPBOX_FILE);

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

    $sql = "INSERT INTO $person_tbl VALUES('$course_id', $recover_id, $user_id)";

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

    $sql = "INSERT INTO $person_tbl VALUES('$course_id', $recover_id, $user_id)";

There are no issues that match your filters.

Category
Status