chamilo/chamilo-lms

View on GitHub
public/main/cron/document/index_all_docs.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$specific_fields = get_specific_field_list();

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

            $extensions = preg_split("/[\/\\.]/", $doc_path);

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

$specific_fields_values = [];

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

            if (in_array($doc_ext, $allowed_extensions) && !is_dir($doc_path)) {

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

    $specific_fields_values[$sf['code']] = '';

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

foreach ($specific_fields as $sf) {

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

                $doc_mime = mime_content_type($doc_path);

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

$allowed_mime_types = DocumentManager::file_get_mime_type(true);

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

                $doc_mime = mime_content_type($doc_path);

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

            $doc_path = api_get_path(SYS_COURSE_PATH).$course_dir.$row['path'];

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

            $doc_ext = strtolower($extensions[count($extensions) - 1]);

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

            if (in_array($doc_ext, $allowed_extensions) && !is_dir($doc_path)) {

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

$courses_list = CourseManager::get_courses_list();

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

            $doc_path = api_get_path(SYS_COURSE_PATH).$course_dir.$row['path'];

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

                $residx = DocumentManager::index_document($row['id'], $course['code'], $row['session_id'], $course['course_language'], $specific_fields_values);

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

$allowed_extensions = [

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

foreach ($courses_list as $course) {

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

    $course_dir = $course['directory'].'/document';

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

            if (in_array($doc_ext, $allowed_extensions) && !is_dir($doc_path)) {

There are no issues that match your filters.

Category
Status