public/main/my_space/current_courses.php
Variable "teacher_list" is not in valid camel caps format Open
Open
$teacher_list = [];
- Exclude checks
Variable "tmp_students" is not in valid camel caps format Open
Open
foreach ($tmp_students as $student) {
- Exclude checks
Variable "teacher_list" is not in valid camel caps format Open
Open
$array[$i]['teachers'] = implode(', ', $teacher_list);
- Exclude checks
Variable "avg_progress_in_course" is not in valid camel caps format Open
Open
if (intval($avg_progress_in_course) > 0 && intval($avg_progress_in_course) <= 50) {
- Exclude checks
Variable "time_spent" is not in valid camel caps format Open
Open
$time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_id, $session_id);
- Exclude checks
Variable "total_time_spent" is not in valid camel caps format Open
Open
$total_time_spent += $time_spent;
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$student_count = count($students);
- Exclude checks
Variable "my_courses" is not in valid camel caps format Open
Open
$my_courses = CourseManager::get_course_list_of_user_as_course_admin($user_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$tmp_students = CourseManager::get_student_list_from_course_code($course_code, false);
- Exclude checks
Variable "count_students_accessing" is not in valid camel caps format Open
Open
$count_students_accessing = 0;
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
Open
$avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_id, $session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info_by_id($course['id']);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "total_tools_list" is not in valid camel caps format Open
Open
foreach ($total_tools_list as $tool) {
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "avg_progress_in_course" is not in valid camel caps format Open
Open
$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$array[$i]['lp'] = '<a href="'.api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?cidReq='.$course_code.'&action=view&lp_id='.$lp_id.'" target="_blank">'.$learnpath['title'].'</a>';
- Exclude checks
Variable "count_students_complete_all_activities" is not in valid camel caps format Open
Open
$count_students_complete_all_activities = 0;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "total_average_progress" is not in valid camel caps format Open
Open
$total_average_progress += $avg_progress_in_course;
- Exclude checks
Variable "my_courses" is not in valid camel caps format Open
Open
if (!empty($my_courses)) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = $course_info['code'];
- Exclude checks
Variable "teacher_list" is not in valid camel caps format Open
Open
$teacher_list[] = $teacher['firstname'].' '.$teacher['lastname'];
- Exclude checks
Variable "t_news" is not in valid camel caps format Open
Open
$t_news = Database::get_course_table(TABLE_ANNOUNCEMENT);
- Exclude checks
Variable "avg_progress_in_course" is not in valid camel caps format Open
Open
$total_average_progress += $avg_progress_in_course;
- Exclude checks
Variable "sql_lpi" is not in valid camel caps format Open
Open
$sql_lpi = "SELECT lpi.item_type FROM $t_lpi lpi
- Exclude checks
Variable "t_lpi" is not in valid camel caps format Open
Open
$sql_lpi = "SELECT lpi.item_type FROM $t_lpi lpi
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_code = $course_info['code'];
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$teachers = CourseManager::get_teacher_list_from_course_code($course_code);
- Exclude checks
Variable "t_lp" is not in valid camel caps format Open
Open
$t_lp = Database::get_course_table(TABLE_LP_MAIN);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
WHERE li.c_id = $course_id AND li.session_id = 0";
- Exclude checks
Variable "t_lpi" is not in valid camel caps format Open
Open
$t_lpi = Database::get_course_table(TABLE_LP_ITEM);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "count_students_complete_all_activities" is not in valid camel caps format Open
Open
$count_students_complete_all_activities++;
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
if (STUDENT != $user_info['status']) {
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
foreach ($students as $student_id) {
- Exclude checks
Variable "time_spent" is not in valid camel caps format Open
Open
if (!empty($time_spent)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = 0;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "count_students_complete_all_activities_at_50" is not in valid camel caps format Open
Open
$count_students_complete_all_activities_at_50 = 0;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_id, $session_id);
- Exclude checks
Variable "time_spent" is not in valid camel caps format Open
Open
$total_time_spent += $time_spent;
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$array[$i]['count_students'] = $student_count;
- Exclude checks
Variable "my_courses" is not in valid camel caps format Open
Open
foreach ($my_courses as $course) {
- Exclude checks
Variable "tmp_students" is not in valid camel caps format Open
Open
$tmp_students = CourseManager::get_student_list_from_course_code($course_code, false);
- Exclude checks
Variable "sql_lp" is not in valid camel caps format Open
Open
$sql_lp = "SELECT lp.title, lp.iid FROM $t_lp lp
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_TRACKING;
- Exclude checks
Variable "t_lp" is not in valid camel caps format Open
Open
$sql_lp = "SELECT lp.title, lp.iid FROM $t_lp lp
- Exclude checks
Variable "avg_progress_in_course" is not in valid camel caps format Open
Open
if (intval($avg_progress_in_course) > 0 && intval($avg_progress_in_course) <= 50) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$user_info = api_get_user_info($student['user_id']);
- Exclude checks
Variable "rs_lp" is not in valid camel caps format Open
Open
$rs_lp = Database::query($sql_lp);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "count_students_complete_all_activities_at_50" is not in valid camel caps format Open
Open
$count_students_complete_all_activities_at_50++;
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$lp_id = $learnpath['iid'];
- Exclude checks
Variable "total_time_spent" is not in valid camel caps format Open
Open
$total_time_spent = 0;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "avg_progress_in_course" is not in valid camel caps format Open
Open
if (100 == intval($avg_progress_in_course)) {
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
if (0 == $course_info['visibility']) {
- Exclude checks
Variable "lp_items" is not in valid camel caps format Open
Open
$lp_items =
- Exclude checks
Variable "total_average_progress" is not in valid camel caps format Open
Open
$total_average_progress = 0;
- Exclude checks
Expected 1 space before "as"; 2 found Open
Open
foreach ($students as $student_id) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$my_courses = CourseManager::get_course_list_of_user_as_course_admin($user_id);
- Exclude checks
Variable "sql_lp" is not in valid camel caps format Open
Open
$rs_lp = Database::query($sql_lp);
- Exclude checks
Variable "total_tools_list" is not in valid camel caps format Open
Open
$total_tools_list = Tracking::get_tools_most_used_by_course(
- Exclude checks
Variable "total_tools" is not in valid camel caps format Open
Open
$total_tools = 0;
- Exclude checks
Variable "total_tools" is not in valid camel caps format Open
Open
$total_tools += $tool['count_access_tool'];
- Exclude checks
Variable "rs_lp" is not in valid camel caps format Open
Open
while ($learnpath = Database :: fetch_array($rs_lp)) {
- Exclude checks
Variable "myavg_temp" is not in valid camel caps format Open
Open
$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$array[$i]['lp'] = '<a href="'.api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?cidReq='.$course_code.'&action=view&lp_id='.$lp_id.'" target="_blank">'.$learnpath['title'].'</a>';
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "teacher_list" is not in valid camel caps format Open
Open
if (!empty($teacher_list)) {
- Exclude checks
Variable "count_students_accessing" is not in valid camel caps format Open
Open
$count_students_accessing++;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
WHERE c_id = $course_id AND lpi.lp_id = $lp_id
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, [$lp_id], $session_id);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_id, $session_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = $course['id'];
- Exclude checks
Variable "rs_lp" is not in valid camel caps format Open
Open
if (Database :: num_rows($rs_lp) > 0) {
- Exclude checks
Variable "count_students_complete_all_activities_at_50" is not in valid camel caps format Open
Open
$count_students_complete_all_activities_at_50 = 0;
- Exclude checks
Variable "sql_lpi" is not in valid camel caps format Open
Open
$res_lpi = Database::query($sql_lpi);
- Exclude checks
Variable "row_lpi" is not in valid camel caps format Open
Open
while ($row_lpi = Database::fetch_array($res_lpi)) {
- Exclude checks
Variable "res_lpi" is not in valid camel caps format Open
Open
while ($row_lpi = Database::fetch_array($res_lpi)) {
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$array[$i]['count_students_accessing_percentage'] = round($count_students_accessing / $student_count * 100, 0);
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
WHERE c_id = $course_id AND lpi.lp_id = $lp_id
- Exclude checks
Variable "res_lpi" is not in valid camel caps format Open
Open
$res_lpi = Database::query($sql_lpi);
- Exclude checks
Variable "sql_news" is not in valid camel caps format Open
Open
$res_news = Database::query($sql_news);
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$array[$i]['count_students_complete_all_activities'] = round($count_students_complete_all_activities / $student_count * 100, 0);
- Exclude checks
Variable "count_students_complete_all_activities" is not in valid camel caps format Open
Open
$array[$i]['average_percentage_activities_completed_per_student'] = round($count_students_complete_all_activities / $student_count * 100, 2);
- Exclude checks
Variable "row_news" is not in valid camel caps format Open
Open
$array[$i]['total_announcements'] = $row_news[0];
- Exclude checks
Variable "row_lpi" is not in valid camel caps format Open
Open
switch ($row_lpi['item_type']) {
- Exclude checks
Variable "res_news" is not in valid camel caps format Open
Open
$res_news = Database::query($sql_news);
- Exclude checks
Variable "count_students_accessing" is not in valid camel caps format Open
Open
$array[$i]['count_students_accessing_percentage'] = round($count_students_accessing / $student_count * 100, 0);
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$array[$i]['average_time_spent_per_student'] = api_time_to_hms($total_time_spent / $student_count);
- Exclude checks
Variable "sql_news" is not in valid camel caps format Open
Open
$sql_news = "SELECT count(id) FROM $t_news WHERE c_id = $course_id ";
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
$array[$i]['average_percentage_activities_completed_per_student'] = round($count_students_complete_all_activities / $student_count * 100, 2);
- Exclude checks
Variable "row_news" is not in valid camel caps format Open
Open
while ($row_news = Database::fetch_array($res_news)) {
- Exclude checks
Variable "res_news" is not in valid camel caps format Open
Open
while ($row_news = Database::fetch_array($res_news)) {
- Exclude checks
Variable "student_count" is not in valid camel caps format Open
Open
if (!empty($student_count)) {
- Exclude checks
Variable "count_students_complete_all_activities" is not in valid camel caps format Open
Open
$array[$i]['count_students_complete_all_activities'] = round($count_students_complete_all_activities / $student_count * 100, 0);
- Exclude checks
Variable "t_news" is not in valid camel caps format Open
Open
$sql_news = "SELECT count(id) FROM $t_news WHERE c_id = $course_id ";
- Exclude checks
Variable "count_students_accessing" is not in valid camel caps format Open
Open
$array[$i]['count_students_accessing'] = $count_students_accessing;
- Exclude checks
Variable "total_time_spent" is not in valid camel caps format Open
Open
if (!empty($total_time_spent)) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$sql_news = "SELECT count(id) FROM $t_news WHERE c_id = $course_id ";
- Exclude checks
Variable "total_time_spent" is not in valid camel caps format Open
Open
$array[$i]['total_time_spent'] = api_time_to_hms($total_time_spent);
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
Open
foreach ($row_table as $cell) {
- Exclude checks
Variable "count_students_complete_all_activities" is not in valid camel caps format Open
Open
$array[$i]['count_students_complete_all_activities_at_50'] = $count_students_complete_all_activities;
- Exclude checks
Variable "total_time_spent" is not in valid camel caps format Open
Open
$array[$i]['average_time_spent_per_student'] = api_time_to_hms($total_time_spent / $student_count);
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
Open
foreach ($array as $row_table) {
- Exclude checks