chamilo/chamilo-lms

View on GitHub
public/main/gradebook/lib/fe/flatviewtable.class.php

Summary

Maintainability
A
0 mins
Test Coverage

The method display_graph_by_resource() has an NPath complexity of 248064. The configured NPath complexity threshold is 200.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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 get_table_data() has an NPath complexity of 138240. The configured NPath complexity threshold is 200.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

Missing class import via use statement (line '45', column '30').
Open

        $this->datagen = new FlatViewDataGenerator(

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

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

            } else {
                echo '   ';
            }

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

            } else {
                /* Create the pChart object */
                $widthSize = 480;
                $heightSize = 250;
                $myPicture = new pImage($widthSize, $heightSize, $dataSet);

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

        } else {
            $users_sorting = (0 == $this->column ? FlatViewDataGenerator::FVDG_SORT_LASTNAME : FlatViewDataGenerator::FVDG_SORT_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_table_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $this->set_header($column, $headerData, false, $thAttributes);
            }

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

        } else {
            $selectlimit = $totalitems;
        }

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

            } else {
                $user_row[1 + $columnOffset] = $this->build_name_link(
                    $user_id,
                    $userInfo['lastname']
                );

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

            } else {
                $header .= Display::getMdiIcon(
                    ActionIcon::PREVIOUS,
                    'ch-tool-icon-disabled',
                    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

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

            } else {
                $header .= Display::getMdiIcon(
                    ActionIcon::NEXT,
                    'ch-tool-icon-disabled',
                    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

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

        } else {
            $users_sorting |= FlatViewDataGenerator::FVDG_SORT_ASC;
        }

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 parameters such as '$perPage'.
Open

        $perPage = null,

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

        $direction = null,

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

        $sort = null

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 ($i = 0; $i < count($headerName); $i++) {
                if (isset($result[$i + 1])) {
                    $pre_result[$i + 3][] = $result[$i + 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 while loops.
Open

        while ($column < count($header_names)) {
            $headerData = $header_names[$column];

            if (is_array($headerData)) {
                $countItems = count($headerData['items']);

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

class FlatViewTable extends SortableTable
{
    public $datagen;
    private $selectcat;
    private $limit_enabled;

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $limit_enabled is not named in camelCase.
Open

    public function __construct(
        Category $selectcat,
        array $users = [],
        array $evals = [],
        array $links = [],

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 "limit_enabled" is not in valid camel caps format
Open

        $this->limit_enabled = $limit_enabled;

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

        if ($this->limit_enabled && $totalitems > GRADEBOOK_ITEM_LIMIT) {

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

            rsort($res_array);

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

                        $resource_list[$key][$userResult] = 0;

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

                    $resource_list[$key][$userResult]++;

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

            $users_sorting |= FlatViewDataGenerator::FVDG_SORT_ASC;

Missing function doc comment
Open

    public function __construct(

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

        if ($is_western_name_order) {

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

        $header_names = $this->datagen->get_header_names($this->offset, $selectlimit);

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

        foreach ($header_names as $item) {

Method name "FlatViewTable::display_graph_by_resource" is not in camel caps format
Open

    public function display_graph_by_resource()

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

        $user_results = $this->datagen->get_data_to_graph2(false);

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

                    $pre_result[$i + 3][] = $result[$i + 1];

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

        $resource_list = [];

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

            $new_value = [];

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

            $new_list[] = $new_value;

Method name "FlatViewTable::get_table_data" is not in camel caps format
Open

    public function get_table_data(

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

            foreach ($pre_result2 as $key => $res_array) {

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

        $this->set_header(0, $header_names[0], true, $thAttributes);

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

        $total_users = $this->datagen->get_total_users_count();

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

        foreach ($pre_result as $key => $res_array) {

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

        $new_list = [];

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

        if (empty($user_results) || empty($total_users)) {

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

        $pre_result = [];

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

        $pre_result2 = [];

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

            $pre_result2[] = $res_array;

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

            $users_sorting = (0 == $this->column ? FlatViewDataGenerator::FVDG_SORT_LASTNAME : FlatViewDataGenerator::FVDG_SORT_FIRSTNAME);

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

                foreach ($res_array as $user_result) {

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

                    if (!isset($resource_list[$key][$userResult])) {

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

        $resource_list = $new_list;

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

            $users_sorting |= FlatViewDataGenerator::FVDG_SORT_DESC;

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

        bool $limit_enabled = false,

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

                $key_list = [];

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

        $this->limit_enabled = $limit_enabled;

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

                foreach ($res_array as $user_result) {

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

                $new_value[$item['display']] = strip_tags($value[$item['display']]);

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

                    if (!in_array($display['display'], $key_list)) {

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

        foreach ($resource_list as $key => $value) {

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

            $new_list[] = $new_value;

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

        $is_western_name_order = api_is_western_name_order();

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

        foreach ($resource_list as $key => $resource) {

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

            $users_sorting = (0 == $this->column ? FlatViewDataGenerator::FVDG_SORT_FIRSTNAME : FlatViewDataGenerator::FVDG_SORT_LASTNAME);

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

        foreach ($pre_result as $key => $res_array) {

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

            foreach ($pre_result2 as $key => $res_array) {

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

                $myPicture->Antialias = false;

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

        if ($this->limit_enabled && $totalitems > GRADEBOOK_ITEM_LIMIT) {

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

                    $userResult = isset($user_result[1]) ? $user_result[1] : null;

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

                    $userResult = isset($user_result[1]) ? $user_result[1] : null;

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

        $resource_list = $new_list;

Method name "FlatViewTable::get_total_number_of_items" is not in camel caps format
Open

    public function get_total_number_of_items()

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

        $this->limit_enabled = (bool) $value;

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

            $pre_result2[] = $res_array;

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

        if ($total_users > 0) {

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

                    $key_list[] = $userResult;

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

        $this->set_header(1, $header_names[1], true, $thAttributes);

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

        while ($column < count($header_names)) {

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

        if (empty($user_results) || empty($total_users)) {

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

        foreach ($user_results as $result) {

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

                        $resource_list[$key][$display['display']] = 0;

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

            $users_sorting,

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

        foreach ($data_array as $user_row) {

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

            $userInfo = api_get_user_info($user_id);

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

                    $user_id,

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

                    $user_id,

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

            $headerData = $header_names[$column];

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

        foreach ($data_array as $user_row) {

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

            $user_id = $user_row[0];

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

            $user_row = array_values($user_row);

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

        $data_array = $this->datagen->get_data(

Method name "FlatViewTable::build_name_link" is not in camel caps format
Open

    private function build_name_link($userId, $name)

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

                $user_row[1 + $columnOffset] = $this->build_name_link(

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

                $user_row[2 + $columnOffset] = $this->build_name_link(

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

                $user_row[1 + $columnOffset] = $this->build_name_link(

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

                    $user_id,

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

                    $user_id,

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

            $this->per_page,

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

        $table_data = [];

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

        return $table_data;

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

            if ($is_western_name_order) {

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

            $user_id = $user_row[0];

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

            unset($user_row[0]);

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

            $user_row = array_values($user_row);

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

            $table_data[] = $user_row;

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

                $user_row[2 + $columnOffset] = $this->build_name_link(

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

            $table_data[] = $user_row;

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

            $table_data[] = $firstHeader;

The variable $limit_enabled is not named in camelCase.
Open

    public function __construct(
        Category $selectcat,
        array $users = [],
        array $evals = [],
        array $links = [],

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_result is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_results is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_result is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_result is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_results is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_results is not named in camelCase.
Open

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_row is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_id is not named in camelCase.
Open

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    public function get_total_number_of_items()
    {
        return $this->datagen->get_total_users_count();
    }

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

    public function display_graph_by_resource()
    {
        $headerName = $this->datagen->get_header_names();
        $total_users = $this->datagen->get_total_users_count();
        $customdisplays = ScoreDisplay::instance()->get_custom_score_display_settings();

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

    public function get_table_data(
        $from = 1,
        $perPage = null,
        $column = null,
        $direction = null,

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

    private function build_name_link($userId, $name)
    {
        return '<a href="user_stats.php?userid='.$userId.'&selectcat='.$this->selectcat->get_id().'&'.api_get_cidreq().'">'.$name.'</a>';
    }

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