The function get_users() has an NPath complexity of 4840. The configured NPath complexity threshold is 200. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Avoid unused parameters such as '$from'. Open
function get_users($from, $limit, $column, $direction)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$column'. Open
function get_users($from, $limit, $column, $direction)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$limit'. Open
function get_users($from, $limit, $column, $direction)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$direction'. Open
function get_users($from, $limit, $column, $direction)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
The method get_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$row[] = $student_data['lastname'];
$row[] = $student_data['firstname'];
}
- 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 get_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$avg_time_spent = null;
$avg_student_score = null;
$avg_student_progress = null;
}
- 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
Missing function doc comment Open
function get_count_users()
- Exclude checks
Consider putting global function "get_users" in a static class Open
function get_users($from, $limit, $column, $direction)
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$student_data = api_get_user_info($student_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
foreach ($courses as $course_code) {
- Exclude checks
Variable "avg_time_spent" is not in valid camel caps format Open
$avg_time_spent += Tracking::get_time_spent_on_the_course(
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
$nb_courses_student++;
- Exclude checks
Variable "avg_time_spent" is not in valid camel caps format Open
$avg_time_spent = $avg_time_spent / $nb_courses_student;
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$string_date = Tracking::get_last_connection_date($student_id, true);
- Exclude checks
Variable "first_date" is not in valid camel caps format Open
$row[] = $first_date;
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
($is_western_name_order xor $sort_by_first_name) ? 1 : 0,
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
if ($export_csv) {
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$student_id = $student_data['user_id'];
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$student_id = $student_data['user_id'];
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$courses = Tracking::get_course_list_in_session_from_student($student_id, $_GET['id_session']);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
if (CourseManager :: is_user_subscribed_in_course($student_id, $course_code, true)) {
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
$avg_student_score += $my_average;
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
$avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);
- Exclude checks
Variable "my_average" is not in valid camel caps format Open
if (is_numeric($my_average)) {
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
if ($nb_courses_student > 0) {
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$urlDetails = $url."?student=$student_id&origin=teacher_details";
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
($is_western_name_order xor $sort_by_first_name) ? 1 : 0,
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$student_data = api_get_user_info($student_id);
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
$avg_time_spent = $avg_student_score = $avg_student_progress = 0;
- Exclude checks
Variable "first_date" is not in valid camel caps format Open
$first_date = Tracking::get_first_connection_date($student_id);
- Exclude checks
Variable "page_title" is not in valid camel caps format Open
echo Display::page_subheader($page_title);
- Exclude checks
Missing function doc comment Open
function get_users($from, $limit, $column, $direction)
- Exclude checks
Variable "my_average" is not in valid camel caps format Open
$my_average = Tracking::get_avg_student_score($student_id, $course_code);
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
$avg_student_progress = $avg_student_progress / $nb_courses_student;
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$urlDetails = $url."?student=$student_id&id_coach=$coach_id&id_session=$sessionId";
- Exclude checks
Variable "coach_id" is not in valid camel caps format Open
$urlDetails = $url."?student=$student_id&id_coach=$coach_id&id_session=$sessionId";
- Exclude checks
Variable "csv_header" is not in valid camel caps format Open
$csv_header[] = [
- Exclude checks
Variable "avg_time_spent" is not in valid camel caps format Open
$avg_time_spent = $avg_student_score = $avg_student_progress = 0;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$my_average = Tracking::get_avg_student_score($student_id, $course_code);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
$avg_student_score = null;
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
$sort_by_first_name = api_sort_by_first_name();
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
$csv_content = array_merge($csv_header, $content);
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
foreach ($students as $student_data) {
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
$nb_courses_student = 0;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$courseInfo = api_get_course_info($course_code);
- Exclude checks
Variable "avg_time_spent" is not in valid camel caps format Open
$avg_time_spent = $avg_time_spent / $nb_courses_student;
- Exclude checks
Variable "string_date" is not in valid camel caps format Open
$string_date = Tracking::get_last_connection_date($student_id, true);
- Exclude checks
Variable "menu_items" is not in valid camel caps format Open
$nb_menu_items = count($menu_items);
- Exclude checks
Variable "nb_menu_items" is not in valid camel caps format Open
if ($nb_menu_items > 1) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
$avg_student_progress = $avg_student_progress / $nb_courses_student;
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$row[] = $student_data['firstname'];
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
['id' => 'details_'.$student_data['username']]
- Exclude checks
Variable "all_datas" is not in valid camel caps format Open
return $all_datas;
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
if ($export_csv) {
- Exclude checks
Consider putting global function "get_count_users" in a static class Open
function get_count_users()
- Exclude checks
Variable "coach_id" is not in valid camel caps format Open
$coach_id = api_get_user_id();
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
$avg_time_spent = $avg_time_spent / $nb_courses_student;
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
$avg_student_score = $avg_student_score / $nb_courses_student;
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$row[] = Display::url($student_data['firstname'], $urlDetails);
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$row[] = Display::url($student_data['lastname'], $urlDetails);
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
$row[] = $student_data['lastname'];
- Exclude checks
Variable "all_datas" is not in valid camel caps format Open
$all_datas[] = $row;
- Exclude checks
Variable "menu_items" is not in valid camel caps format Open
$menu_items = [
- Exclude checks
Variable "nb_menu_items" is not in valid camel caps format Open
$nb_menu_items = count($menu_items);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$first_date = Tracking::get_first_connection_date($student_id);
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Export :: arrayToCsv($csv_content, 'reporting_teacher_list');
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
$is_western_name_order = api_is_western_name_order();
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
if (CourseManager :: is_user_subscribed_in_course($student_id, $course_code, true)) {
- Exclude checks
Variable "my_average" is not in valid camel caps format Open
$avg_student_score += $my_average;
- Exclude checks
Variable "nb_courses_student" is not in valid camel caps format Open
$avg_student_score = $avg_student_score / $nb_courses_student;
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
$avg_student_progress = $avg_student_progress / $nb_courses_student;
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
$avg_student_progress = null;
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
$is_western_name_order = api_is_western_name_order(PERSON_NAME_DATA_EXPORT);
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
$is_western_name_order = api_is_western_name_order();
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
if ($export_csv) {
- Exclude checks
Variable "csv_header" is not in valid camel caps format Open
$csv_content = array_merge($csv_header, $content);
- Exclude checks
Variable "page_title" is not in valid camel caps format Open
$page_title = get_lang('Teachers');
- Exclude checks
Variable "string_date" is not in valid camel caps format Open
$row[] = $string_date;
- Exclude checks
Variable "avg_student_progress" is not in valid camel caps format Open
$avg_time_spent = $avg_student_score = $avg_student_progress = 0;
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$student_id,
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
$my_average = Tracking::get_avg_student_score($student_id, $course_code);
- Exclude checks
Variable "avg_time_spent" is not in valid camel caps format Open
$avg_time_spent = null;
- Exclude checks
Variable "csv_header" is not in valid camel caps format Open
$csv_header[] = [
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
$export_csv = isset($_GET['export']) && 'csv' === $_GET['export'] ? true : false;
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_TRACKING;
- Exclude checks
Variable "all_datas" is not in valid camel caps format Open
$all_datas = [];
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
$avg_student_score = $avg_student_score / $nb_courses_student;
- Exclude checks
Variable "student_data" is not in valid camel caps format Open
Display::getMdiIcon(ActionIcon::VIEW_DETAILS, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Details').' '.$student_data['username']),
- Exclude checks
Variable "menu_items" is not in valid camel caps format Open
foreach ($menu_items as $key => $item) {
- Exclude checks
The variable $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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_code is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $my_average is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_score is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $all_datas is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_time_spent is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_progress is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $coach_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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_code is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_time_spent is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_progress is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $is_western_name_order is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_time_spent is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_progress is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_score is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_progress is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_time_spent is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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_code is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_score is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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_code is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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_code is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $coach_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $all_datas is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_score is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $my_average is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $is_western_name_order is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $first_date is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $my_average is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $nb_courses_student is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_progress is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_time_spent is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $avg_student_score is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $string_date is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $all_datas is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $string_date is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_id is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $first_date is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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 $student_data is not named in camelCase. Open
function get_users($from, $limit, $column, $direction)
{
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$sessionId = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;
- 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();
}
}