The method compare_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
echo "<br /><h3>".get_lang('Id')." #$id</h3>";
//process data
foreach ($item as $key => $value) {
echo "$key = $value <br />";
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method compare_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
echo get_lang('No results found');
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The parameter $user_id is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $result_message is not named in camelCase. Open
function compare_data($result_message)
{
foreach ($result_message as $table => $data) {
$title = $table;
if ('TRACK_E_EXERCISES' == $table) {
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Variable "update_database" is not in valid camel caps format Open
$update_database = true;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_id = $course_info['real_id'];
- Exclude checks
Variable "TBL_DROPBOX_FILE" is not in valid camel caps format Open
$TBL_DROPBOX_FILE = Database::get_course_table(TABLE_DROPBOX_FILE);
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if (!$update_database) {
- Exclude checks
Variable "result_message_compare" is not in valid camel caps format Open
$result_message_compare['TRACK_E_EXERCISES'][$exe_id] = $data;
- Exclude checks
Variable "TBL_TRACK_E_COURSE_ACCESS" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_TRACK_E_COURSE_ACCESS
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
foreach ($result_message as $table => $data) {
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sql = "UPDATE $TABLETRACK_EXERCICES SET session_id = '$new_session_id' WHERE exe_id = $exe_id";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$session = api_get_session_entity($new_session_id);
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
if ($origin_session_id == $new_session_id) {
- Exclude checks
Variable "course_founded" is not in valid camel caps format Open
if ($course_founded) {
- Exclude checks
Variable "TBL_ITEM_PROPERTY" is not in valid camel caps format Open
$TBL_ITEM_PROPERTY = Database::get_course_table(TABLE_ITEM_PROPERTY);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$sql = "UPDATE $TABLETRACK_EXERCICES SET session_id = '$new_session_id' WHERE exe_id = $exe_id";
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
$result_message_compare['TRACK_E_EXERCISES_IN_LP'][$exe_id] = $data;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "course_dir" is not in valid camel caps format Open
$base_work_dir = $course_dir.'/work';
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
$search_this = "folder_moved_from_session_id_$origin_session_id";
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION.' - new folder created called: '.$created_dir]++;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION_ASSIGNMENT WHERE publication_id = $parent_id AND c_id = $course_id";
- Exclude checks
Variable "combination_result" is not in valid camel caps format Open
$origin_course_code = $combination_result['course_code'];
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$new_session_id = (int) $_REQUEST['session_id'];
- Exclude checks
Variable "result_message_compare" is not in valid camel caps format Open
$result_message_compare = [];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
[$user_id],
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course = api_get_course_entity($course_id);
- Exclude checks
Variable "TBL_TRACK_E_COURSE_ACCESS" is not in valid camel caps format Open
$TBL_TRACK_E_COURSE_ACCESS = Database::get_main_table(TABLE_STATISTIC_TRACK_E_COURSE_ACCESS);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
c_id = $course_id AND
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
exe_user_id = $user_id
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
$result_message_compare['TRACK_E_EXERCISES'][$exe_id] = $data;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
$flat_list = $lp_list->get_flat_list();
- Exclude checks
Variable "TBL_ITEM_PROPERTY" is not in valid camel caps format Open
$sql = "SELECT ref FROM $TBL_ITEM_PROPERTY
- Exclude checks
Variable "course_dir" is not in valid camel caps format Open
$course_dir = $sys_course_path.$course_info['path'];
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
$sub_res = Database::query($sql);
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
$num_rows = Database::num_rows($sub_res);
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
$created_dir = $new_result['url'];
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$sql_update = "UPDATE ".$TBL_STUDENT_PUBLICATION." SET ".
- Exclude checks
Variable "sql_update" is not in valid camel caps format Open
echo $sql_update;
- Exclude checks
Variable "rest_update" is not in valid camel caps format Open
$rest_update = Database::query($sql_update);
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION_ASSIGNMENT]++;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
->setCId($course_id)
- Exclude checks
Variable "full_file_name" is not in valid camel caps format Open
$full_file_name = $course_dir.'/'.$doc_url;
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
$sql = "UPDATE $TABLETRACK_EXERCICES SET session_id = '$new_session_id' WHERE exe_id = $exe_id";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TABLETRACK_EXERCICES]++;
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
foreach ($list as $exe_id => $data) {
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$sql = "UPDATE $TABLETRACK_EXERCICES
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
SET session_id = '$new_session_id'
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
WHERE exe_id = $exe_id";
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
$flat_list = $lp_list->get_flat_list();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "res_update" is not in valid camel caps format Open
var_dump($res_update);
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
$parent_data['description']."folder_moved_from_session_id_$origin_session_id"
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
$parent_data['description']."folder_moved_from_session_id_$origin_session_id"
- Exclude checks
Variable "new_parent_id" is not in valid camel caps format Open
publication_id = '".$new_parent_id."'";
- Exclude checks
Variable "new_course_list" is not in valid camel caps format Open
foreach ($new_course_list as $course_item) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND exe_user_id = $user_id $sessionCondition";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sessionCondition = api_get_session_condition($new_session_id);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$sql = "SELECT * FROM $TABLETRACK_EXERCICES
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id ";
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if (!$update_database) {
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sql = "UPDATE $TBL_AGENDA SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id ";
- Exclude checks
Variable "res_update" is not in valid camel caps format Open
$res_update = Database::query($sql);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION WHERE id = $id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
WHERE id = $parent_id AND c_id = $course_id";
- Exclude checks
Variable "sys_course_path" is not in valid camel caps format Open
$sys_course_path = api_get_path(SYS_COURSE_PATH);
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
WHERE description like '%$search_this%' AND url LIKE '%$search_this2%' AND session_id = $new_session_id AND c_id = $course_id
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
foreach ($new_course_list as $course_item) {
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
$dir_name = substr($parent_data['url'], 1);
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message = [];
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION_ASSIGNMENT" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION_ASSIGNMENT]++;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$new_session_id,
- Exclude checks
Variable "TBL_TRACK_E_LAST_ACCESS" is not in valid camel caps format Open
$TBL_TRACK_E_LAST_ACCESS = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LASTACCESS);
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message['TRACK_E_EXERCISES'][$exe_id] = $data;
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id ";
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
$flat_list = $lp_list->get_flat_list();
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
SET session_id = $new_session_id
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message['LP_VIEW'][$data['lp_id']] = [
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
$origin_course_code,
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION WHERE id = $id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Variable "assignment_data" is not in valid camel caps format Open
$assignment_data = Database::fetch_assoc($rest_select);
- Exclude checks
Variable "combination_result" is not in valid camel caps format Open
$combination_result = $combinations[$_REQUEST['unique_id']];
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_info = api_get_course_info($origin_course_code);
- Exclude checks
Variable "TBL_NOTEBOOK" is not in valid camel caps format Open
$TBL_NOTEBOOK = Database::get_course_table(TABLE_NOTEBOOK);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
$result_message['TRACK_E_EXERCISES'][$exe_id] = $data;
- Exclude checks
Variable "result_message_compare" is not in valid camel caps format Open
$result_message_compare['TRACK_E_EXERCISES_IN_LP'][$exe_id] = $data;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
AND access_user_id = $user_id ";
- Exclude checks
Variable "TBL_TRACK_E_LAST_ACCESS" is not in valid camel caps format Open
$sql = "UPDATE $TBL_TRACK_E_LAST_ACCESS
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$created_dir = '/'.$created_dir;
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$created_dir = '/'.$created_dir;
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION.' - new folder created called: '.$created_dir]++;
- Exclude checks
Variable "rest_select" is not in valid camel caps format Open
if (Database::num_rows($rest_select) > 0) {
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION_ASSIGNMENT" is not in valid camel caps format Open
$sql_add_publication = "INSERT INTO ".$TBL_STUDENT_PUBLICATION_ASSIGNMENT." SET
- Exclude checks
Variable "combination_result" is not in valid camel caps format Open
if (empty($combination_result)) {
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
if ($origin_session_id == $new_session_id) {
- Exclude checks
Variable "course_founded" is not in valid camel caps format Open
$course_founded = false;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$result = SessionManager::get_users_by_session($new_session_id);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
- Exclude checks
Variable "TBL_LP_VIEW" is not in valid camel caps format Open
$TBL_LP_VIEW = Database::get_course_table(TABLE_LP_VIEW);
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_TRACK_E_LAST_ACCESS]++;
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message['agenda']++;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE tool = 'work' AND insert_user_id = $user_id AND c_id = $course_id";
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
if (Database::num_rows($sub_res) > 0) {
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
$new_parent_id = $new_result['id'];
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "dir_name" is not in valid camel caps format Open
$dir_name = substr($parent_data['url'], 1);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
->setCId($course_id)
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
->setTitle($parent_data['title'])
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$new_url = str_replace($parent_data['url'], $created_dir, $doc_url);
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
$origin_session_id = (int) $combination_result['session_id'];
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
if ($origin_course_code == $course_item['code']) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND exe_user_id = $user_id $sessionCondition";
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
$sub_res = Database::query($sql);
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
$search_this2 = $parent_data['url'];
- Exclude checks
Variable "assignment_data" is not in valid camel caps format Open
expires_on = '".$assignment_data['expires_on']."',
- Exclude checks
Variable "assignment_data" is not in valid camel caps format Open
enable_qualification = '".$assignment_data['enable_qualification']."',
- Exclude checks
Variable "sql_update" is not in valid camel caps format Open
$sql_update = "UPDATE ".$TBL_STUDENT_PUBLICATION." SET ".
- Exclude checks
Variable "new_parent_id" is not in valid camel caps format Open
WHERE id = ".$new_parent_id;
- Exclude checks
Variable "doc_url" is not in valid camel caps format Open
$new_url = str_replace($parent_data['url'], $created_dir, $doc_url);
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
function compare_data($result_message)
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$sql = "SELECT * FROM $TABLETRACK_EXERCICES
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
foreach ($list as $exe_id => $data) {
- Exclude checks
Variable "TBL_TRACK_E_COURSE_ACCESS" is not in valid camel caps format Open
$sql = "UPDATE $TBL_TRACK_E_COURSE_ACCESS
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_LP_VIEW WHERE user_id = $user_id AND session_id = $new_session_id AND c_id = $course_id";
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
$origin_course_code,
- Exclude checks
Variable "TBL_ITEM_PROPERTY" is not in valid camel caps format Open
$sql = "SELECT ref FROM $TBL_ITEM_PROPERTY
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
$data = Database::fetch_assoc($sub_res);
- Exclude checks
Variable "num_rows" is not in valid camel caps format Open
$num_rows = Database::num_rows($sub_res);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$created_dir = create_unexisting_work_directory($base_work_dir, $dir_name);
- Exclude checks
Variable "rest_select" is not in valid camel caps format Open
$rest_select = Database::query($sql);
- Exclude checks
Variable "assignment_data" is not in valid camel caps format Open
ends_on = '".$assignment_data['ends_on']."',
- Exclude checks
Variable "assignment_data" is not in valid camel caps format Open
add_to_calendar = '".$assignment_data['add_to_calendar']."',
- Exclude checks
Variable "sql_add_publication" is not in valid camel caps format Open
echo $sql_add_publication;
- Exclude checks
Variable "sql_update" is not in valid camel caps format Open
var_dump($sql_update);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
api_item_property_update($course_info, 'work', $id, 'DocumentAdded', $user_id);
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
$origin_course_code = $combination_result['course_code'];
- Exclude checks
Variable "new_course_list" is not in valid camel caps format Open
$new_course_list = SessionManager::get_course_list_by_session_id($new_session_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = $course_info['real_id'];
- Exclude checks
Variable "TBL_TRACK_ATTEMPT" is not in valid camel caps format Open
$TBL_TRACK_ATTEMPT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);
- Exclude checks
Variable "TBL_AGENDA" is not in valid camel caps format Open
$TBL_AGENDA = Database::get_course_table(TABLE_AGENDA);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$result_message[$TABLETRACK_EXERCICES]++;
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TABLETRACK_EXERCICES]++;
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND session_id = $origin_session_id AND user_id = $user_id ";
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND session_id = $origin_session_id AND user_id = $user_id ";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_TRACK_E_COURSE_ACCESS]++;
- Exclude checks
Variable "TBL_TRACK_E_LAST_ACCESS" is not in valid camel caps format Open
$sql = "SELECT access_id FROM $TBL_TRACK_E_LAST_ACCESS
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
AND session_id = $origin_session_id
- Exclude checks
Variable "TBL_TRACK_E_LAST_ACCESS" is not in valid camel caps format Open
$result_message[$TBL_TRACK_E_LAST_ACCESS]++;
- Exclude checks
Variable "TBL_LP_VIEW" is not in valid camel caps format Open
$sql = "UPDATE $TBL_LP_VIEW
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND id = $id ";
- Exclude checks
Variable "TBL_LP_VIEW" is not in valid camel caps format Open
$result_message[$TBL_LP_VIEW]++;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_LP_VIEW WHERE user_id = $user_id AND session_id = $new_session_id AND c_id = $course_id";
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE tool = 'calendar_event' AND insert_user_id = $user_id AND c_id = $course_id ";
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE tool = 'calendar_event' AND insert_user_id = $user_id AND c_id = $course_id ";
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$parent_id = $data['parent_id'];
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION
- Exclude checks
Variable "select_res" is not in valid camel caps format Open
$select_res,
- Exclude checks
Variable "search_this2" is not in valid camel caps format Open
$search_this2 = $parent_data['url'];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE description like '%$search_this%' AND url LIKE '%$search_this2%' AND session_id = $new_session_id AND c_id = $course_id
- Exclude checks
Variable "num_rows" is not in valid camel caps format Open
if ($num_rows > 0) {
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$created_dir = $new_result['url'];
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION_ASSIGNMENT" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION_ASSIGNMENT WHERE publication_id = $parent_id AND c_id = $course_id";
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION_ASSIGNMENT WHERE publication_id = $parent_id AND c_id = $course_id";
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "new_parent_id" is not in valid camel caps format Open
->setParentId($new_parent_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $_REQUEST['user_id'];
- Exclude checks
Variable "course_founded" is not in valid camel caps format Open
$course_founded = true;
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
$course_info = api_get_course_info($origin_course_code);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
$result_message['TRACK_E_EXERCISES_IN_LP'][$exe_id] = $data;
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_LP_VIEW]++;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$new_session_id
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION WHERE id = $id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_dir = $sys_course_path.$course_info['path'];
- Exclude checks
Variable "search_this2" is not in valid camel caps format Open
WHERE description like '%$search_this%' AND url LIKE '%$search_this2%' AND session_id = $new_session_id AND c_id = $course_id
- Exclude checks
Variable "new_parent_id" is not in valid camel caps format Open
$new_parent_id = $new_result['id'];
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
->setQualification($parent_data['qualification'])
- Exclude checks
Variable "rest_select" is not in valid camel caps format Open
$assignment_data = Database::fetch_assoc($rest_select);
- Exclude checks
Variable "sql_add_publication" is not in valid camel caps format Open
$rest_select = Database::query($sql_add_publication);
- Exclude checks
Variable "sql_update" is not in valid camel caps format Open
$rest_update = Database::query($sql_update);
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
if ($origin_course_code == $course_item['code']) {
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$TBL_STUDENT_PUBLICATION = Database::get_course_table(TABLE_STUDENT_PUBLICATION);
- Exclude checks
Variable "TBL_DROPBOX_POST" is not in valid camel caps format Open
$TBL_DROPBOX_POST = Database::get_course_table(TABLE_DROPBOX_POST);
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
$sessionCondition = api_get_session_condition($origin_session_id);
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message['TRACK_E_EXERCISES_IN_LP'][$exe_id] = $data;
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "TBL_AGENDA" is not in valid camel caps format Open
$sql = "UPDATE $TBL_AGENDA SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id ";
- Exclude checks
Variable "nro_pages" is not in valid camel caps format Open
$nro_pages = round($count / $default) + 1;
- Exclude checks
Consider putting global function "compare_data" in a static class Open
function compare_data($result_message)
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
$update_database = false;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (empty($result) || !in_array($user_id, array_keys($result))) {
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION_ASSIGNMENT" is not in valid camel caps format Open
$TBL_STUDENT_PUBLICATION_ASSIGNMENT = Database::get_course_table(TABLE_STUDENT_PUBLICATION_ASSIGNMENT);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$result_message[$TABLETRACK_EXERCICES]++;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
SET session_id = $new_session_id
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
SET session_id = $new_session_id
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "result_message_compare" is not in valid camel caps format Open
$result_message_compare['LP_VIEW'][$data['lp_id']] = [
- Exclude checks
Variable "select_res" is not in valid camel caps format Open
$select_res = Database::query($sql);
- Exclude checks
Variable "sub_res" is not in valid camel caps format Open
$new_result = Database::fetch_assoc($sub_res);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
api_item_property_update($course_info, 'work', $id, 'DirectoryCreated', api_get_user_id());
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION.' - new folder created called: '.$created_dir]++;
- Exclude checks
Variable "doc_url" is not in valid camel caps format Open
$doc_url = $data['url'];
- Exclude checks
Variable "new_url" is not in valid camel caps format Open
$new_url = str_replace($parent_data['url'], $created_dir, $doc_url);
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_item_property_update($course_info, 'work', $id, 'DocumentAdded', $user_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
api_item_property_update($course_info, 'work', $data['id'], 'DocumentDeleted', api_get_user_id());
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Missing function doc comment Open
function compare_data($result_message)
- Exclude checks
Variable "combination_result" is not in valid camel caps format Open
$origin_session_id = (int) $combination_result['session_id'];
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$new_course_list = SessionManager::get_course_list_by_session_id($new_session_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND session_id = $origin_session_id AND user_id = $user_id ";
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "TBL_TRACK_E_COURSE_ACCESS" is not in valid camel caps format Open
$result_message[$TBL_TRACK_E_COURSE_ACCESS]++;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$lp_list = new LearnpathList($user_id, $course_info, $new_session_id);
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
$flat_list = $lp_list->get_flat_list();
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
var_dump($parent_data);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$base_work_dir = $course_dir.'/work';
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_STUDENT_PUBLICATION
- Exclude checks
Variable "sql_add_publication" is not in valid camel caps format Open
$sql_add_publication = "INSERT INTO ".$TBL_STUDENT_PUBLICATION_ASSIGNMENT." SET
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
$new_url = str_replace($parent_data['url'], $created_dir, $doc_url);
- Exclude checks
Variable "new_url" is not in valid camel caps format Open
->setUrl($new_url)
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION]++;
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$result_message[$TBL_STUDENT_PUBLICATION]++;
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "TBL_LP_VIEW" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_LP_VIEW
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id ";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_LP_VIEW WHERE user_id = $user_id AND session_id = $new_session_id AND c_id = $course_id";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$new_session_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE tool = 'work' AND insert_user_id = $user_id AND c_id = $course_id";
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
$parent_data = Database::fetch_array(
- Exclude checks
Variable "dir_name" is not in valid camel caps format Open
$created_dir = create_unexisting_work_directory($base_work_dir, $dir_name);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
->setUrl($created_dir)
- Exclude checks
Variable "new_parent_id" is not in valid camel caps format Open
$new_parent_id = $id;
- Exclude checks
Variable "rest_select" is not in valid camel caps format Open
$rest_select = Database::query($sql_add_publication);
- Exclude checks
Variable "TBL_DROPBOX_FILE" is not in valid camel caps format Open
$sql = "UPDATE $TBL_DROPBOX_FILE SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sql = "UPDATE $TBL_DROPBOX_FILE SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id";
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$key = $courseInfo['code'].'_'.$my_course['session_id'];
- Exclude checks
Variable "course_list_registered" is not in valid camel caps format Open
$course_list = $course_list_registered;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = $course['id_session'];
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
echo '<div id ="reponse_'.$unique_id.'"></div>';
- Exclude checks
Variable "doc_url" is not in valid camel caps format Open
$full_file_name = $course_dir.'/'.$doc_url;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$sql = "UPDATE $TBL_DROPBOX_FILE SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
if (0 == $new_session_id) {
- Exclude checks
Missing function doc comment Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$my_course['real_id'] = $my_course['c_id'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
echo "<h3>$name #$user_id </h3> ";
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = 0;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
$sql = "UPDATE $TBL_DROPBOX_POST SET session_id = $new_session_id WHERE file_id = $id";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
foreach ($result_message as $table => $times) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = intval($user_id);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
return $course_list;
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND course = '$origin_course_code' AND c_id = $course_id";
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND course = '$origin_course_code' AND c_id = $course_id";
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
- Exclude checks
Variable "course_list_registered" is not in valid camel caps format Open
foreach ($course_list_registered as $course_reg) {
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$my_course['real_id'] = $my_course['c_id'];
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_code = $course['code'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$combinations[$unique_id] = ['course_code' => $course_code, 'session_id' => $session_id];
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
$user_list = UserManager::get_user_list([], [], $begin, $default);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = $user['user_id'];
- Exclude checks
Variable "course_list_registered" is not in valid camel caps format Open
$course_list_registered[] = $my_course;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$combinations[$unique_id] = ['course_code' => $course_code, 'session_id' => $session_id];
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
if (!empty($user_list)) {
- Exclude checks
Variable "course_list_registered" is not in valid camel caps format Open
$course_list_registered = CourseManager::get_courses_list_by_user_id(
- Exclude checks
Variable "new_course_list" is not in valid camel caps format Open
$new_course_list = [];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$course_list = get_courses_list_by_user_id_based_in_exercises($user_id);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
if (is_array($course_list) && !empty($course_list)) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
foreach ($course_list as $my_course) {
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$courseInfo = api_get_course_info_by_id($my_course['c_id']);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
if (!empty($course_list)) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
foreach ($course_list as $course) {
- Exclude checks
Variable "new_file" is not in valid camel caps format Open
$result = copy($full_file_name, $new_file);
- Exclude checks
Variable "result_delete" is not in valid camel caps format Open
$result_delete = Database::query($sql);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE uploader_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Consider putting global function "get_courses_list_by_user_id_based_in_exercises" in a static class Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE exe_user_id = $user_id
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
$my_session_list[$session_data['id']] = $session_data['name'];
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
$course_reg['code'] = $courseInfo['code'];
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
$combinations[$unique_id] = ['course_code' => $course_code, 'session_id' => $session_id];
- Exclude checks
Variable "new_file" is not in valid camel caps format Open
$new_file = $course_dir.'/'.$new_url;
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
if (0 == $origin_session_id) {
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
$course_reg['session_id'] = 0;
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
$courseInfo = api_get_course_info_by_id($course_reg['real_id']);
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
$new_course_list[] = $course_reg['code'].'_'.$course_reg['session_id'];
- Exclude checks
Variable "course_dir" is not in valid camel caps format Open
$new_file = $course_dir.'/'.$new_url;
- Exclude checks
Variable "full_file_name" is not in valid camel caps format Open
unlink($full_file_name);
- Exclude checks
Variable "TBL_DROPBOX_FILE" is not in valid camel caps format Open
$sql = "SELECT id FROM $TBL_DROPBOX_FILE
- Exclude checks
Variable "TBL_DROPBOX_POST" is not in valid camel caps format Open
$sql = "UPDATE $TBL_DROPBOX_POST SET session_id = $new_session_id WHERE file_id = $id";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
$result_message[$TBL_DROPBOX_FILE]++;
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
echo '<h4>'.get_lang('Destination session').' #'.$new_session_id.'</h4>';
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
foreach ($course_list_registered as $course_reg) {
- Exclude checks
Variable "course_list_registered" is not in valid camel caps format Open
foreach ($course_list_registered as &$course) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
foreach ($course_list as $course) {
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
echo '<select id="'.$unique_id.'" name="'.$unique_id.'" class="form-control">';
- Exclude checks
Variable "TBL_STUDENT_PUBLICATION" is not in valid camel caps format Open
$sql = "DELETE FROM $TBL_STUDENT_PUBLICATION WHERE id= ".$data['id'];
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
WHERE uploader_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND course = '$origin_course_code' AND c_id = $course_id";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
compare_data($result_message);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = intval($user_id);
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
$course_list = [];
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
$new_course_list[] = $course_reg['code'].'_'.$course_reg['session_id'];
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
$course_list = get_courses_list_by_user_id_based_in_exercises($user_id);
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
$unique_id = uniqid();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "TBL_LP_VIEW" is not in valid camel caps format Open
$sql = "SELECT * FROM $TBL_LP_VIEW WHERE user_id = $user_id AND session_id = $new_session_id AND c_id = $course_id";
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$sql = "UPDATE $TBL_AGENDA SET session_id = $new_session_id WHERE c_id = $course_id AND id = $id ";
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE id = $parent_id AND c_id = $course_id";
- Exclude checks
Variable "sys_course_path" is not in valid camel caps format Open
$course_dir = $sys_course_path.$course_info['path'];
- Exclude checks
Variable "search_this" is not in valid camel caps format Open
$search_this = "folder_moved_from_session_id_$origin_session_id";
- Exclude checks
Variable "search_this" is not in valid camel caps format Open
WHERE description like '%$search_this%' AND url LIKE '%$search_this2%' AND session_id = $new_session_id AND c_id = $course_id
- Exclude checks
Variable "new_result" is not in valid camel caps format Open
$new_result = Database::fetch_assoc($sub_res);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$created_dir = create_unexisting_work_directory($base_work_dir, $dir_name);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
c_id = '$course_id',
- Exclude checks
Variable "course_dir" is not in valid camel caps format Open
$full_file_name = $course_dir.'/'.$doc_url;
- Exclude checks
Variable "new_url" is not in valid camel caps format Open
$new_file = $course_dir.'/'.$new_url;
- Exclude checks
Variable "update_database" is not in valid camel caps format Open
if ($update_database) {
- Exclude checks
Variable "TBL_NOTEBOOK" is not in valid camel caps format Open
$sql = "UPDATE $TBL_NOTEBOOK
- Exclude checks
Variable "session_list" is not in valid camel caps format Open
foreach ($session_list as $session_data) {
- Exclude checks
Variable "session_data" is not in valid camel caps format Open
foreach ($session_list as $session_data) {
- Exclude checks
Variable "session_data" is not in valid camel caps format Open
$my_session_list[$session_data['id']] = $session_data['name'];
- Exclude checks
Variable "session_data" is not in valid camel caps format Open
$my_session_list[$session_data['id']] = $session_data['name'];
- Exclude checks
Variable "session_data" is not in valid camel caps format Open
$options .= '<option value="'.$session_data['id'].'">'.$session_data['name'].'</option>';
- Exclude checks
Variable "new_course_list" is not in valid camel caps format Open
if (!in_array($key, $new_course_list)) {
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$my_course['not_registered'] = 1;
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
$course_list_registered[] = $my_course;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
echo '<button type="submit" class="btn btn--success" onclick="view_stat(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Compare stats').'</button>';
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
echo '<button type="submit" class="btn btn--success" onclick="moveto(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Move').'</button>';
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND notebook_id = $id";
- Exclude checks
Variable "result_message" is not in valid camel caps format Open
if (is_array($result_message)) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
$course_list = $course_list_registered;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
echo '<button type="submit" class="btn btn--success" onclick="moveto(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Move').'</button>';
- Exclude checks
Variable "full_file_name" is not in valid camel caps format Open
if (file_exists($full_file_name)) {
- Exclude checks
Variable "TBL_DROPBOX_FILE" is not in valid camel caps format Open
$result_message[$TBL_DROPBOX_FILE]++;
- Exclude checks
Variable "origin_session_id" is not in valid camel caps format Open
echo '<h4>'.get_lang('Original session').' #'.$origin_session_id.'</h4>';
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
$course_list[] = $row;
- Exclude checks
Variable "session_data" is not in valid camel caps format Open
$options .= '<option value="'.$session_data['id'].'">'.$session_data['name'].'</option>';
- Exclude checks
Variable "course_reg" is not in valid camel caps format Open
if (empty($course_reg['session_id'])) {
- Exclude checks
Variable "new_course_list" is not in valid camel caps format Open
$new_course_list[] = $course_reg['code'].'_'.$course_reg['session_id'];
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
echo '<th style="text-align:left;" colspan="'.count($course_list).'">';
- Exclude checks
Variable "full_file_name" is not in valid camel caps format Open
$result = copy($full_file_name, $new_file);
- Exclude checks
Variable "origin_course_code" is not in valid camel caps format Open
WHERE user_id = $user_id AND session_id = $origin_session_id AND course = '$origin_course_code' AND c_id = $course_id";
- Exclude checks
Variable "new_session_id" is not in valid camel caps format Open
SET session_id = $new_session_id
- Exclude checks
Variable "session_list" is not in valid camel caps format Open
$session_list = SessionManager::get_sessions_list([], ['name']);
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
foreach ($user_list as $user) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
if (is_array($course_list) && !empty($course_list)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE uploader_id = $user_id AND session_id = $origin_session_id AND c_id = $course_id";
- Exclude checks
Variable "result_message_compare" is not in valid camel caps format Open
compare_data($result_message_compare);
- Exclude checks
Variable "nro_pages" is not in valid camel caps format Open
if ($page < $nro_pages) {
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
echo '<select id="'.$unique_id.'" name="'.$unique_id.'" class="form-control">';
- Exclude checks
Variable "TBL_NOTEBOOK" is not in valid camel caps format Open
$sql = "SELECT notebook_id FROM $TBL_NOTEBOOK
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
- Exclude checks
Variable "TABLETRACK_EXERCICES" is not in valid camel caps format Open
FROM $TABLETRACK_EXERCICES
- Exclude checks
Variable "my_course" is not in valid camel caps format Open
foreach ($course_list as $my_course) {
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
echo '<b>'.get_lang('Session name').'</b> '.$my_session_list[$course['id_session']].'<br />';
- Exclude checks
Variable "unique_id" is not in valid camel caps format Open
echo '<button type="submit" class="btn btn--success" onclick="view_stat(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Compare stats').'</button>';
- Exclude checks
The variable $TABLETRACK_EXERCICES is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $result_message is not named in camelCase. Open
function compare_data($result_message)
{
foreach ($result_message as $table => $data) {
$title = $table;
if ('TRACK_E_EXERCISES' == $table) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_list is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_list is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $TABLETRACK_EXERCICES is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_list is not named in camelCase. Open
function get_courses_list_by_user_id_based_in_exercises($user_id)
{
$TABLETRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$user_id = intval($user_id);
$sql = "SELECT DISTINCT exe_user_id, c_id, session_id
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}