public/main/auth/courses.php
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$userRegisteredInCourseAsTeacher = CourseManager::isCourseTeacher($user_id, $course['real_id']);
- Exclude checks
Variable "user_courses" is not in valid camel caps format Open
Open
$user_courses = CourseManager::getCoursesByUserCourseCategory($userId);
- Exclude checks
Variable "user_courses" is not in valid camel caps format Open
Open
if ('' != $user_courses) {
- Exclude checks
Variable "user_courses" is not in valid camel caps format Open
Open
foreach ($user_courses as $key => $value) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$userRegisteredInCourse = CourseManager::is_user_subscribed_in_course($user_id, $course['code']);
- Exclude checks
Variable "user_coursecodes" is not in valid camel caps format Open
Open
$user_coursecodes[] = $value['code'];
- Exclude checks
Variable "user_coursecodes" is not in valid camel caps format Open
Open
$user_coursecodes[] = $course['code'];
- Exclude checks
Variable "course_open" is not in valid camel caps format Open
Open
$course_open = COURSE_VISIBILITY_OPEN_PLATFORM == $course['visibility'];
- Exclude checks
Variable "course_public" is not in valid camel caps format Open
Open
$course_public = COURSE_VISIBILITY_OPEN_WORLD == $course['visibility'];
- Exclude checks
Variable "ajax_url" is not in valid camel caps format Open
Open
$ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote';
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_CATALOG;
- Exclude checks
Variable "user_coursecodes" is not in valid camel caps format Open
Open
$user_coursecodes = [];
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$course,
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
);
- Exclude checks
Variable "course_subscribe_allowed" is not in valid camel caps format Open
Open
if ($course_subscribe_allowed) {
- Exclude checks
Variable "course_subscribe_allowed" is not in valid camel caps format Open
Open
$course_subscribe_allowed = 1 == $course['subscribe'];
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$searchTerm,
- Exclude checks
Variable "course_unsubscribe_allowed" is not in valid camel caps format Open
Open
if (!$courseClosed && $course_unsubscribe_allowed &&
- Exclude checks
Variable "ajax_url" is not in valid camel caps format Open
Open
$ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote';
- Exclude checks
Variable "count_connections" is not in valid camel caps format Open
Open
$count_connections = $course['count_connections'];
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$categoryCode
- Exclude checks
Variable "course_private" is not in valid camel caps format Open
Open
$course_private = COURSE_VISIBILITY_REGISTERED == $course['visibility'];
- Exclude checks
Variable "course_unsubscribe_allowed" is not in valid camel caps format Open
Open
$course_unsubscribe_allowed = 1 == $course['unsubscribe'];
- Exclude checks
Variable "creation_date" is not in valid camel caps format Open
Open
$creation_date = substr($course['creation_date'], 0, 10);
- Exclude checks
Variable "ajax_url" is not in valid camel caps format Open
Open
$ajax_url.'&course_id='.$course['real_id'],
- Exclude checks
Variable "course_private" is not in valid camel caps format Open
Open
if (!$course_private) {
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$stok,
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$categoryCode
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$stok,
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
);
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$searchTerm,
- Exclude checks
Multi-line function call not indented correctly; expected 32 spaces but found 36 Open
Open
$course,
- Exclude checks