chamilo/chamilo-lms

View on GitHub
public/main/my_space/session_admin_teachers.php

Summary

Maintainability
A
0 mins
Test Coverage

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;

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)

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)

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)

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)

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'];
        }

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;
        }

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()

Consider putting global function "get_users" in a static class
Open

function get_users($from, $limit, $column, $direction)

Variable "student_id" is not in valid camel caps format
Open

        $student_data = api_get_user_info($student_id);

Variable "course_code" is not in valid camel caps format
Open

            foreach ($courses as $course_code) {

Variable "avg_time_spent" is not in valid camel caps format
Open

                    $avg_time_spent += Tracking::get_time_spent_on_the_course(

Variable "nb_courses_student" is not in valid camel caps format
Open

                    $nb_courses_student++;

Variable "avg_time_spent" is not in valid camel caps format
Open

            $avg_time_spent = $avg_time_spent / $nb_courses_student;

Variable "student_id" is not in valid camel caps format
Open

        $string_date = Tracking::get_last_connection_date($student_id, true);

Variable "first_date" is not in valid camel caps format
Open

        $row[] = $first_date;

Variable "sort_by_first_name" is not in valid camel caps format
Open

    ($is_western_name_order xor $sort_by_first_name) ? 1 : 0,

Variable "export_csv" is not in valid camel caps format
Open

if ($export_csv) {

Variable "student_id" is not in valid camel caps format
Open

        $student_id = $student_data['user_id'];

Variable "student_data" is not in valid camel caps format
Open

        $student_id = $student_data['user_id'];

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']);

Variable "course_code" is not in valid camel caps format
Open

                if (CourseManager :: is_user_subscribed_in_course($student_id, $course_code, true)) {

Variable "avg_student_score" is not in valid camel caps format
Open

                        $avg_student_score += $my_average;

Variable "avg_student_progress" is not in valid camel caps format
Open

                    $avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);

Variable "my_average" is not in valid camel caps format
Open

                    if (is_numeric($my_average)) {

Variable "nb_courses_student" is not in valid camel caps format
Open

        if ($nb_courses_student > 0) {

Variable "student_id" is not in valid camel caps format
Open

        $urlDetails = $url."?student=$student_id&origin=teacher_details";

Variable "is_western_name_order" is not in valid camel caps format
Open

    ($is_western_name_order xor $sort_by_first_name) ? 1 : 0,

Variable "student_data" is not in valid camel caps format
Open

        $student_data = api_get_user_info($student_id);

Variable "avg_student_score" is not in valid camel caps format
Open

        $avg_time_spent = $avg_student_score = $avg_student_progress = 0;

Variable "first_date" is not in valid camel caps format
Open

        $first_date = Tracking::get_first_connection_date($student_id);

Variable "page_title" is not in valid camel caps format
Open

    echo Display::page_subheader($page_title);

Missing function doc comment
Open

function get_users($from, $limit, $column, $direction)

Variable "my_average" is not in valid camel caps format
Open

                    $my_average = Tracking::get_avg_student_score($student_id, $course_code);

Variable "nb_courses_student" is not in valid camel caps format
Open

            $avg_student_progress = $avg_student_progress / $nb_courses_student;

Variable "student_id" is not in valid camel caps format
Open

            $urlDetails = $url."?student=$student_id&id_coach=$coach_id&id_session=$sessionId";

Variable "coach_id" is not in valid camel caps format
Open

            $urlDetails = $url."?student=$student_id&id_coach=$coach_id&id_session=$sessionId";

Variable "csv_header" is not in valid camel caps format
Open

        $csv_header[] = [

Variable "avg_time_spent" is not in valid camel caps format
Open

        $avg_time_spent = $avg_student_score = $avg_student_progress = 0;

Variable "course_code" is not in valid camel caps format
Open

                    $my_average = Tracking::get_avg_student_score($student_id, $course_code);

Variable "student_id" is not in valid camel caps format
Open

                    $avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);

Variable "avg_student_score" is not in valid camel caps format
Open

            $avg_student_score = null;

Variable "sort_by_first_name" is not in valid camel caps format
Open

$sort_by_first_name = api_sort_by_first_name();

Variable "csv_content" is not in valid camel caps format
Open

    $csv_content = array_merge($csv_header, $content);

Variable "student_data" is not in valid camel caps format
Open

    foreach ($students as $student_data) {

Variable "nb_courses_student" is not in valid camel caps format
Open

        $nb_courses_student = 0;

Variable "course_code" is not in valid camel caps format
Open

                $courseInfo = api_get_course_info($course_code);

Variable "avg_time_spent" is not in valid camel caps format
Open

            $avg_time_spent = $avg_time_spent / $nb_courses_student;

Variable "string_date" is not in valid camel caps format
Open

        $string_date = Tracking::get_last_connection_date($student_id, true);

Variable "menu_items" is not in valid camel caps format
Open

    $nb_menu_items = count($menu_items);

Variable "nb_menu_items" is not in valid camel caps format
Open

    if ($nb_menu_items > 1) {

Variable "is_western_name_order" is not in valid camel caps format
Open

        if ($is_western_name_order) {

Variable "is_western_name_order" is not in valid camel caps format
Open

if ($is_western_name_order) {

Variable "is_western_name_order" is not in valid camel caps format
Open

    if ($is_western_name_order) {

Variable "avg_student_progress" is not in valid camel caps format
Open

            $avg_student_progress = $avg_student_progress / $nb_courses_student;

Variable "student_data" is not in valid camel caps format
Open

            $row[] = $student_data['firstname'];

Variable "student_data" is not in valid camel caps format
Open

            ['id' => 'details_'.$student_data['username']]

Variable "all_datas" is not in valid camel caps format
Open

    return $all_datas;

Variable "export_csv" is not in valid camel caps format
Open

if ($export_csv) {

Consider putting global function "get_count_users" in a static class
Open

function get_count_users()

Variable "coach_id" is not in valid camel caps format
Open

    $coach_id = api_get_user_id();

Variable "nb_courses_student" is not in valid camel caps format
Open

            $avg_time_spent = $avg_time_spent / $nb_courses_student;

Variable "avg_student_score" is not in valid camel caps format
Open

            $avg_student_score = $avg_student_score / $nb_courses_student;

Variable "student_data" is not in valid camel caps format
Open

            $row[] = Display::url($student_data['firstname'], $urlDetails);

Variable "student_data" is not in valid camel caps format
Open

            $row[] = Display::url($student_data['lastname'], $urlDetails);

Variable "student_data" is not in valid camel caps format
Open

            $row[] = $student_data['lastname'];

Variable "all_datas" is not in valid camel caps format
Open

        $all_datas[] = $row;

Variable "menu_items" is not in valid camel caps format
Open

    $menu_items = [

Variable "nb_menu_items" is not in valid camel caps format
Open

    $nb_menu_items = count($menu_items);

Variable "course_code" is not in valid camel caps format
Open

                    $avg_student_progress += Tracking::get_avg_student_progress($student_id, $course_code);

Variable "student_id" is not in valid camel caps format
Open

        $first_date = Tracking::get_first_connection_date($student_id);

Variable "csv_content" is not in valid camel caps format
Open

    Export :: arrayToCsv($csv_content, 'reporting_teacher_list');

Variable "is_western_name_order" is not in valid camel caps format
Open

    $is_western_name_order = api_is_western_name_order();

Variable "student_id" is not in valid camel caps format
Open

                if (CourseManager :: is_user_subscribed_in_course($student_id, $course_code, true)) {

Variable "my_average" is not in valid camel caps format
Open

                        $avg_student_score += $my_average;

Variable "nb_courses_student" is not in valid camel caps format
Open

            $avg_student_score = $avg_student_score / $nb_courses_student;

Variable "avg_student_progress" is not in valid camel caps format
Open

            $avg_student_progress = $avg_student_progress / $nb_courses_student;

Variable "avg_student_progress" is not in valid camel caps format
Open

            $avg_student_progress = null;

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);

Variable "is_western_name_order" is not in valid camel caps format
Open

    $is_western_name_order = api_is_western_name_order();

Variable "export_csv" is not in valid camel caps format
Open

if ($export_csv) {

Variable "csv_header" is not in valid camel caps format
Open

    $csv_content = array_merge($csv_header, $content);

Variable "page_title" is not in valid camel caps format
Open

    $page_title = get_lang('Teachers');

Variable "string_date" is not in valid camel caps format
Open

        $row[] = $string_date;

Variable "avg_student_progress" is not in valid camel caps format
Open

        $avg_time_spent = $avg_student_score = $avg_student_progress = 0;

Variable "student_id" is not in valid camel caps format
Open

                        $student_id,

Variable "student_id" is not in valid camel caps format
Open

                    $my_average = Tracking::get_avg_student_score($student_id, $course_code);

Variable "avg_time_spent" is not in valid camel caps format
Open

            $avg_time_spent = null;

Variable "csv_header" is not in valid camel caps format
Open

        $csv_header[] = [

Variable "export_csv" is not in valid camel caps format
Open

$export_csv = isset($_GET['export']) && 'csv' === $_GET['export'] ? true : false;

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_TRACKING;

Variable "all_datas" is not in valid camel caps format
Open

    $all_datas = [];

Variable "avg_student_score" is not in valid camel caps format
Open

            $avg_student_score = $avg_student_score / $nb_courses_student;

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']),

Variable "menu_items" is not in valid camel caps format
Open

        foreach ($menu_items as $key => $item) {

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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;

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

There are no issues that match your filters.

Category
Status