chamilo/chamilo-lms

View on GitHub
public/main/gradebook/lib/fe/displaygradebook.php

Summary

Maintainability
A
0 mins
Test Coverage

The method display_header_result() has an NPath complexity of 26208. The configured NPath complexity threshold is 200.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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

The method header() has an NPath complexity of 986723233920. The configured NPath complexity threshold is 200.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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

The method header uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $header .= '<option value='.$cat[0].'>'.$line.' '.$cat[1].'</option>';
                }

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 display_header_reduce_flatview uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $select_cat = $catobj->get_parent_id();
            $url = 'gradebook_flatview.php';
        }

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 display_header_result uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $course = api_get_course_info_by_id($evalobj->getCourseId())['title'];
        }

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 display_header_result uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $links[] = '<a href="gradebook_view_result.php?'.api_get_cidreq().'&selecteval='.Security::remove_XSS($_GET['selecteval']).'"> '.
                    Display::getMdiIcon(ActionIcon::BACK, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Assessment home')).'</a>';
            }

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 header uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $header .= '<td></td>';
            }

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 header uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $actionsLeft .= '<a href="gradebook_add_link_select_course.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.
                            Display::getMdiIcon('link-plus', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Add online activity')).'</a>';
                    }

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 header uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                        } else {
                            $course = api_get_course_entity($courseId);
                            $resourceId = $course->resourceNode->getId();
                            $certificateLink = api_get_path(WEB_PATH) . 'resources/document/'.$resourceId.'/?'.api_get_cidreq().'&filetype=certificate';
                            $actionsRight .= '<a href="'.$certificateLink.'">'.

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 display_reduce_header_gradebook uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $header .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&studentoverview=&exportpdf=&selectcat='.$catobj->get_id().'" target="_blank">'.Display::getMdiIcon(ActionIcon::EXPORT_PDF, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Export to PDF')).'</a>';
        }

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

Avoid unused local variables such as '$toolbar'.
Open

            echo $toolbar = Display::toolbarAction(

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused parameters such as '$show_add_qualification'.
Open

        $show_add_qualification = true,

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 local variables such as '$header'.
Open

        $header = null;

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused parameters such as '$showeval'.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)

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 '$is_platform_admin'.
Open

        $is_platform_admin,

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 '$showlink'.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)

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 '$simple_search_form'.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)

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 '$show_add_link'.
Open

        $show_add_link = true

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 '$is_platform_admin'.
Open

        $is_platform_admin,

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 '$simple_search_form'.
Open

        $simple_search_form,

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 '$show_add_qualification'.
Open

        $show_add_qualification = true,

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 using count() function in for loops.
Open

            for ($count = 0; $count < count($allEvalsLinks); $count++) {
                $item = $allEvalsLinks[$count];
                $score = $item->calc_score($userId);
                if (!empty($score)) {
                    $divide = 0 == $score[1] ? 1 : $score[1];

CountInLoopExpression

Since: 2.7.0

Using count/sizeof in loops expressions is considered bad practice and is a potential source of many bugs, especially when the loop manipulates an array, as count happens on each iteration.

Example

class Foo {

  public function bar()
  {
    $array = array();

    for ($i = 0; count($array); $i++) {
      // ...
    }
  }
}

Source https://phpmd.org/rules/design.html#countinloopexpression

Avoid using count() function in for loops.
Open

        for ($count = 0; $count < count($evals_links); $count++) {
            $item = $evals_links[$count];
            $score = $item->calc_score($userId);
            if ($score) {
                $my_score_denom = (0 == $score[1]) ? 1 : $score[1];

CountInLoopExpression

Since: 2.7.0

Using count/sizeof in loops expressions is considered bad practice and is a potential source of many bugs, especially when the loop manipulates an array, as count happens on each iteration.

Example

class Foo {

  public function bar()
  {
    $array = array();

    for ($i = 0; count($array); $i++) {
      // ...
    }
  }
}

Source https://phpmd.org/rules/design.html#countinloopexpression

The parameter $is_platform_admin is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $simple_search_form is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_add_qualification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $simple_search_form is not named in camelCase.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)
    {
        $header = '<div class="actions">';
        if (0 == $catobj->get_parent_id()) {
            $select_cat = $catobj->get_id();

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $is_course_admin is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_add_link is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_add_link is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $show_add_qualification is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $is_platform_admin is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $simple_search_form is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $is_course_admin is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

                    $student_score = $evalobj->calc_score(api_get_user_id());

Missing parameter name
Open

     * @param $showeval

Missing parameter name
Open

     * @param               $selectcat

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

            $item_total = $main_weight;

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ).'&cid='.$catobj->getCourseId().'&sid='.$catobj->get_session_id().'">'.

Expected 15 spaces after parameter type; 1 found
Open

     * @param bool $show_add_qualification

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

                        get_lang('Score').': '.$scoredisplay->display_score($student_score, SCORE_DIV_PERCENT)

Missing parameter name
Open

     * @param $catobj

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

        $simple_search_form,

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

        if (!$is_course_admin) {

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

            $item_total = $main_weight;

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

            if (!empty($min_certification)) {

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

                            $min_certification = $model;

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

            $edit_icon = '<a href="gradebook_edit_cat.php?editcat='.$catobj->get_id().'&cid='.$catobj->getCourseId().'&sid='.$catobj->get_session_id().'">'.

Expected 15 spaces after parameter type; 1 found
Open

     * @param bool $show_add_link

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

        if (!$is_course_admin) {

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

        $evals_links = array_merge($allevals, $alllinks);

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

        $grade_model_id = $catobj->get_grade_model_id();

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

            if ((empty($grade_model_id) || -1 == $grade_model_id) && $accessToEdit) {

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

                            'true' == $score_display_custom

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

            $actionsLeft .= '<a href="gradebook_flatview.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

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

        $simple_search_form,

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

            $scorecourse_display = isset($scorecourse) ? $scoredisplay->display_score($scorecourse, SCORE_AVERAGE) : get_lang('No results available');

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

            $scoreinfo .= '<br />'.get_lang('Total').' : <b>'.$scoretotal_display.'</b>';

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

            $select_cat = $catobj->get_parent_id();

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

        $show_add_link = true,

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

                    $item_value_total += $item_value;

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

            $total_score = [$item_value_total, $item_total];

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

        $my_api_cidreq = api_get_cidreq();

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

                        $actionsLeft .= '<a href="gradebook_add_link_select_course.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                ).'customcertificate/src/index.php?'.

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

        $item_value = api_number_format($item_value, 2);

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

                $scoreinfo .= '<strong>'.sprintf(get_lang('Total: %s'), $scorecourse_display.$additionalButtons).'</strong>';

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

            if (!($is_course_admin &&

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

                    $my_api_cidreq = 'cid='.$my_category['c_id'];

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

                        $actionsLeft .= '<a href="gradebook_add_link.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

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

        for ($count = 0; $count < count($evals_links); $count++) {

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

        $header .= '<a href="'.$url.'?'.api_get_cidreq().'&selectcat='.$select_cat.'">'.

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

        if (!$is_course_admin && (1 != $status || 0 == $sessionStatus) && 0 != $selectcat) {

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

                            api_get_path(WEB_AJAX_PATH)."gradebook.ajax.php?$my_api_cidreq&a=generate_custom_report",

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

            $min_certification = get_lang('Minimum certification score').' : '.$min_certification;

Missing parameter name
Open

     * @param $is_platform_admin

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

        $show_add_qualification = true,

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

                $my_score_denom = (0 == $score[1]) ? 1 : $score[1];

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

                    $student_score = Display::tag(

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

        $is_course_admin,

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

        $show_add_qualification = true,

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

            $main_weight = $category->get_weight();

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

            $item_value_total = 0;

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

                    $item_value_total += $item_value;

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

                        "gradebook_display_summary.php?$my_api_cidreq&selectcat=".$selectcat

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

            $min_certification = intval($catobj->getCertificateMinScore() > 0) ? $catobj->getCertificateMinScore() : 0;

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

        $item_value = 0;

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

            $item_total += $item->get_weight();

Method name "DisplayGradebook::display_header_result" is not in camel caps format
Open

    public static function display_header_result($evalobj, $selectcat, $page)

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

            $select_cat = $catobj->get_id();

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

            $total_score = [$item_value_total, $item_total];

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

                    $actionsLeft .= '<a href="gradebook_add_eval.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'" >'.

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

            if ((empty($grade_model_id) || -1 == $grade_model_id) && $accessToEdit) {

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

        $is_course_admin,

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

        $show_add_link = true

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

                $item_value += $score[0] / $my_score_denom * $item->get_weight();

Method name "DisplayGradebook::display_header_reduce_flatview" is not in camel caps format
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)

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

            $total_score = [$item_value_total, $item_total];

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

            if (!empty($simple_search_form) && empty($messageResource)) {

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

            $my_category = $catobj->showAllCategoryInfo($catobj->get_id());

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

                            "gradebook_display_certificate.php?$my_api_cidreq&cat_id=".$selectcat

Missing parameter name
Open

     * @param $simple_search_form

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

                if ('' == $my_api_cidreq) {

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    WEB_PLUGIN_PATH

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

                            $actionsRight .= '<a href="gradebook_scoring_system.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

Missing parameter name
Open

     * @param $is_course_admin

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

                        $score_display_custom = api_get_setting('gradebook_score_display_custom');

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

            $min_certification = get_lang('Minimum certification score').' : '.$min_certification;

Method name "DisplayGradebook::display_header_user" is not in camel caps format
Open

    public static function display_header_user($userId, $categoryId)

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

        $total_score = [$item_value, $item_total];

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

        $student_score = '';

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            ]);

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

                                ).'&'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

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

            $msg = $weight.' - '.$min_certification.$edit_icon;

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

            $scorecourse_display = $scoredisplay->display_score($total_score, SCORE_DIV_PERCENT);

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

                if ($show_add_link && empty($messageResource)) {

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

                    $actionsLeft .= '<a href="gradebook_flatview.php?'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

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

            $msg = $weight.' - '.$min_certification.$edit_icon;

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

            $item = $evals_links[$count];

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

                                $student_score .= ResultTable::getResultAttemptTable($resultData);

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

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)

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

                $header .= '<td style="vertical-align: top;">'.$simple_search_form->toHtml().'</td>';

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

                    if (1 == $my_category['generate_certificates']) {

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                ).'&'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

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

        $is_platform_admin,

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

            $scoretotal_display = isset($scoretotal) ? $scoredisplay->display_score($scoretotal, SCORE_PERCENT) : get_lang('No results available');

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

                $item_value += $score[0] / $my_score_denom * $item->get_weight();

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

            $evalinfo .= $student_score;

Missing parameter name
Open

     * @param $showlink

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

            $scorecourse_display = $scoredisplay->display_score($total_score, SCORE_DIV_PERCENT);

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

                                $my_api_cidreq.'&origin=gradebook&selectcat='.$catobj->get_id().'">'.

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

                    $defaultCertification = api_number_format($min_certification, 2);

Expected 11 spaces after parameter type; 1 found
Open

     * @param Category $catobj

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

        if ($is_course_admin) {

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

        $item_total = 0;

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

        $is_platform_admin,

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

                    $item_value = $score[0] / $divide * $item->get_weight();

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

                    $my_api_cidreq = 'cid='.$my_category['c_id'];

Method name "DisplayGradebook::display_reduce_header_gradebook" is not in camel caps format
Open

    public function display_reduce_header_gradebook(

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

                $scoreinfo .= '<br />'.get_lang('Total for this category.').' : <b>'.$scorecourse_display.'</b>';

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

        $item_value = api_number_format($item_value, 2);

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

        $total_score = [$item_value, $item_total];

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

        $scorecourse_display = $scoredisplay->display_score($total_score, SCORE_DIV_PERCENT);

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

        $info .= get_lang('Total for user').' : <b>'.$scorecourse_display.'</b>';

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

        $total_score = [$item_value, $item_total];

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

        $scorecourse_display = $scoredisplay->display_score($total_score, SCORE_DIV_PERCENT);

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                ).'&'.$my_api_cidreq.'&selectcat='.$catobj->get_id().'">'.

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ).'&cid='.$catobj->getCourseId().'&sid='.$catobj->get_session_id().'">'.

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                ).'customcertificate/src/index.php?'.

Multi-line function call not indented correctly; expected 32 spaces but found 36
Open

                                    WEB_PLUGIN_PATH

The variable $is_course_admin is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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 $total_score is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $item_total is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_course_admin is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $show_add_link is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $grade_model_id is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $select_cat is not named in camelCase.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)
    {
        $header = '<div class="actions">';
        if (0 == $catobj->get_parent_id()) {
            $select_cat = $catobj->get_id();

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $score_display_custom is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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 $main_weight is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $item_total is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $scorecourse_display is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $edit_icon is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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 $item_value_total is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_category is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_category is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $score_display_custom is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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 $item_value is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $simple_search_form is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $select_cat is not named in camelCase.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)
    {
        $header = '<div class="actions">';
        if (0 == $catobj->get_parent_id()) {
            $select_cat = $catobj->get_id();

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 $select_cat is not named in camelCase.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)
    {
        $header = '<div class="actions">';
        if (0 == $catobj->get_parent_id()) {
            $select_cat = $catobj->get_id();

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 $item_value_total is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $main_weight is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $edit_icon is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $min_certification is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $grade_model_id is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $grade_model_id is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $item_value is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $simple_search_form is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_category is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $total_score is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $scorecourse_display is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_score is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

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_course_admin is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $item_value_total is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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_api_cidreq is not named in camelCase.
Open

    public static function header(
        $catobj,
        $showtree,
        $selectcat,
        $is_course_admin,

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 $item_total is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $scorecourse_display is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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_course_admin is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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 $evals_links is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_value is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $evals_links is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_value is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $scorecourse_display is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $total_score is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_value is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $total_score is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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_score_denom is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_total is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_total is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $scorecourse_display is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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_score_denom is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_value is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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_course_admin is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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 $evals_links is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $item_value is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

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 $scoretotal_display is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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 $scoretotal_display is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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 $scorecourse_display is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

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 method display_header_reduce_flatview is not named in camelCase.
Open

    public static function display_header_reduce_flatview($catobj, $showeval, $showlink, $simple_search_form)
    {
        $header = '<div class="actions">';
        if (0 == $catobj->get_parent_id()) {
            $select_cat = $catobj->get_id();

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_header_result is not named in camelCase.
Open

    public static function display_header_result($evalobj, $selectcat, $page)
    {
        $links = [];
        if (api_is_allowed_to_edit(null, true)) {
            if ('statistics' !== $page) {

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_header_user is not named in camelCase.
Open

    public static function display_header_user($userId, $categoryId)
    {
        $user = api_get_user_info($userId);
        if (empty($user)) {
            return '';

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_reduce_header_gradebook is not named in camelCase.
Open

    public function display_reduce_header_gradebook(
        $catobj,
        $is_course_admin,
        $is_platform_admin,
        $simple_search_form,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status