public/main/inc/ajax/model.ajax.php
Variable "exercise_id" is not in valid camel caps format Open
Open
$exercise_id = $_REQUEST['exerciseId'];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$total_pages = 0;
- Exclude checks
Consider putting global function "getWhereClause" in a static class Open
Open
function getWhereClause($col, $oper, $val)
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
if (!empty($condition_array)) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$count = get_count_work($work_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$documents = getAllDocumentToWork($work_id, api_get_course_int_id());
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
$exercise_id,
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
Open
$field_id = $_REQUEST['field_id'];
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$total_pages = ceil((float) $count / (float) $limit);
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
$action,
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $row;
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id = isset($_REQUEST['gidReq']) ? $_REQUEST['gidReq'] : null;
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$whereCondition .= " te.exe_user_id = '$filter_user'";
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id,
- Exclude checks
Variable "custom_dates" is not in valid camel caps format Open
Open
if (isset($filters->custom_dates)) {
- Exclude checks
Variable "custom_dates" is not in valid camel caps format Open
Open
$whereCondition .= $filters->custom_dates;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$options['where'] = [' usergroup.course_id = ? ' => $course_id];
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = get_lang('Group');
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
$extra_fields = [];
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
if (!empty($condition_array)) {
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
$extraQuestionCondition .= implode($filters->groupOp, $condition_array);
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = isset($_REQUEST['course_id']) ? $_REQUEST['course_id'] : null;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = $extra['3'];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
) && !isset($_REQUEST['from_course_session'])) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
Open
$count = $obj->get_count_by_field_id($field_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$options['course_id'] = $course_id;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
$condition_array = $result['condition_array'];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$count = get_count_work($work_id, api_get_user_id());
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields],
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$filter_user = (int) $_GET['filter_by_user'];
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = $extra['3'];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$count = Question::get_count_course_medias($course_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id = $_REQUEST['work_id'];
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$filter_user = (int) $_GET['filter_by_user'];
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$whereCondition .= " AND te.exe_user_id = '$filter_user'";
- Exclude checks
Variable "filter_status" is not in valid camel caps format Open
Open
if (isset($filters->filter_status)) {
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
if ($page > $total_pages) {
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$page = $total_pages;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$options['where'] = [' (course_id IS NULL OR course_id != ?) ' => $course_id];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names = [
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
$extraCondition .= implode($filters->groupOp, $condition_array);
- Exclude checks
Variable "condition_array" is not in valid camel caps format Open
Open
$condition_array = $resultQuestion['condition_array'];
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$whereCondition .= " te.exe_user_id = '$filter_user'";
- Exclude checks
Variable "filter_user" is not in valid camel caps format Open
Open
$whereCondition .= " AND te.exe_user_id = '$filter_user'";
- Exclude checks
Variable "filter_status" is not in valid camel caps format Open
Open
$sStatus = (int) $filters->filter_status;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
$is_allowedToEdit = api_is_allowed_to_edit(null, true) || api_is_allowed_to_edit(true) || api_is_drh();
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
$extra_fields = $result['extra_fields'];
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id = $_REQUEST['work_id'];
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id = $_REQUEST['work_id'];
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
[
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields],
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names = [
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$total_pages = 0;
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$total_pages = ceil((float) $count / (float) $limit);
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to = $_GET['date_to'];
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = [
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = get_lang('Section');
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$course_item['code']
- Exclude checks
Variable "skills_in_course" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skills_in_course[$course_item['code']];
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
if ($is_allowedToEdit || api_is_student_boss()) {
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $item;
- Exclude checks
Variable "allowed_actions" is not in valid camel caps format Open
Open
if (in_array($action, $allowed_actions)) {
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$count_skill_by_course = [];
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$skills_in_course[$course_item['code']] = $count_skill_by_course[$course_item['code']];
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from,
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
foreach ($questions as $question_id => $question) {
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
).'&type=not_registered';
- Exclude checks
Variable "count_courses_in_session" is not in valid camel caps format Open
Open
'course_per_session' => $count_courses_in_session,
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
'extra' => $extra_fields,
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to,
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
foreach ($personal_course_list as $course_item) {
- Exclude checks
Variable "skills_in_course" is not in valid camel caps format Open
Open
$skills_in_course[$course_item['code']] = $count_skill_by_course[$course_item['code']];
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$skills_in_course[$course_item['code']] = $count_skill_by_course[$course_item['code']];
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skills_in_course[$course_item['code']];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Add a single space after each comma delimiter Open
Open
Display::getMdiIcon(ActionIcon::VIEW_DETAILS, 'ch-tool-icon', null, ICON_SIZE_SMALL,),
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from,
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = get_lang('Username');
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skill->getCountSkillsByCourse(
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $group;
- Exclude checks
Variable "count_users_in_session" is not in valid camel caps format Open
Open
'student_per_session' => $count_users_in_session,
- Exclude checks
Variable "allowed_actions" is not in valid camel caps format Open
Open
$allowed_actions = [
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to = intval($_GET['date_to']);
- Exclude checks
Variable "personal_course_list" is not in valid camel caps format Open
Open
foreach ($personal_course_list as $course_item) {
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$skills_in_course[$course_item['code']] = $count_skill_by_course[$course_item['code']];
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$item['currently_learning'] = !empty($count_skill_by_course) ? array_sum($count_skill_by_course) : 0;
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
$exercise_id,
- Exclude checks
Variable "lesson_id" is not in valid camel caps format Open
Open
$columns[] = $lesson_id;
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from = intval($_GET['date_from']);
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "skills_in_course" is not in valid camel caps format Open
Open
$skills_in_course = [];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from,
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$user_info = api_get_user_info($item['user_id']);
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $item;
- Exclude checks
Variable "count_courses_in_session" is not in valid camel caps format Open
Open
$count_courses_in_session = count(
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
if ($page > $total_pages) {
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
'extra' => $extra_fields,
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from,
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = get_lang('Name');
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "skills_in_course" is not in valid camel caps format Open
Open
if (!isset($skills_in_course[$course_item['code']])) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names = [];
- Exclude checks
Variable "personal_course_list" is not in valid camel caps format Open
Open
$personal_course_list = UserManager::get_personal_session_course_list(
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
$is_allowedToEdit = api_is_allowed_to_edit(null, true) ||
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $item;
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = $title;
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
$urlUserGroup.'&id='.$group['id']
- Exclude checks
Variable "count_courses_in_session" is not in valid camel caps format Open
Open
$count_courses_in_session = SessionManager::get_course_list_by_session_id(
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
if (!empty($extra_fields)) {
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$page = $total_pages;
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to = $_GET['date_to'];
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
'extra' => $extra_fields,
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from = $_GET['date_from'];
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from = $_GET['date_from'];
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $item;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$options['where'] = [' (course_id IS NULL OR course_id != ?) ' => $course_id];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
if (empty($column_names)) {
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names[] = get_lang('Final score');
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
Open
'where' => ['field_id = ? ' => $field_id],
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
$column_names = $columns;
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skills_in_course[$course_item['code']];
- Exclude checks
Variable "count_skill_by_course" is not in valid camel caps format Open
Open
$item['currently_learning'] = !empty($count_skill_by_course) ? array_sum($count_skill_by_course) : 0;
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id,
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if (isset($_REQUEST['origin'] ) && 'load_search' === $_REQUEST['origin']) {
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to,
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to = $_GET['date_to'];
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
if (!isset($skills_in_course[$course_item['code']])) {
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
$columns[] = $question_id;
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result = [];
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$item['photo'] = Display::img($user_info['avatar_small'], $user_info['complete_name'], [], false);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$documents = getAllDocumentToWork($work_id, api_get_course_int_id());
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
['where' => $whereCondition, 'extra' => $extra_fields]
- Exclude checks
Variable "count_users_in_session" is not in valid camel caps format Open
Open
$count_users_in_session = SessionManager::get_users_by_session(
- Exclude checks
Variable "date_from" is not in valid camel caps format Open
Open
$date_from = $_GET['date_from'];
- Exclude checks
Variable "lesson_id" is not in valid camel caps format Open
Open
foreach ($lessons as $lesson_id => $lesson) {
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$new_result[] = $item;
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skill->getCountSkillsByCourse(
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
).'&id_session='.api_get_session_id();
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
Display::getMdiIcon(ToolIcon::TRACKING, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Statistics')),
- Exclude checks
Variable "total_pages" is not in valid camel caps format Open
Open
$response->total = $total_pages;
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$count_skill_by_course[$course_item['code']] = $skills_in_course[$course_item['code']];
- Exclude checks
Variable "column_names" is not in valid camel caps format Open
Open
foreach ($column_names as $col) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
Open
$item['photo'] = Display::img($user_info['avatar_small'], $user_info['complete_name'], [], false);
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
Open
foreach ($extra_fields as $extraField) {
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to,
- Exclude checks
Variable "date_to" is not in valid camel caps format Open
Open
$date_to,
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
Open
$result = $new_result;
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
Open
).' ';
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
$action,
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
) && !isset($_REQUEST['from_course_session'])) {
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
[
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
Display::getMdiIcon(ToolIcon::TRACKING, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Statistics')),
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
).'&type=not_registered';
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
Open
).' ';
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
$urlUserGroup.'&id='.$group['id']
- Exclude checks
No space found after comma in function call Open
Open
Display::getMdiIcon(ActionIcon::VIEW_DETAILS, 'ch-tool-icon', null, ICON_SIZE_SMALL,),
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if (isset($_REQUEST['origin'] ) && 'load_search' === $_REQUEST['origin']) {
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
).'&id_session='.api_get_session_id();
- Exclude checks