chamilo/chamilo-lms

View on GitHub
public/main/auth/courses.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $user_id = api_get_user_id();
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $userRegisteredInCourseAsTeacher = CourseManager::isCourseTeacher($user_id, $course['real_id']);
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

        $user_courses = CourseManager::getCoursesByUserCourseCategory($userId);
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

        if ('' != $user_courses) {
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

            foreach ($user_courses as $key => $value) {
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $userRegisteredInCourse = CourseManager::is_user_subscribed_in_course($user_id, $course['code']);
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                $user_coursecodes[] = $value['code'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                $user_coursecodes[] = $course['code'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $course_open = COURSE_VISIBILITY_OPEN_PLATFORM == $course['visibility'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $course_public = COURSE_VISIBILITY_OPEN_WORLD == $course['visibility'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

            $ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote';
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

$this_section = SECTION_CATALOG;
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

        $user_coursecodes = [];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $course,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                );
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                                if ($course_subscribe_allowed) {
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $course_subscribe_allowed = 1 == $course['subscribe'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $searchTerm,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                        if (!$courseClosed && $course_unsubscribe_allowed &&
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                        $ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote';
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $count_connections = $course['count_connections'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $categoryCode
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $course_private = COURSE_VISIBILITY_REGISTERED == $course['visibility'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $course_unsubscribe_allowed = 1 == $course['unsubscribe'];
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                    $creation_date = substr($course['creation_date'], 0, 10);
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                            $ajax_url.'&course_id='.$course['real_id'],
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

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

                            if (!$course_private) {
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $stok,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $categoryCode
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $stok,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                );
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $searchTerm,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    $course,
Severity: Minor
Found in public/main/auth/courses.php by phpcodesniffer

There are no issues that match your filters.

Category
Status