ImpressCMS/impresscms

View on GitHub
htdocs/install/modulesadmin.php

Summary

Maintainability
F
3 wks
Test Coverage

Function icms_module_update has a Cognitive Complexity of 376 (exceeds 5 allowed). Consider refactoring.
Open

function icms_module_update($dirname) {
    $dirname = trim($dirname);
    $db =& icms_db_Factory::instance();
    $module_handler = icms::handler('icms_module');
    $module =& $module_handler->getByDirname($dirname);
Severity: Minor
Found in htdocs/install/modulesadmin.php - About 1 wk to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function xoops_module_install has a Cognitive Complexity of 360 (exceeds 5 allowed). Consider refactoring.
Open

function xoops_module_install($dirname) {
    $dirname = trim($dirname);
    $db =& icms_db_Factory::instance();
    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
    $module_handler = icms::handler('icms_module');
Severity: Minor
Found in htdocs/install/modulesadmin.php - About 1 wk to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method icms_module_update has 393 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function icms_module_update($dirname) {
    $dirname = trim($dirname);
    $db =& icms_db_Factory::instance();
    $module_handler = icms::handler('icms_module');
    $module =& $module_handler->getByDirname($dirname);
Severity: Major
Found in htdocs/install/modulesadmin.php - About 1 day to fix

    Method xoops_module_install has 391 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function xoops_module_install($dirname) {
        $dirname = trim($dirname);
        $db =& icms_db_Factory::instance();
        $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
        $module_handler = icms::handler('icms_module');
    Severity: Major
    Found in htdocs/install/modulesadmin.php - About 1 day to fix

      File modulesadmin.php has 811 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Installer tables creation page
       *
       * See the enclosed file license.txt for licensing information.
      Severity: Major
      Found in htdocs/install/modulesadmin.php - About 1 day to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ($template != '') {
                                        $tplfile =& $tplfile_handler->find('default', 'block', $fblock['bid']);
                                        if (count($tplfile) == 0) {
                                            $tplfile_new =& $tplfile_handler->create();
                                            $tplfile_new->setVar('tpl_module', $dirname);
        Severity: Major
        Found in htdocs/install/modulesadmin.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (empty($newbid)) {
                                          $newbid = $db->getInsertId();
                                      }
          Severity: Major
          Found in htdocs/install/modulesadmin.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if ($template != '') {
                                            $tplfile =& $tplfile_handler->create();
                                            $tplfile->setVar('tpl_module', $dirname);
                                            $tplfile->setVar('tpl_refid', (int) ($newbid));
                                            $tplfile->setVar('tpl_source', $content, true);
            Severity: Major
            Found in htdocs/install/modulesadmin.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              for ($k = 0; $k < $btcount; $k++) {
                                                  if (!$tplfile_handler->delete($tplfiles[$k])) {
                                                      $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not remove deprecated block template. (ID: <b>'.$tplfiles[$k]->getVar('tpl_id').'</b>)</span>';
                                                  } else {
                                                      $msgs[] = '&nbsp;&nbsp;Block template <b>'.$tplfiles[$k]->getVar('tpl_file').'</b> deprecated.';
              Severity: Major
              Found in htdocs/install/modulesadmin.php - About 45 mins to fix

                Function xoops_module_gettemplate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                Open

                function &xoops_module_gettemplate($dirname, $template, $block=false) {
                    $ret = '';
                    if ($block) {
                        $path = ICMS_ROOT_PATH.'/modules/'.$dirname.'/templates/blocks/'.$template;
                    } else {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php - About 25 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                The function icms_module_update() has 431 lines of code. Current threshold is set to 100. Avoid really long methods.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                The function xoops_module_install() has an NPath complexity of 74730401888725. The configured NPath complexity threshold is 200.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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

                The function xoops_module_install() has 430 lines of code. Current threshold is set to 100. Avoid really long methods.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                The function icms_module_update() has an NPath complexity of 223710219532802. The configured NPath complexity threshold is 200.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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

                The function xoops_module_install() has a Cyclomatic Complexity of 81. The configured cyclomatic complexity threshold is 10.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                CyclomaticComplexity

                Since: 0.1

                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                Example

                // Cyclomatic Complexity = 11
                class Foo {
                1   public function example() {
                2       if ($a == $b) {
                3           if ($a1 == $b1) {
                                fiddle();
                4           } elseif ($a2 == $b2) {
                                fiddle();
                            } else {
                                fiddle();
                            }
                5       } elseif ($c == $d) {
                6           while ($c == $d) {
                                fiddle();
                            }
                7        } elseif ($e == $f) {
                8           for ($n = 0; $n < $h; $n++) {
                                fiddle();
                            }
                        } else {
                            switch ($z) {
                9               case 1:
                                    fiddle();
                                    break;
                10              case 2:
                                    fiddle();
                                    break;
                11              case 3:
                                    fiddle();
                                    break;
                                default:
                                    fiddle();
                                    break;
                            }
                        }
                    }
                }

                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                The function icms_module_update() has a Cyclomatic Complexity of 88. The configured cyclomatic complexity threshold is 10.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                CyclomaticComplexity

                Since: 0.1

                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                Example

                // Cyclomatic Complexity = 11
                class Foo {
                1   public function example() {
                2       if ($a == $b) {
                3           if ($a1 == $b1) {
                                fiddle();
                4           } elseif ($a2 == $b2) {
                                fiddle();
                            } else {
                                fiddle();
                            }
                5       } elseif ($c == $d) {
                6           while ($c == $d) {
                                fiddle();
                            }
                7        } elseif ($e == $f) {
                8           for ($n = 0; $n < $h; $n++) {
                                fiddle();
                            }
                        } else {
                            switch ($z) {
                9               case 1:
                                    fiddle();
                                    break;
                10              case 2:
                                    fiddle();
                                    break;
                11              case 3:
                                    fiddle();
                                    break;
                                default:
                                    fiddle();
                                    break;
                            }
                        }
                    }
                }

                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                Avoid using undefined variables such as '$items' which will lead to PHP notices.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$items' which will lead to PHP notices.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$icmsConfig' which will lead to PHP notices.
                Open

                                                    if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    $config_old[$configs[$i]->getvar('conf_name')]['value'] = $configs[$i]->getvar('conf_value', 'N');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    if (isset($config_old[$config['name']]['value']) && $config_old[$config['name']]['formtype'] == $config['formtype'] && $config_old[$config['name']]['valuetype'] == $config['valuetype']) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    if (isset($config_old[$config['name']]['value']) && $config_old[$config['name']]['formtype'] == $config['formtype'] && $config_old[$config['name']]['valuetype'] == $config['valuetype']) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$icmsConfig' which will lead to PHP notices.
                Open

                                                    if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$icmsConfig' which will lead to PHP notices.
                Open

                                        if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    if (isset($config_old[$config['name']]['value']) && $config_old[$config['name']]['formtype'] == $config['formtype'] && $config_old[$config['name']]['valuetype'] == $config['valuetype']) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                        $confobj->setVar('conf_value', $config_old[$config['name']]['value'], true);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$criteria' which will lead to PHP notices.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    $config_old[$configs[$i]->getvar('conf_name')]['formtype'] = $configs[$i]->getvar('conf_formtype');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Avoid using undefined variables such as '$config_old' which will lead to PHP notices.
                Open

                                    $config_old[$configs[$i]->getvar('conf_name')]['valuetype'] = $configs[$i]->getvar('conf_valuetype');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                UndefinedVariable

                Since: 2.8.0

                Detects when a variable is used that has not been defined before.

                Example

                class Foo
                {
                    private function bar()
                    {
                        // $message is undefined
                        echo $message;
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                Missing class import via use statement (line '710', column '47').
                Open

                        $configs =& $config_handler->getConfigs(new icms_db_criteria_Item('conf_modid', $module->getVar('mid')));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                MissingImport

                Since: 2.7.0

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

                Example

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

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

                Missing class import via use statement (line '500', column '23').
                Open

                            $xoopsDelTpl = new icms_view_Tpl();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                MissingImport

                Since: 2.7.0

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

                Example

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

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

                Missing class import via use statement (line '27', column '36').
                Open

                    if ($module_handler->getCount(new icms_db_criteria_Item('dirname', $dirname)) == 0) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                MissingImport

                Since: 2.7.0

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

                Example

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

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

                Missing class import via use statement (line '835', column '20').
                Open

                            $criteria = new icms_db_criteria_Compo();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                MissingImport

                Since: 2.7.0

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

                Example

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

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

                Missing class import via use statement (line '836', column '24').
                Open

                            $criteria->add( new icms_db_criteria_Item( 'sat_type', 'addon/'.$module->getInfo('dirname')));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                MissingImport

                Since: 2.7.0

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

                Example

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

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

                The method xoops_module_gettemplate has a boolean flag argument $block, which is a certain sign of a Single Responsibility Principle violation.
                Open

                function &xoops_module_gettemplate($dirname, $template, $block=false) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                BooleanArgumentFlag

                Since: 1.4.0

                A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                Example

                class Foo {
                    public function bar($flag = true) {
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                Avoid assigning values to variables in if clauses and the like (line '407', column '13').
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                IfStatementAssignment

                Since: 2.7.0

                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                Example

                class Foo
                {
                    public function bar($flag)
                    {
                        if ($foo = 'bar') { // possible typo
                            // ...
                        }
                        if ($baz = 0) { // always false
                            // ...
                        }
                    }
                }

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

                Avoid using static access to class 'icms_view_Tpl' in method 'xoops_module_install'.
                Open

                                            if (!icms_view_Tpl::template_touch($newtplid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                        } else {
                                            $template = trim($block['template']);
                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                        } else {
                                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not insert config <b>'.$config['name'].'</b> to the database.</span>';
                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    $msgs[] = '&nbsp;&nbsp;Added user access right for Group ID: <b>'.icms_conv_nr2local($mygroup).'</b>';
                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                    } else {
                                        $template = $blocks[$i]['template'];
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                } else {
                                                    $newid = $tplfile->getVar('tpl_id');
                                                    $msgs[] = '&nbsp;&nbsp;Template <b>'.$blocks[$i]['template'].'</b> added to the database.';
                                                    if ($icmsConfig['template_set'] == 'default') {
                                                        if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'icms_module_update'.
                Open

                            $icms_block_handler = icms::handler('icms_view_block');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                        } else {
                                            $newtplid = $tplfile->getVar('tpl_id');
                                            $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_TEMPLATE_INSERTED, '<strong>' . $tpl['file'] . '</strong>', '<strong>' . $newtplid . '</strong>');
                
                                            // generate compiled file
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    if ($module->getVar('hascomments') != 0) {
                                        $configs = array();
                                        include_once ICMS_ROOT_PATH.'/include/comment_constants.php' ;
                                        $configs[] = array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMNOCOM' => XOOPS_COMMENT_APPROVENONE, '_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN));
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_data_notification_Handler' in method 'xoops_module_install'.
                Open

                                        $events =& icms_data_notification_Handler::categoryEvents($category['name'], false, $module->getVar('mid'));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms_view_Tpl' in method 'icms_module_update'.
                Open

                                                        if (!icms_view_Tpl::template_touch($tplfile_new->getVar('tpl_id'))) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                        } else {
                            if ($module->getVar('hascomments') != 0) {
                                $configs = array();
                                include_once ICMS_ROOT_PATH.'/include/comment_constants.php' ;
                                $configs[] = array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMNOCOM' => XOOPS_COMMENT_APPROVENONE, '_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN));
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_data_notification_Handler' in method 'icms_module_update'.
                Open

                                $events =& icms_data_notification_Handler::categoryEvents($category['name'], false, $module->getVar('mid'));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $confobj->setConfValueForInput($config['default'], true);
                
                                        //$confobj->setVar('conf_value', $config['default'], true);
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 assigning values to variables in if clauses and the like (line '417', column '13').
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                IfStatementAssignment

                Since: 2.7.0

                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                Example

                class Foo
                {
                    public function bar($flag)
                    {
                        if ($foo = 'bar') { // possible typo
                            // ...
                        }
                        if ($baz = 0) { // always false
                            // ...
                        }
                    }
                }

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

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

                    } else {
                        $lines = file($path);
                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_view_Tpl' in method 'icms_module_update'.
                Open

                                            if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                                else {
                                                    $tplfile_new = $tplfile[0];
                                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_data_notification_Handler' in method 'icms_module_update'.
                Open

                            $categories =& icms_data_notification_Handler::categoryInfo('', $module->getVar('mid'));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms_db_Factory' in method 'xoops_module_install'.
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms' in method 'xoops_module_install'.
                Open

                                $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                                    } else {
                                                        $msgs[] = '&nbsp;&nbsp;Template <b>'.$block['template'].'</b> compiled.</span>';
                                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_data_notification_Handler' in method 'xoops_module_install'.
                Open

                                    $categories =& icms_data_notification_Handler::categoryInfo('',$module->getVar('mid'));
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms' in method 'icms_module_update'.
                Open

                            $config_handler = icms::handler('icms_config');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                            } else {
                                $msgs[] = "SQL file found at <b>$sql_file_path</b>.<br  /> Creating tables...";
                                $sql_query = fread(fopen($sql_file_path, 'r'), filesize($sql_file_path));
                                $sql_query = trim($sql_query);
                                icms_db_legacy_mysql_Utility::splitSqlFile($pieces, $sql_query);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                            } else {
                                                $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_TEMPLATE_COMPILED, '<strong>' . $tpl['file'] . '</strong>');
                                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                    } else {
                                        $msgs[] = '&nbsp;&nbsp;Added admin access right for Group ID <b>'.icms_conv_nr2local($mygroup).'</b>';
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'icms_module_update'.
                Open

                        $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $tplfile->setVar('tpl_type', 'module');
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                    } else {
                                        $newid = $tplfile->getVar('tpl_id');
                                        $msgs[] = sprintf('&nbsp;&nbsp;<span>'._MD_AM_TEMPLATE_INSERTED.'</span>', '<strong>' . $tpl['file'] . '</strong>', '<strong>' . $newid . '</strong>');
                                        if ($icmsConfig['template_set'] == 'default') {
                                            if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                        } else {
                
                                            if (!in_array($prefixed_query[4], $created_tables)) {
                                                $msgs[] = '&nbsp;&nbsp;Table <b>'.$db->prefix($prefixed_query[4]).'</b> created.';
                                                $created_tables[] = $prefixed_query[4];
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                            } else {
                                                $msgs[] = '&nbsp;&nbsp;Data inserted to table <b>'.$db->prefix($prefixed_query[4]).'</b>.';
                                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                    else {
                        return "<p>".sprintf(_MD_AM_FAILINS, "<b>".$dirname."</b>")."&nbsp;"._MD_AM_ERRORSC."<br />&nbsp;&nbsp;".sprintf(_MD_AM_ALEXISTS, $dirname)."</p>";
                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                            } else {
                                $newmid = $module->getVar('mid');
                                unset($created_tables);
                                $msgs[] = 'Module data inserted successfully. Module ID: <b>'.icms_conv_nr2local($newmid).'</b>';
                                $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                } else {
                                                    $newtplid = $tplfile->getVar('tpl_id');
                                                    $msgs[] = '&nbsp;&nbsp;Template <b>'.$block['template'].'</b> added to the database. (ID: <b>'.icms_conv_nr2local($newtplid).'</b>)';
                                                    // generate compiled file
                                                    if (!icms_view_Tpl::template_touch($newtplid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'xoops_module_install'.
                Open

                                    $config_handler = icms::handler('icms_config');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $msgs[] = '&nbsp;&nbsp;Block <b>'.$block->getVar('name').' deleted. Block ID: <b>'.$block->getVar('bid').'</b>';
                                        if ($block->getVar('template') != '') {
                                            $tplfiles =& $tplfile_handler->find(null, 'block', $block->getVar('bid'));
                                            if (is_array($tplfiles)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                    } else {
                                                        $msgs[] = '&nbsp;&nbsp;Block template <b>'.$tplfiles[$k]->getVar('tpl_file').'</b> deprecated.';
                                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    $msgs[] = '&nbsp;&nbsp;Updated task from autotasks list. Task Name: <b>'.$taskData['name'].'</b>';
                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_db_legacy_Factory' in method 'icms_module_update'.
                Open

                                $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $msgs[] = '&nbsp;&nbsp;Added block access right. Block ID: <b>'.icms_conv_nr2local($blc).'</b> Group ID: <b>'.icms_conv_nr2local($mygroup).'</b>';
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    $config_old[$configs[$i]->getvar('conf_name')]['value'] = $configs[$i]->getvar('conf_value', 'N');
                                    $config_old[$configs[$i]->getvar('conf_name')]['formtype'] = $configs[$i]->getvar('conf_formtype');
                                    $config_old[$configs[$i]->getvar('conf_name')]['valuetype'] = $configs[$i]->getvar('conf_valuetype');
                                    $msgs[] = '&nbsp;&nbsp;Config data deleted from the database. Config ID: <b>'.$configs[$i]->getVar('conf_id').'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                } else {
                                    $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                    } else {
                                        $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                        if (is_string( $lastmsg )) {
                                            $msgs[] = $lastmsg;
                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_gettemplate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                    } else {
                        $path = ICMS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.$template;
                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_db_legacy_mysql_Utility' in method 'xoops_module_install'.
                Open

                                    $prefixed_query = icms_db_legacy_mysql_Utility::prefixQuery($piece, $db->prefix());
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms_view_Tpl' in method 'xoops_module_install'.
                Open

                                                    if (!icms_view_Tpl::template_touch($newtplid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                        } else {
                            $ret = '<p>';
                            foreach ($errs as $er) {
                                $ret .= '&nbsp;&nbsp;'.$er.'<br />';
                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_db_Factory' in method 'icms_module_update'.
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms' in method 'icms_module_update'.
                Open

                                            $gperm_handler = icms::handler('icms_member_groupperm');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms' in method 'icms_module_update'.
                Open

                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms_view_Tpl' in method 'icms_module_update'.
                Open

                                                        if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

                Avoid using static access to class 'icms_db_legacy_mysql_Utility' in method 'xoops_module_install'.
                Open

                                icms_db_legacy_mysql_Utility::splitSqlFile($pieces, $sql_query);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                        if (is_string( $lastmsg )) {
                                            $msgs[] = $lastmsg;
                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                            } else {
                                $driver = XOOPS_DB_TYPE;
                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                        } else {
                                            if (empty($newbid)) {
                                                $newbid = $db->getInsertId();
                                            }
                                            $msgs[] = '&nbsp;&nbsp;Block <b>'.$block['name'].'</b> added. Block ID: <b>'.icms_conv_nr2local($newbid).'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 xoops_module_install uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                    } else {
                                        $msgs[] = '&nbsp;&nbsp;Added task to autotasks list. Task Name: <b>'.$taskData['name'].'</b>';
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'xoops_module_install'.
                Open

                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        // the table name is reserved, so halt the installation
                                        $errs[] = '<b>'.$prefixed_query[4]."</b> is a reserved table!";
                                        $error = true;
                                        break;
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'icms_module_update'.
                Open

                        $config_handler = icms::handler('icms_config');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                    } else {
                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not insert config <b>'.$config['name'].'</b> to the database.</span>';
                                    }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                } else {
                                                    $msgs[] = '&nbsp;&nbsp;Template <b>'.$blocks[$i]['template'].'</b> updated.';
                                                    if ($icmsConfig['template_set'] == 'default') {
                                                        if (!icms_view_Tpl::template_touch($tplfile_new->getVar('tpl_id'))) {
                                                            $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">'._MD_AM_TEMPLATE_RECOMPILE_FAIL.'</span>', '<strong>' . $blocks[$i]['template'] . '</strong>');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                } else {
                                                    $msgs[] = '&nbsp;&nbsp;Added block access right. Block ID: <b>'.$newbid.'</b> Group ID: <b>'.$mygroup.'</b>';
                                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_db_legacy_Factory' in method 'xoops_module_install'.
                Open

                                    $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                    } else {
                        $newmid = $module->getVar('mid');
                        $msgs = array();
                        $msgs[] = _MD_AM_MOD_DATA_UPDATED;
                        $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                            } else {
                                                $msgs[] = sprintf('&nbsp;&nbsp;<span>'._MD_AM_TEMPLATE_RECOMPILED.'</span>', '<strong>' . $tpl['file'] . '</strong>');
                                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                                        } else {
                                                            $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_TEMPLATE_RECOMPILED, '<strong>' . $blocks[$i]['template'] . '</strong>');
                                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'xoops_module_install'.
                Open

                            $icms_block_handler = icms::handler('icms_view_block');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                } else {
                                    $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">'._MD_AM_TEMPLATE_DELETE_FAIL.'</span>', $tpl['file']);
                                }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                        } else {
                                            $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_BLOCK_UPDATED,
                                                '<strong>' . $fblock['name'] . '</strong>',
                                                '<strong>' . icms_conv_nr2local($fblock['bid']) . '</strong>');
                                            if ($template != '') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 icms_module_update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                                        } else {
                                            if (empty($newbid)) {
                                                $newbid = $db->getInsertId();
                                            }
                                            $groups =& icms::$user->getGroups();
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms_view_Tpl' in method 'xoops_module_install'.
                Open

                                icms_view_Tpl::template_clear_module_cache($newmid);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                            } else {
                                $groups = array(XOOPS_GROUP_ADMIN);
                            }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 using static access to class 'icms' in method 'xoops_module_install'.
                Open

                            $gperm_handler = icms::handler('icms_member_groupperm');
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                StaticAccess

                Since: 1.4.0

                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                Example

                class Foo
                {
                    public function bar()
                    {
                        Bar::baz();
                    }
                }

                Source https://phpmd.org/rules/cleancode.html#staticaccess

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

                                                        } else {
                                                            $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_TEMPLATE_RECOMPILED, '<strong>' . $blocks[$i]['template'] . '</strong>');
                                                        }
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 '$items'.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 unused local variables such as '$items'.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 unused local variables such as '$criteria'.
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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

                FIXME found
                Open

                                    // FIXME: doesn't work when update module... can't read back the array of options properly...  " changing to &quot;
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by fixme

                FIXME found
                Open

                            // FIXME: for some reason the default doesn't come up properly
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by fixme

                Variable $pieces is undeclared (Did you mean $piece)
                Open

                                foreach ($pieces as $piece) {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not add block access right. Block ID: <b>'.icms_conv_nr2local($blc).'</b> Group ID: <b>'.icms_conv_nr2local($mygroup).'</b></span>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Variable $icmsConfig is undeclared
                Open

                                                    if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                            $icms_block_handler = icms::handler('icms_view_block');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Suspicious array access to ?mixed
                Open

                                    $task->setVar('sat_name', $taskData['name']);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                                        if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                                        if (!icms_view_Tpl::template_touch($tplfile_new->getVar('tpl_id'))) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method splitSqlFile from undeclared class \icms_db_legacy_mysql_Utility
                Open

                                icms_db_legacy_mysql_Utility::splitSqlFile($pieces, $sql_query);
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                                $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                                    $config_handler = icms::handler('icms_config');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not add user access right for Group ID: <b>'.icms_conv_nr2local($mygroup).'</b></span>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method clear_cache from undeclared class \icms_view_Tpl
                Open

                            $xoopsDelTpl->clear_cache(null, 'mod_'.$dirname);
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                        $config_handler = icms::handler('icms_config');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method instance from undeclared class \icms_db_Factory
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Suspicious array access to ?mixed
                Open

                                    $task->setVar('sat_code', $taskData['code']);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                        $tplfile_handler =& icms::handler('icms_view_template_file');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method categoryEvents from undeclared class \icms_data_notification_Handler
                Open

                                $events =& icms_data_notification_Handler::categoryEvents($category['name'], false, $module->getVar('mid'));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method categoryInfo from undeclared class \icms_data_notification_Handler
                Open

                                    $categories =& icms_data_notification_Handler::categoryInfo('',$module->getVar('mid'));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                        $msgs[] = '&nbsp;&nbsp;Added admin access right for Group ID <b>'.icms_conv_nr2local($mygroup).'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Suspicious array access to ?mixed
                Open

                                        $msgs[] = '&nbsp;&nbsp;Added task to autotasks list. Task Name: <b>'.$taskData['name'].'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_clear_module_cache from undeclared class \icms_view_Tpl
                Open

                                icms_view_Tpl::template_clear_module_cache($newmid);
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method getDatabaseUpdater from undeclared class \icms_db_legacy_Factory
                Open

                                    $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                        $msgs[] = '&nbsp;&nbsp;Added block access right. Block ID: <b>'.icms_conv_nr2local($blc).'</b> Group ID: <b>'.icms_conv_nr2local($mygroup).'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                            $config_handler = icms::handler('icms_config');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                            $criteria->add( new icms_db_criteria_Item( 'sat_type', 'addon/'.$module->getInfo('dirname')));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method instance from undeclared class \icms_db_Factory
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                                            $gperm_handler = icms::handler('icms_member_groupperm');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Variable $config_old was undeclared, but array fields are being added to it.
                Open

                                    $config_old[$configs[$i]->getvar('conf_name')]['value'] = $configs[$i]->getvar('conf_value', 'N');
                Severity: Info
                Found in htdocs/install/modulesadmin.php by phan

                Call to method __construct from undeclared class \icms_db_criteria_Compo
                Open

                            $criteria = new icms_db_criteria_Compo();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                            if (!icms_view_Tpl::template_touch($newtplid)) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                                    if (!icms_view_Tpl::template_touch($newtplid)) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Variable $items is undeclared
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method categoryEvents from undeclared class \icms_data_notification_Handler
                Open

                                        $events =& icms_data_notification_Handler::categoryEvents($category['name'], false, $module->getVar('mid'));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not add admin access right for Group ID <b>'.icms_conv_nr2local($mygroup).'</b></span>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method prefixQuery from undeclared class \icms_db_legacy_mysql_Utility
                Open

                                    $prefixed_query = icms_db_legacy_mysql_Utility::prefixQuery($piece, $db->prefix());
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Suspicious array access to ?mixed
                Open

                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">ERROR: Could not insert autotask to db. Name: <b>'.$taskData['name'].'</b></span>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Variable $criteria is undeclared
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Variable $items is undeclared
                Open

                            unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Variable $icmsConfig is undeclared
                Open

                                        if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                    if ($module_handler->getCount(new icms_db_criteria_Item('dirname', $dirname)) == 0) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Argument 1 (string) is '1'|'2'|'3' but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
                Open

                                    $msgs[] = '&nbsp;&nbsp;Added user access right for Group ID: <b>'.icms_conv_nr2local($mygroup).'</b>';
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method __construct from undeclared class \icms_view_Tpl
                Open

                            $xoopsDelTpl = new icms_view_Tpl();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Variable $icmsConfig is undeclared
                Open

                                                    if ($icmsConfig['template_set'] == 'default') {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                            $gperm_handler = icms::handler('icms_member_groupperm');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method categoryInfo from undeclared class \icms_data_notification_Handler
                Open

                            $categories =& icms_data_notification_Handler::categoryInfo('', $module->getVar('mid'));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                            if (!icms_view_Tpl::template_touch($newid)) {
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                            $icms_block_handler = icms::handler('icms_view_block');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                    $module_handler = icms::handler('icms_module');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method handler from undeclared class \icms
                Open

                    $module_handler = icms::handler('icms_module');
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to undeclared function \xoops_template_clear_module_cache()
                Open

                    xoops_template_clear_module_cache($module->getVar('mid'));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Reference to static property user from undeclared class \icms
                Open

                                            $groups =& icms::$user->getGroups();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method add from undeclared class \icms_db_criteria_Compo
                Open

                            $criteria->add( new icms_db_criteria_Item( 'sat_type', 'addon/'.$module->getInfo('dirname')));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                        $configs =& $config_handler->getConfigs(new icms_db_criteria_Item('conf_modid', $module->getVar('mid')));
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Call to method getDatabaseUpdater from undeclared class \icms_db_legacy_Factory
                Open

                                $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
                Severity: Critical
                Found in htdocs/install/modulesadmin.php by phan

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                if ($configs != false) {
                                    if ($module->getVar('hascomments') != 0) {
                                        include_once ICMS_ROOT_PATH.'/include/comment_constants.php' ;
                                        array_push($configs, array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMNOCOM' => XOOPS_COMMENT_APPROVENONE, '_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN)));
                                        array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0));
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 day to fix
                htdocs/install/modulesadmin.php on lines 731..744

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 321.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                        if ($configs != false) {
                            if ($module->getVar('hascomments') != 0) {
                                include_once ICMS_ROOT_PATH.'/include/comment_constants.php' ;
                                array_push($configs, array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMNOCOM' => XOOPS_COMMENT_APPROVENONE, '_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN)));
                                array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0));
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 day to fix
                htdocs/install/modulesadmin.php on lines 226..239

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 321.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                        $sql = "INSERT INTO ".$db->prefix("newblocks")." (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, c_type, isactive, dirname, func_file, show_func, edit_func, template, bcachetime, last_modified) VALUES ('". (int) ($newbid)."', '". (int) ($newmid)."', '". (int) ($blockkey)."', '$options', '".$block_name."','".$block_name."', '', '1', '0', '0', 'M', 'H', '1', '".addslashes($dirname)."', '".addslashes(trim($block['file']))."', '".addslashes(trim($block['show_func']))."', '".addslashes($edit_func)."', '".$template."', '0', '".time()."')";
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 4 hrs to fix
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 305..305

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 173.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                                if (count($tplfile) == 0) {
                                                    $tplfile_new =& $tplfile_handler->create();
                                                    $tplfile_new->setVar('tpl_module', $dirname);
                                                    $tplfile_new->setVar('tpl_refid', (int) ($fblock['bid']));
                                                    $tplfile_new->setVar('tpl_tplset', 'default');
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1076..1085

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                    if (isset($config['options']) && is_array($config['options'])) {
                                        foreach ($config['options'] as $key => $value) {
                                            $confop =& $config_handler->createConfigOption();
                                            $confop->setVar('confop_name', $key, true);
                                            $confop->setVar('confop_value', $value, true);
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/install/modulesadmin.php on lines 292..301

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 119.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                        if (isset($config['options']) && is_array($config['options'])) {
                                            foreach ($config['options'] as $key => $value) {
                                                $confop =& $config_handler->createConfigOption();
                                                $confop->setVar('confop_name', $key, true);
                                                $confop->setVar('confop_value', $value, true);
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/install/modulesadmin.php on lines 808..817

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 119.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                if (function_exists('xoops_module_install_'.$ModName)) {
                                    $func = 'xoops_module_install_'.$ModName;
                                    if (!( $lastmsg = $func($module) )) {
                                        $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                    } else {
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/install/modulesadmin.php on lines 415..425

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 113.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                } elseif (function_exists('icms_module_install_'.$ModName)) {
                                    $func = 'icms_module_install_'.$ModName;
                                    if (!( $lastmsg = $func($module) )) {
                                        $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                    } else {
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/install/modulesadmin.php on lines 405..425

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 113.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                        if (is_array($deltpl)) {
                            $xoopsDelTpl = new icms_view_Tpl();
                            // clear cache files
                            $xoopsDelTpl->clear_cache(null, 'mod_'.$dirname);
                            // delete template file entry in db
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 986..997

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 110.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                            foreach ($items_atasks as $task) {
                                $taskID = (int) ($task->getVar('sat_addon_id'));
                                $atasks[$taskID]['enabled'] = $task->getVar('sat_enabled');
                                $atasks[$taskID]['repeat'] = $task->getVar('sat_repeat');
                                $atasks[$taskID]['interval'] = $task->getVar('sat_interval');
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 1 other location - About 1 hr to fix
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1331..1337

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 105.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                            } elseif (function_exists('icms_module_update_'.$ModName)) {
                                $func = 'icms_module_update_'.$ModName;
                                if (!$func($module, $prev_version, $prev_dbversion)) {
                                    $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                } else {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php and 1 other location - About 40 mins to fix
                htdocs/install/modulesadmin.php on lines 881..895

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 94.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                            if (function_exists('xoops_module_update_'.$ModName)) {
                                $func = 'xoops_module_update_'.$ModName;
                                if (!$func($module, $prev_version, $prev_dbversion)) {
                                    $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                } else {
                Severity: Minor
                Found in htdocs/install/modulesadmin.php and 1 other location - About 40 mins to fix
                htdocs/install/modulesadmin.php on lines 888..895

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 94.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 5 locations. Consider refactoring.
                Open

                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                Severity: Major
                Found in htdocs/install/modulesadmin.php and 4 other locations - About 35 mins to fix
                htdocs/modules/system/admin/adsense/class/adsense.php on lines 184..184
                htdocs/modules/system/admin/adsense/class/adsense.php on lines 185..185
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 124..152
                htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 605..633

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 92.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Avoid variables with short names like $db. Configured minimum length is 3.
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                ShortVariable

                Since: 0.2

                Detects when a field, local, or parameter has a very short name.

                Example

                class Something {
                    private $q = 15; // VIOLATION - Field
                    public static function main( array $as ) { // VIOLATION - Formal
                        $r = 20 + $this->q; // VIOLATION - Local
                        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                            $r += $this->q;
                        }
                    }
                }

                Source https://phpmd.org/rules/naming.html#shortvariable

                Avoid variables with short names like $db. Configured minimum length is 3.
                Open

                    $db =& icms_db_Factory::instance();
                Severity: Minor
                Found in htdocs/install/modulesadmin.php by phpmd

                ShortVariable

                Since: 0.2

                Detects when a field, local, or parameter has a very short name.

                Example

                class Something {
                    private $q = 15; // VIOLATION - Field
                    public static function main( array $as ) { // VIOLATION - Formal
                        $r = 20 + $this->q; // VIOLATION - Local
                        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                            $r += $this->q;
                        }
                    }
                }

                Source https://phpmd.org/rules/naming.html#shortvariable

                Each PHP statement must be on a line by itself
                Open

                                            $msgs[] = '&nbsp;&nbsp;ERROR: Could not create '.$blocks[$i]['name'];echo $sql;

                Incorrect spacing between argument "$block" and equals sign; expected 1 but found 0
                Open

                function &xoops_module_gettemplate($dirname, $template, $block=false) {

                Incorrect spacing between default value and equals sign for argument "$block"; expected 1 but found 0
                Open

                function &xoops_module_gettemplate($dirname, $template, $block=false) {

                Space found before comma in function call
                Open

                            $items_atasks = $atasks_handler->getObjects( $criteria , false );

                Blank line found at start of control structure
                Open

                                        } else {

                Space found after opening bracket of FOREACH loop
                Open

                                foreach ( $errs as $err) {

                Space found after opening bracket of FOR loop
                Open

                            for ( $i = 1; $i <= $count; $i++) {

                Space found before comma in function call
                Open

                                $task->setVar('sat_code', sprintf("require ICMS_ROOT_PATH . \"/modules/%s/%s\";", $module->getInfo('dirname') , addslashes($taskData['code']))) ;

                Inline control structures are not allowed
                Open

                                    if (isset($taskData['repeat'])) $task->setVar('sat_repeat', $taskData['repeat']);

                Inline control structures are not allowed
                Open

                                    if (isset($taskData['interval'])) $task->setVar('sat_interval', $taskData['interval']);

                Inline control structures are not allowed
                Open

                                if (!isset($taskData['code']) || trim($taskData['code']) == '') continue;

                Inline control structures are not allowed
                Open

                                    if (isset($taskData['onfinish'])) $task->setVar('sat_onfinish', $taskData['onfinish']);

                Inline control structures are not allowed
                Open

                                    if (isset($taskData['enabled'])) $task->setVar('sat_enabled', $taskData['enabled']);

                Inline control structures are not allowed
                Open

                                if (isset($taskData['onfinish'])) $task->setVar('sat_onfinish', $taskData['onfinish']);

                Inline control structures are not allowed
                Open

                                if (isset($taskData['interval'])) $task->setVar('sat_interval', $taskData['interval']);

                Inline control structures are not allowed
                Open

                                if (isset($taskData['enabled'])) $task->setVar('sat_enabled', $taskData['enabled']);

                Inline control structures are not allowed
                Open

                                if (isset($taskData['repeat'])) $task->setVar('sat_repeat', $taskData['repeat']);

                No space found after comma in function call
                Open

                                            $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_UPDATE_FAIL,$fblock['name']);

                Space after opening parenthesis of function call prohibited
                Open

                            $items_atasks = $atasks_handler->getObjects( $criteria , false );

                No space found after comma in function call
                Open

                                    $categories =& icms_data_notification_Handler::categoryInfo('',$module->getVar('mid'));

                Closing parenthesis of a multi-line function call must be on a line by itself
                Open

                                                '<strong>' . icms_conv_nr2local($fblock['bid']) . '</strong>');

                Space after opening parenthesis of function call prohibited
                Open

                            $criteria->add( new icms_db_criteria_Item( 'sat_type', 'addon/'.$module->getInfo('dirname')));

                Expected 1 space after closing brace; newline found
                Open

                                                }

                Expected 0 spaces before closing bracket; 1 found
                Open

                                        if (is_string( $lastmsg )) {

                Space after opening parenthesis of function call prohibited
                Open

                                        if (is_string( $lastmsg )) {

                Expected 0 spaces after opening bracket; 1 found
                Open

                                foreach ( $errs as $err) {

                Expected 1 space after closing brace; newline found
                Open

                    }

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

                                                '<strong>' . icms_conv_nr2local($fblock['bid']) . '</strong>');

                Expected 0 spaces before closing bracket; 1 found
                Open

                                        if (is_string( $lastmsg )) {

                Expected 0 spaces before closing bracket; 1 found
                Open

                            $items_atasks = $atasks_handler->getObjects( $criteria , false );

                Space after opening parenthesis of function call prohibited
                Open

                                        if (is_string( $lastmsg )) {

                Space after opening parenthesis of function call prohibited
                Open

                            $criteria->add( new icms_db_criteria_Item( 'sat_type', 'addon/'.$module->getInfo('dirname')));

                Expected 0 spaces after opening bracket; 1 found
                Open

                            for ( $i = 1; $i <= $count; $i++) {

                Opening parenthesis of a multi-line function call must be the last content on the line
                Open

                                            $msgs[] = sprintf('&nbsp;&nbsp;'._MD_AM_BLOCK_UPDATED,

                Expected 1 newline at end of file; 0 found
                Open

                }

                The variable $sql_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $edit_func is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $install_script is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_delng is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_value is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $items_atasks is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_dbversion is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_dbversion is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $icms_block_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $update_script is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_value is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $install_script is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_version is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $icms_block_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_value is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $items_atasks is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $update_script is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_delng is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_version is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $edit_func is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_name is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $install_script is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_arr is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $update_script is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_dbversion is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_arr is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $update_script is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $install_script is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_IPF is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $icms_block_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_IPF is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $temp_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $temp_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_delng is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_old is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_new is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $gperm_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $created_tables is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_name is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $icms_block_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $ModName is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $module_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $config_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_IPF is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prev_version is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_file_path is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $prefixed_query is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $confop_msgs is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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_IPF is not named in camelCase.
                Open

                function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $tplfile_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_name is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $option_value is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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 $atasks_handler is not named in camelCase.
                Open

                function icms_module_update($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $module_handler = icms::handler('icms_module');
                    $module =& $module_handler->getByDirname($dirname);
                Severity: Minor
                Found in htdocs/install/modulesadmin.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

                There are no issues that match your filters.

                Category
                Status