chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/dashboard.lib.php

Summary

Maintainability
A
0 mins
Test Coverage

The method store_dashboard_plugins() has an NPath complexity of 1621. The configured NPath complexity threshold is 200.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

Remove error control operator '@' on line 268.
Open

    public static function getPossibleDashboardPluginsPath()
    {
        // get all plugins path inside plugin directory
        /* We scan the plugin directory. Each folder is a potential plugin. */
        $possiblePlugins = [];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

Remove error control operator '@' on line 274.
Open

    public static function getPossibleDashboardPluginsPath()
    {
        // get all plugins path inside plugin directory
        /* We scan the plugin directory. Each folder is a potential plugin. */
        $possiblePlugins = [];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

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

                    } else {
                        echo '<td></td>';
                    }
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                    } else {
                        // insert
                        $plugin_info_file = $dashboard_pluginpath.$testplugin."/$testplugin.info";
                        $plugin_info = [];
                        if (file_exists($plugin_info_file)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

            } else {
                if ('css' != $testplugin) {
                    echo Display::tag(
                        'tr',
                        Display::tag(
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                        } else {
                            echo '<td>';
                            echo '<font color="#aaa">'.$disabled_block[$key].'</font>';
                            echo '</td>';
                        }
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                    } else {
                        echo '<td>&nbsp;</td>';
                    }
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                } else {
                    $active = 1;
                }
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                } else {
                    $html .= Display::tag('tr', Display::tag('td', get_lang('Error').' '.$controller_class, ['colspan' => '3']));
                }
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

        } else {
            $html .= '<div style="margin-top:20px">'.get_lang('ThereAreNoEnabledDashboard plugins').'</div>';
            if (api_is_platform_admin()) {
                $html .= '<a class="btn btn--plain" href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins">'.
                    get_lang('Configure Dashboard Plugin').'</a>';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                foreach ($extra_user_data as $key => $user_data) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

                for ($j = 0; $j < count($table_cols); $j++) {
                    $key = $table_cols[$j];
                    if (isset($disabled_block[$key])) {
                        if (2 == $j) {
                            echo '<td>';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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 ($i = 0; $i < count($table_cols); $i++) {
                    $key = $table_cols[$i];
                    if (isset($plugin_info[$key])) {
                        echo '<td>';
                        echo $plugin_info[$key];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

Method name "DashboardManager::handle_dashboard_plugins" is not in camel caps format
Open

    public static function handle_dashboard_plugins()

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

            foreach ($disabled_blocks_data as $disabled_block) {

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

                            $plugin_info = api_parse_info_file($plugin_info_file);

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

                               VALUES ('$plugin_name', '$plugin_description', '$plugin_path', '$plugin_controller', 1)";

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

                               VALUES ('$plugin_name', '$plugin_description', '$plugin_path', '$plugin_controller', 1)";

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

        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

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

                        $plugin_info = array_change_key_case($plugin_info);

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

                        $plugin_description = '';

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

                        if (isset($plugin_info['name'])) {

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

                    if (isset($plugin_info[$key])) {

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

                    $user_block_data = self::get_user_block_data($user_id);

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

                               VALUES ('$plugin_name', '$plugin_description', '$plugin_path', '$plugin_controller', 1)";

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

                $plugin_info = array_change_key_case($plugin_info);

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

        if (count($disabled_blocks_data) > 0) {

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

        $sql = "SELECT * FROM $tbl_block

Method name "DashboardManager::store_dashboard_plugins" is not in camel caps format
Open

    public static function store_dashboard_plugins($plugin_paths)

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

    public static function store_dashboard_plugins($plugin_paths)

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

            $not_selected_plugins = array_diff($possiblePlugins, array_keys($plugin_paths));

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

                    $not_selected_blocks_id[] = $block_data[$plugin]['id'];

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

                if (Database::num_rows($rs_check) > 0) {

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

        $dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/';

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

            if (file_exists($plugin_info_file) && is_readable($plugin_info_file)) {

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

                $plugin_info = api_parse_info_file($plugin_info_file);

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

            foreach ($disabled_blocks_data as $disabled_block) {

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

            $selected_plugins = array_intersect(array_keys($plugin_paths), $possiblePlugins);

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

                if (!empty($block_data[$plugin])) {

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

                    foreach ($user_block_id as $block_id) {

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

                            unset($user_block_data[$block_id]);

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

                    $selected_path = Database::escape_string($testplugin);

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

                        $plugin_info = [];

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

            if (file_exists($plugin_info_file) && is_readable($plugin_info_file)) {

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

                            echo '<font color="#aaa">'.$disabled_block[$key].'</font>';

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

            $selected_plugins = array_intersect(array_keys($plugin_paths), $possiblePlugins);

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

            $extra_user_data = UserManager::get_extra_user_data_by_field_variable($field_variable);

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

                            unset($user_block_data[$block_id]);

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

                $sql_check = "SELECT id FROM $tbl_block

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

                        $plugin_info = array_change_key_case($plugin_info);

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

                        $plugin_name = $testplugin;

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

        $rs_block = Database::query($sql);

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

                $plugin_info = api_parse_info_file($plugin_info_file);

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

                        echo $plugin_info[$key];

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

                    $key = $table_cols[$j];

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

                    if (isset($disabled_block[$key])) {

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

            $not_selected_blocks_id = [];

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

                        $user_blocks_id[$data['block_id']] = true;

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

                        $affected_rows = Database::affected_rows($result);

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

                        $plugin_info_file = $dashboard_pluginpath.$testplugin."/$testplugin.info";

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

                        if (file_exists($plugin_info_file)) {

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

                        $plugin_controller = '';

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

                        if (isset($plugin_info['description'])) {

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

                            $plugin_description = Database::escape_string($plugin_info['description']);

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

        $condition_path = '';

Method name "DashboardManager::display_dashboard_plugin_checkboxes" is not in camel caps format
Open

    public static function display_dashboard_plugin_checkboxes($plugin_path)

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

                    $not_selected_blocks_id[] = $block_data[$plugin]['id'];

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

                foreach ($extra_user_data as $key => $user_data) {

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

                foreach ($selected_plugins as $testplugin) {

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

                if (!isset($row_block['name'])) {

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

            $plugin_info_file = $dashboard_pluginpath.$testplugin."/$testplugin.info";

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

                for ($j = 0; $j < count($table_cols); $j++) {

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

                            echo '<font color="#aaa">'.$disabled_block[$key].'</font><br />';

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

                $block_data = self::get_enabled_dashboard_blocks($plugin);

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

            if (!empty($extra_user_data) && count($extra_user_data) > 0) {

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

                foreach ($extra_user_data as $key => $user_data) {

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

                    $user_block_data = self::get_user_block_data($user_id);

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

                    self::store_user_blocks($user_id, $user_blocks_id, $columns);

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

            if (!empty($not_selected_blocks_id)) {

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

                $sql_check = "SELECT id FROM $tbl_block

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

                               VALUES ('$plugin_name', '$plugin_description', '$plugin_path', '$plugin_controller', 1)";

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

                        $affected_rows = Database::affected_rows($result);

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

            unset($user_block_data[$enabled_block['id']]);

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

        $dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/';

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

        $disabled_blocks_data = self::get_block_data_without_plugin();

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

                    $user_block_id = array_keys($user_block_data);

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

                        if (in_array($block_id, $not_selected_blocks_id)) {

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

        $table_cols = ['name', 'version', 'description'];

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

                    $sql = "SELECT path FROM $tbl_block WHERE path = '$selected_path'";

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

            $plugin_info_file = $dashboard_pluginpath.$testplugin."/$testplugin.info";

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

                        $plugin_path = $testplugin;

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

            if ('.' != $file && '..' != $file && is_dir($dashboard_pluginpath.$file)) {

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

                    $key = $table_cols[$i];

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

            foreach ($not_selected_plugins as $plugin) {

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

                $rs_check = Database::query($sql_check);

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

                    $sql = "SELECT path FROM $tbl_block WHERE path = '$selected_path'";

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

                        if (isset($plugin_info['controller'])) {

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

                            $plugin_controller = Database::escape_string($plugin_info['controller']);

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

                            $plugin_controller = Database::escape_string($plugin_info['controller']);

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

        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();

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

                    $user_block_id = array_keys($user_block_data);

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

                    $user_blocks_id = [];

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

                    $del = "DELETE FROM $tbl_block WHERE id IN(".implode(',', $not_selected_blocks_id).")";

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

                    $del = "DELETE FROM $tbl_block WHERE id IN(".implode(',', $not_selected_blocks_id).")";

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

        return $affected_rows;

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

                $upd = "UPDATE $tbl_block SET active = '$active'

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

                $plugin_info = array_change_key_case($plugin_info);

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

                for ($i = 0; $i < count($table_cols); $i++) {

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

        $affected_rows = 0;

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

                        if (in_array($block_id, $not_selected_blocks_id)) {

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

            if (!empty($selected_plugins) && count($selected_plugins) > 0) {

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

                        $upd = "UPDATE $tbl_block SET active = 1 WHERE path = '$selected_path'";

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

                        $plugin_info_file = $dashboard_pluginpath.$testplugin."/$testplugin.info";

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

                            $plugin_description = Database::escape_string($plugin_info['description']);

Method name "DashboardManager::get_block_data_without_plugin" is not in camel caps format
Open

    public static function get_block_data_without_plugin()

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

    public static function display_dashboard_plugin_checkboxes($plugin_path)

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

                WHERE path = '".Database::escape_string($plugin_path)."' AND active = 1";

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

        $dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/';

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

            $not_selected_plugins = array_diff($possiblePlugins, array_keys($plugin_paths));

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

            $extra_user_data = UserManager::get_extra_user_data_by_field_variable($field_variable);

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

                    foreach ($user_block_id as $block_id) {

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

                $rs_check = Database::query($sql_check);

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

            if (!empty($selected_plugins) && count($selected_plugins) > 0) {

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

                        $upd = "UPDATE $tbl_block SET active = 1 WHERE path = '$selected_path'";

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

        $block_data = [];

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

        echo '<input type="checkbox" name="'.$plugin_path.'" value="true" '.$checked.'/>';

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

        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

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

            $field_variable = 'dashboard';

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

            if (!empty($extra_user_data) && count($extra_user_data) > 0) {

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

                    foreach ($user_block_data as $data) {

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

                    self::store_user_blocks($user_id, $user_blocks_id, $columns);

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

                            $plugin_info = api_parse_info_file($plugin_info_file);

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

                            $plugin_name = Database::escape_string($plugin_info['name']);

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

                        $ins = "INSERT INTO $tbl_block(title, description, path, controller, active)

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

                    $row_block['name'] = $row_block['title'];

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

                            get_lang('Check file permissions').' '.Security::remove_XSS($plugin_info_file),

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

                    $user_id = $key;

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

                              WHERE id IN(".implode(',', $not_selected_blocks_id).")";

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

                            $plugin_name = Database::escape_string($plugin_info['name']);

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

                            <option value="1" '.(isset($user_block_data[$block['id']]) && 1 == $user_block_data[$block['id']]['column'] ? 'selected' : '').' >1</option>

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

        $handle = @opendir($dashboard_pluginpath);

Method name "DashboardManager::get_enabled_dashboard_blocks" is not in camel caps format
Open

    public static function get_enabled_dashboard_blocks($path = '')

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

    public static function display_user_dashboard_list($user_id)

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)

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

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)

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

            $selected_blocks_id = array_keys($enabled_blocks);

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

        if (!isset($extra_user_data[$field_variable])) {

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

                $data[$block_id] = ['block_id' => $block_id, 'column' => $column];

Missing parameter name
Open

     * @param string    plugin path

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

    public static function close_user_block($user_id, $path)

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

            while ($row_block = Database::fetch_array($rs_block)) {

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

            while ($row_block = Database::fetch_array($rs_block)) {

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

        $user_block_data = self::get_user_block_data($user_id);

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)

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

        $user_block_data = self::get_user_block_data($user_id);

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

                $data[$block_id] = ['block_id' => $block_id, 'column' => $column];

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

        $sql = "SELECT * FROM $tbl_block";

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

        $block_data = [];

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

                    $row_block['name'] = $row_block['title'];

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

        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

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

        if (count($enabled_dashboard_plugins) > 0) {

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

                    $html .= Display::tag('tr', Display::tag('td', get_lang('Error').' '.$controller_class, ['colspan' => '3']));

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

        $user_id = intval($user_id);

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

        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {

Missing parameter name
Open

     * @param int    User id

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

        $upd_extra_field = UserManager::update_extra_field_value(

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

        $extra_user_data = explode(';', $extra_user_data[$field_variable]);

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

        $extra_user_data = explode(';', $extra_user_data[$field_variable]);

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

        $user_block_data = self::get_user_block_data($user_id);

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

        $user_block_data = self::get_user_block_data($user_id);

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

            unset($user_block_data[$enabled_block['id']]);

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

        $user_blocks_id = [];

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

                $block_data[] = $row_block;

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

            $condition_path = ' AND path = "'.$path.'" ';

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

        return $block_data;

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

                    $obj_block = new $controller_class($user_id);

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

                        $is_block_visible_for_user = $obj_block->is_block_visible_for_user($user_id);

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

                            <option value="2" '.(isset($user_block_data[$block['id']]) && 2 == $user_block_data[$block['id']]['column'] ? 'selected' : '').' >2</option>

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

        $user_id = intval($user_id);

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

        $user_id = intval($user_id);

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

        $field_variable = 'dashboard';

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

                $block_id = $split_extra[0];

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

                $column = isset($split_extra[1]) ? $split_extra[1] : null;

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

                        $is_block_visible_for_user = $obj_block->is_block_visible_for_user($user_id);

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

        if (in_array($block_id, $enabled_blocks_id)) {

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

        $html .= '<input type="checkbox" name="enabled_blocks['.$block_id.']" value="true" '.$checked.'/>';

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

        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);

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

                $block_id = $split_extra[0];

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

        foreach ($user_block_data as $data) {

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

                $block_data[] = $row_block;

Method name "DashboardManager::display_user_dashboard_list" is not in camel caps format
Open

    public static function display_user_dashboard_list($user_id)

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

                        $is_block_visible_for_user = $obj_block->is_block_visible_for_user($user_id);

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

        $enabled_blocks_id = array_keys($user_block_data);

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

        if (in_array($block_id, $enabled_blocks_id)) {

Method name "DashboardManager::store_user_blocks" is not in camel caps format
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)

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

        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);

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

                $column = isset($split_extra[1]) ? $split_extra[1] : null;

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

        foreach ($enabled_dashboard_blocks as $enabled_block) {

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

        $upd_extra_field = self::store_user_blocks($user_id, $user_blocks_id, $columns);

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

            foreach ($enabled_dashboard_plugins as $block) {

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

                $dashboard_plugin_path = api_get_path(SYS_PLUGIN_PATH).'dashboard/'.$path.'/';

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

                require_once $dashboard_plugin_path.$filename_controller;

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

                    $obj_block = new $controller_class($user_id);

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

                    $obj_block = new $controller_class($user_id);

Method name "DashboardManager::display_user_dashboard_list_checkboxes" is not in camel caps format
Open

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)

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

        $user_block_data = self::get_user_block_data($user_id);

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

        $selected_blocks_id = [];

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

        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {

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

            $selected_blocks_id = array_keys($enabled_blocks);

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

    public static function get_user_block_data($user_id)

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

        $sql = "SELECT * FROM $tbl_block WHERE active = 1 $condition_path ";

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

        $sql = "SELECT * FROM $tbl_block WHERE active = 1 $condition_path ";

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

                $controller_class = $block['controller'];

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

                require_once $dashboard_plugin_path.$filename_controller;

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

        $user_id = intval($user_id);

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

        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);

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

        foreach ($enabled_dashboard_blocks as $enabled_block) {

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

        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

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

        $sql = "SELECT * FROM $tbl_block WHERE active = 0";

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

        return $block_data;

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

                $block_data[$row['path']] = $row;

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

        foreach ($selected_blocks_id as $block_id) {

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

            $fvalue[] = $block_id.':'.$columns[$block_id];

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

            $user_id,

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

        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);

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

        if (Database::num_rows($rs_block) > 0) {

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

                    if (method_exists($obj_block, 'is_block_visible_for_user')) {

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

                            <option value="2" '.(isset($user_block_data[$block['id']]) && 2 == $user_block_data[$block['id']]['column'] ? 'selected' : '').' >2</option>

Missing parameter name
Open

     * @param int    Block id

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

        return $upd_extra_field;

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

            if (!empty($split_extra)) {

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

        $upd_extra_field = self::store_user_blocks($user_id, $user_blocks_id, $columns);

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

            $fvalue[] = $block_id.':'.$columns[$block_id];

Missing parameter name
Open

     * @param int        User id

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

            $split_extra = explode(':', $extra);

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

            $user_blocks_id[$data['block_id']] = true;

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

        return $upd_extra_field;

Missing parameter name
Open

     * @param int  User id

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

        $user_block_data = self::get_user_block_data($user_id);

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

                if (class_exists($controller_class)) {

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

                        if (!$is_block_visible_for_user) {

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

        $enabled_blocks_id = array_keys($user_block_data);

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

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)

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

        foreach ($selected_blocks_id as $block_id) {

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

        if (!isset($extra_user_data[$field_variable])) {

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

        $upd_extra_field = self::store_user_blocks($user_id, $user_blocks_id, $columns);

Method name "DashboardManager::get_user_block_data" is not in camel caps format
Open

    public static function get_user_block_data($user_id)

Expected 19 spaces after parameter type; 1 found
Open

     * @param int $user_id User id

Method name "DashboardManager::close_user_block" is not in camel caps format
Open

    public static function close_user_block($user_id, $path)

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

                $filename_controller = $path.'.class.php';

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

                    $html .= self::display_user_dashboard_list_checkboxes($user_id, $block['id']);

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

                            <option value="1" '.(isset($user_block_data[$block['id']]) && 1 == $user_block_data[$block['id']]['column'] ? 'selected' : '').' >1</option>

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

        $extra_user_data = explode(';', $extra_user_data[$field_variable]);

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

        foreach ($extra_user_data as $extra) {

The variable $plugin_info is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_blocks_data is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_block is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_path is not named in camelCase.
Open

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_paths is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $sql_check is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_path is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $rs_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_plugin_path is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $controller_class is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_paths is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_path is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_name is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_path is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filename_controller is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $obj_block is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_block is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_path is not named in camelCase.
Open

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $sql_check is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_name is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_plugin_path is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_blocks_data is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $condition_path is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $obj_block is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $affected_rows is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $rs_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $rs_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_block is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_controller is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_block is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_controller is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_path is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $condition_path is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $controller_class is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_blocks is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $disabled_blocks_data is not named in camelCase.
Open

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_description is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $split_extra is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $rs_check is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_path is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function getPossibleDashboardPluginsPath()
    {
        // get all plugins path inside plugin directory
        /* We scan the plugin directory. Each folder is a potential plugin. */
        $possiblePlugins = [];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_blocks is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_name is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $controller_class is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_dashboard_blocks is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $rs_check is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info_file is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $affected_rows is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $condition_path is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $controller_class is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filename_controller is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $split_extra is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $split_extra is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $upd_extra_field is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_dashboard_plugins is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $obj_block is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $split_extra is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $affected_rows is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_blocks_id is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_description is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_info is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_description is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_data is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_dashboard_plugins is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_blocks_id is not named in camelCase.
Open

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_blocks_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $upd_extra_field is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $upd_extra_field is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $plugin_controller is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function getPossibleDashboardPluginsPath()
    {
        // get all plugins path inside plugin directory
        /* We scan the plugin directory. Each folder is a potential plugin. */
        $possiblePlugins = [];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_block is not named in camelCase.
Open

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_blocks_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_dashboard_blocks is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_selected_plugins is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_block is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $affected_rows is not named in camelCase.
Open

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dashboard_pluginpath is not named in camelCase.
Open

    public static function getPossibleDashboardPluginsPath()
    {
        // get all plugins path inside plugin directory
        /* We scan the plugin directory. Each folder is a potential plugin. */
        $possiblePlugins = [];
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_dashboard_plugins is not named in camelCase.
Open

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $upd_extra_field is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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 static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_block is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_blocks_id is not named in camelCase.
Open

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $selected_blocks_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $split_extra is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_block is not named in camelCase.
Open

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $block_id is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $extra_user_data is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $field_variable is not named in camelCase.
Open

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $enabled_blocks is not named in camelCase.
Open

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

CamelCaseVariableName

Since: 0.2

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

    public static function get_enabled_dashboard_blocks($path = '')
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $condition_path = '';
        if (!empty($path)) {
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_user_dashboard_list($user_id)
    {
        $enabled_dashboard_plugins = self::get_enabled_dashboard_blocks();
        $user_block_data = self::get_user_block_data($user_id);
        $html = '';
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function handle_dashboard_plugins()
    {
        $token = Security::get_existing_token();
        $tokenCondition = '&sec_token='.$token;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function get_block_data_without_plugin()
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $possiblePlugins = self::getPossibleDashboardPluginsPath();

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_dashboard_plugin_checkboxes($plugin_path)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);

        $sql = "SELECT * FROM $tbl_block
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function store_user_blocks($user_id, $enabled_blocks, $columns)
    {
        $selected_blocks_id = [];
        if (is_array($enabled_blocks) && count($enabled_blocks) > 0) {
            $selected_blocks_id = array_keys($enabled_blocks);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function store_dashboard_plugins($plugin_paths)
    {
        $tbl_block = Database::get_main_table(TABLE_MAIN_BLOCK);
        $affected_rows = 0;

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function get_user_block_data($user_id)
    {
        $user_id = intval($user_id);
        $field_variable = 'dashboard';
        $extra_user_data = UserManager::get_extra_user_data_by_field($user_id, $field_variable);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function display_user_dashboard_list_checkboxes($user_id, $block_id)
    {
        $user_id = intval($user_id);
        $user_block_data = self::get_user_block_data($user_id);
        $enabled_blocks_id = array_keys($user_block_data);
Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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

    public static function close_user_block($user_id, $path)
    {
        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
        $user_block_data = self::get_user_block_data($user_id);

Severity: Minor
Found in public/main/inc/lib/dashboard.lib.php by phpmd

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