ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/modulesadmin/modulesadmin.php

Summary

Maintainability
F
1 mo
Test Coverage

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

function icms_module_update($dirname) {
    global $icmsConfig, $icmsAdminTpl;

    $msgs = array();

Severity: Minor
Found in htdocs/modules/system/admin/modulesadmin/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 344 (exceeds 5 allowed). Consider refactoring.
Open

function xoops_module_install($dirname) {
    global $icmsConfig, $icmsAdminTpl;
    $dirname = trim($dirname);
    $db = icms_db_Factory::instance();
    $reservedTables = array('avatar',
Severity: Minor
Found in htdocs/modules/system/admin/modulesadmin/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_uninstall has a Cognitive Complexity of 165 (exceeds 5 allowed). Consider refactoring.
Open

function xoops_module_uninstall($dirname) {
    global $icmsConfig, $icmsAdminTpl;

    $reservedTables = array('avatar',
        'avatar_users_link',
Severity: Minor
Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 3 days 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

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

<?php
// $Id: modulesadmin.php 12403 2014-01-26 21:35:08Z skenow $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
Severity: Major
Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 3 days to fix

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

    function xoops_module_install($dirname) {
        global $icmsConfig, $icmsAdminTpl;
        $dirname = trim($dirname);
        $db = icms_db_Factory::instance();
        $reservedTables = array('avatar',
    Severity: Major
    Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 days to fix

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

      function icms_module_update($dirname) {
          global $icmsConfig, $icmsAdminTpl;
      
          $msgs = array();
      
      
      Severity: Major
      Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 days to fix

        Method xoops_module_uninstall has 208 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function xoops_module_uninstall($dirname) {
            global $icmsConfig, $icmsAdminTpl;
        
            $reservedTables = array('avatar',
                'avatar_users_link',
        Severity: Major
        Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 1 day to fix

          Function xoops_module_deactivate has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
          Open

          function xoops_module_deactivate($mid) {
              global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
              if (!isset($icms_page_handler)) {
                  $icms_page_handler = icms_getModuleHandler('pages', 'system');
              }
          Severity: Minor
          Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 hrs 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 xoops_module_list has 57 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function xoops_module_list() {
              global $icmsAdminTpl, $icmsConfig;
          
              $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
              $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);
          Severity: Major
          Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 hrs to fix

            Method xoops_module_deactivate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function xoops_module_deactivate($mid) {
                global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                if (!isset($icms_page_handler)) {
                    $icms_page_handler = icms_getModuleHandler('pages', 'system');
                }
            Severity: Minor
            Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 1 hr 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/modules/system/admin/modulesadmin/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[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_BLOCK_TMPLT_DELETE_FAILED . '</span>', '<strong>' . $tplfiles[$k]->getVar('tpl_file') . '</strong>', '<strong>' . $tplfiles[$k]->getVar('tpl_id') . '</strong>');
                                                    } else {
                                                        $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_BLOCK_TMPLT_DELETED, '<strong>' . $tplfiles[$k]->getVar('tpl_file') . '</strong>', '<strong>' . $tplfiles[$k]->getVar('tpl_id') . '</strong>');
                Severity: Major
                Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                              for ($j = 0; $j < $btcount; $j++ ) {
                                                  if (!$tplfile_handler->delete($templates[$j])) {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_BLOCK_TMPLT_DELETE_FAILED . '</span>', $templates[$j]->getVar('tpl_file'), '<strong>' . icms_conv_nr2local($templates[$j]->getVar('tpl_id')) . '</strong>');
                                                  } else {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_BLOCK_TMPLT_DELETED, '<strong>' . $templates[$j]->getVar('tpl_file') . '</strong>', '<strong>' . icms_conv_nr2local($templates[$j]->getVar('tpl_id')) . '</strong>');
                  Severity: Major
                  Found in htdocs/modules/system/admin/modulesadmin/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/modules/system/admin/modulesadmin/modulesadmin.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

                                return $ret;
                        Severity: Major
                        Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return "<p>" . sprintf(_MD_AM_OKDEACT, "<strong>" . $module->getVar('name') . "</strong>") . "</p>";
                          Severity: Major
                          Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $ret . "</p>";
                            Severity: Major
                            Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 30 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) {
                                  global $icmsConfig;
                                  $ret = '';
                                  if ($block) {
                                      $path = ICMS_MODULES_PATH . '/' . $dirname . '/templates/blocks/' . $template;
                              Severity: Minor
                              Found in htdocs/modules/system/admin/modulesadmin/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 xoops_module_uninstall() has an NPath complexity of 55738402. The configured NPath complexity threshold is 200.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              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 446 lines of code. Current threshold is set to 100. Avoid really long methods.
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

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

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              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_uninstall() has 239 lines of code. Current threshold is set to 100. Avoid really long methods.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

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

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              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 icms_module_update() has 454 lines of code. Current threshold is set to 100. Avoid really long methods.
                              Open

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

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

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              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 92. The configured cyclomatic complexity threshold is 10.
                              Open

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              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 xoops_module_uninstall() has a Cyclomatic Complexity of 46. The configured cyclomatic complexity threshold is 10.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              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 xoops_module_install() has a Cyclomatic Complexity of 79. The configured cyclomatic complexity threshold is 10.
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              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 '$criteria' which will lead to PHP notices.
                              Open

                                              unset($atasks_handler, $task, $taskData, $criteria, $items, $taskID);

                              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 '$taskData' which will lead to PHP notices.
                              Open

                                              unset($atasks_handler, $criteria, $taskData);

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

                              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 (is_array($config_old[$config['name']]['value'])) {

                              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', serialize($config_old[$config['name']]['value']), TRUE);

                              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_handler, $task, $taskData, $criteria, $items, $taskID);

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

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

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

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

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

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

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

                              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 '154', column '36').
                              Open

                                  if ($module_handler->getCount(new icms_db_criteria_Item('dirname', $dirname)) == 0) {

                              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 '797', column '24').
                              Open

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

                              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 '662', column '19').
                              Open

                                      $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_moduleid', $module->getVar('mid')));

                              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 '662', column '46').
                              Open

                                      $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_moduleid', $module->getVar('mid')));

                              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 '777', column '49').
                              Open

                                              $configs = &$config_handler->getConfigs(new icms_db_criteria_Item('conf_modid', $module->getVar('mid')));

                              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 '796', column '21').
                              Open

                                              $criteria = new icms_db_criteria_Compo();

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

                              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

                              Missing class import via use statement (line '971', column '15').
                              Open

                                  $table = new icms_db_legacy_updater_Table("modules");

                              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 '1329', column '23').
                              Open

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

                              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 '987', column '23').
                              Open

                                          $xoopsDelTpl = new icms_view_Tpl();

                              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 '1196', column '47').
                              Open

                                      $configs = &$config_handler->getConfigs(new icms_db_criteria_Item('conf_modid', $module->getVar('mid')));

                              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 '1328', column '20').
                              Open

                                          $criteria = new icms_db_criteria_Compo();

                              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

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

                                                  $config_handler = icms::handler('icms_config');

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

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

                              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

                                                  $notification_handler = icms::handler('icms_data_notification');

                              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('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_CONFIG_ADD_FAIL . '</span>', '<strong>' . $config['name'] . '</strong>');
                                                      }

                              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 '528', column '12').
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              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_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[] = sprintf(_MD_AM_MOD_DATA_INSERT_SUCCESS, '<strong>' . icms_conv_nr2local($newmid) . '</strong>');
                                              $tplfile_handler = &icms::handler('icms_view_template_file');

                              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[] = sprintf('&nbsp;&nbsp;' . _MD_AM_TEMPLATE_INSERTED, '<strong>' . $tpl['file'] . '</strong>', '<strong>' . $newtplid . '</strong>');
                              
                                                          // generate compiled file

                              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 {
                                                          $template = trim($block['template']);
                                                      }

                              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) {
                                                      include_once ICMS_INCLUDE_PATH . '/comment_constants.php';
                                                      $configs[] = array('name' => 'com_rule',
                                                          'title' => '_CM_COMRULES',

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

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

                                  } else {
                                      $msgs = array();
                              
                                      $member_handler = icms::handler('icms_member');
                                      $grps = $member_handler->getGroupList();

                              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_uninstall 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_SYMLINK_DELETED, '<strong>' . $page->getVar('page_title') . '</strong>', '<strong>' . $page->getVar('page_id') . '</strong>');
                                              }

                              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_uninstall 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;' . _MD_AM_COMMENT_DELETED;
                                              }

                              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, "<strong>" . $dirname . "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br />&nbsp;&nbsp;" . sprintf(_MD_AM_ALEXISTS, $dirname) . "</p>";
                                  }

                              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_uninstall 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_CONFIGOPTION_DELETED, '<strong>' . icms_conv_nr2local($configs[$i]->getVar('conf_id')) . '</strong>');
                                                      }

                              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

                                              icms_db_legacy_mysql_Utility::splitSqlFile($pieces, $sql_query);

                              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 {
                              
                                                          if (!in_array($prefixed_query[4], $created_tables)) {
                                                              $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_TABLE_CREATED, '<strong>' . $db->prefix($prefixed_query[4]) . '</strong>');
                                                              $created_tables[] = $prefixed_query[4];

                              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 {
                                                      // the table name is reserved, so halt the installation
                                                      $errs[] = sprintf(_MD_AM_RESERVED_TABLE, '<strong>' . $prefixed_query[4] . '</strong>');
                                                      $error = TRUE;
                                                      break;

                              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[] = sprintf(_MD_AM_BLOCK_ADDED, '<strong>' . $block['name'] . '</strong>', '<strong>' . icms_conv_nr2local($newbid) . '</strong>');

                              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[] = $module->messages;
                                                      $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                                      if (is_string($lastmsg)) {
                                                          $msgs[] = $lastmsg;

                              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_uninstall 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_DELETED, '<strong>' . icms_conv_nr2local($templates[$i]->getVar('tpl_file')) . '</strong>', '<strong>' . icms_conv_nr2local($templates[$i]->getVar('tpl_id')) . '</strong>');
                                                  }

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

                                                  } else {
                                                      $msgs[] = $module->messages;
                                                      $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                                  }

                              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_list'.
                              Open

                                  $module_handler = icms::handler('icms_module');

                              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_deactivate'.
                              Open

                                  $module_handler = icms::handler('icms_module');

                              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_uninstall'.
                              Open

                                      $member_handler = icms::handler('icms_member');

                              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_uninstall'.
                              Open

                                          $gperm_handler = icms::handler('icms_member_groupperm');

                              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_change'.
                              Open

                                  $module_handler = icms::handler('icms_module');

                              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('&nbsp;&nbsp;' . _MD_AM_ADMIN_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                                  }

                              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_USER_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                              }

                              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_uninstall'.
                              Open

                                          $icms_block_handler = icms::handler('icms_view_block');

                              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_uninstall'.
                              Open

                                              $comment_handler = icms::handler('icms_data_comment');

                              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_uninstall'.
                              Open

                                          $urllink_handler = icms::handler('icms_data_urllink');

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

                              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 {
                                              $driver = XOOPS_DB_TYPE;
                                          }

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

                              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(_MD_AM_TEMPLATE_INSERTED, '<strong>' . $block['template'] . '</strong>', '<strong>' . icms_conv_nr2local($newtplid) . '</strong>');
                                                                  // generate compiled file
                                                                  if (!$icmsAdminTpl->template_touch($newtplid)) {

                              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>' . $block['template'] . '</strong>');
                                                                  }

                              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 '539', column '12').
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              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_uninstall 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_TMPLT_DELETED, '<strong>' . $templates[$j]->getVar('tpl_file') . '</strong>', '<strong>' . icms_conv_nr2local($templates[$j]->getVar('tpl_id')) . '</strong>');
                                                              }

                              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_DATA_INSERT_SUCCESS, '<strong>' . $db->prefix($prefixed_query[4]) . '</strong>');
                                                          }

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

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

                              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_uninstall'.
                              Open

                                          $tplfile_handler = icms::handler('icms_view_template_file');

                              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_uninstall 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_DELETED, '<strong>' . $block_arr[$i]->getVar('name') . '</strong>', '<strong>' . icms_conv_nr2local($block_arr[$i]->getVar('bid')) . '</strong>');
                                                  }

                              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_uninstall 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;' . _MD_AM_GROUPPERM_DELETED;
                                          }

                              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_deactivate'.
                              Open

                                      $member_handler = icms::handler('icms_member');

                              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('&nbsp;&nbsp;' . _MD_AM_AUTOTASK_ADDED, '<strong>' . $taskData['name'] . '</strong>');
                                                  }

                              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 {
                                          $ret = '<p>&nbsp;&nbsp;' . implode('<br />&nbsp;&nbsp;', $errs);
                              
                                          unset($msgs, $errs);
                                          $ret .= '<br />' . sprintf(_MD_AM_FAILINS, '<strong>' . $dirname . '</strong>') . '&nbsp;' . _MD_AM_ERRORSC . '</p>';

                              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_uninstall'.
                              Open

                                  $module_handler = icms::handler('icms_module');

                              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_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_MODULES_PATH . '/' . $dirname . '/templates/' . $template;
                                  }

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

                                      } else {
                                          // delete template files
                                          $tplfile_handler = icms::handler('icms_view_template_file');
                                          $templates = &$tplfile_handler->find(NULL, 'module', $module->getVar('mid'));
                                          $tcount = count($templates);

                              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_uninstall 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_MOD_TABLE_DELETE_NOTALLOWED . '</span>', '<strong>' . $db->prefix($table) . '</strong>');
                                                  }

                              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_uninstall 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;' . _MD_AM_NOTIFICATION_DELETED;
                                              }

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

                                                  } else {
                                                      $msgs[] = $module->messages;
                                                      $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                                  }

                              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_BLOCK_ACCESS_ADDED, '<strong>' . icms_conv_nr2local($blc) . '</strong>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                                  }

                              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_core_DataFilter' in method 'xoops_module_change'.
                              Open

                                  return "<p>" . sprintf(_MD_AM_OKORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name) . "</strong>") . "</p>";

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

                              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_module_Handler' in method 'xoops_module_list'.
                              Open

                                  $dirlist = icms_module_Handler::getAvailable();

                              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

                                  $module_handler = icms::handler('icms_module');

                              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_SQL_FOUND, '<strong>' . $sql_file_path . '</strong>');
                                              $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);

                              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[] = $module->messages;
                                                      $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                                      if (is_string($lastmsg)) {
                                                          $msgs[] = $lastmsg;

                              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 'xoops_module_uninstall'.
                              Open

                                  $db = &icms_db_Factory::instance();

                              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_uninstall'.
                              Open

                                              $config_handler = icms::handler('icms_config');

                              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_uninstall'.
                              Open

                                          $file_handler = icms::handler('icms_data_file');

                              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_activate'.
                              Open

                                  $module_handler = icms::handler('icms_module');

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

                              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('&nbsp;&nbsp;' . _MD_AM_TEMPLATE_COMPILED, '<strong>' . $tpl['file'] . '</strong>');
                                                          }

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

                              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_core_DataFilter' in method 'xoops_module_change'.
                              Open

                                      $ret = "<p>" . sprintf(_MD_AM_FAILORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name) . "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br />";

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

                              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_AUTOTASK_ADDED, '<strong>' . $taskData['name'] . '</strong>');
                                                  }

                              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_uninstall'.
                              Open

                                      $page_handler = icms::handler('icms_data_page');

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

                                  } else {
                                      $member_handler = icms::handler('icms_member');
                                      $grps = $member_handler->getGroupList();
                                      foreach ($grps as $k => $v) {
                                          $stararr = explode('-', $icmsConfig['startpage'][$k]);

                              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_uninstall 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_MOD_TABLE_DELETED, '<strong>' . $db->prefix($table) . '</strong>');
                                                      }

                              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 style="color:#ff0000;">' . _MD_AM_TEMPLATE_DELETE_FAIL . '</span>', $tpl['file']);
                                              }

                              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

                                          $notification_handler = icms::handler('icms_data_notification');

                              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 {
                                                      $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 (!$icmsAdminTpl->template_touch($newid)) {

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

                              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_Factory' in method 'icms_module_update'.
                              Open

                                              $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();

                              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

                                      $tplfile_handler = &icms::handler('icms_view_template_file');

                              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_BLOCK_UPDATED, '<strong>' . $fblock['name'] . '</strong>', '<strong>' . icms_conv_nr2local($fblock['bid']) . '</strong>');
                                                          if ($template != '') {
                                                              $tplfile = &$tplfile_handler->find('default', 'block', $fblock['bid']);
                                                              if (count($tplfile) == 0) {

                              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_TMPLT_DELETED, '<strong>' . $tplfiles[$k]->getVar('tpl_file') . '</strong>', '<strong>' . $tplfiles[$k]->getVar('tpl_id') . '</strong>');
                                                                  }

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

                              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[] = $module->messages;
                                                  $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                              }

                              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[] = $module->messages;
                                                  $msgs[] = sprintf(_MD_AM_FUNCT_EXEC, '<strong>' . $func . '</strong>');
                                              }

                              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 {
                                                                  $tplfile_new = $tplfile[0];
                                                              }

                              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 = icms::$xoopsDB->getInsertId();
                                                          }
                                                          $groups = &icms::$user->getGroups();

                              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;' . _MD_AM_TEMPLATE_INSERTED, '<strong>' . $blocks[$i]['template'] . '</strong>', '<strong>' . $newid . '</strong>');
                                                                  if ($icmsConfig['template_set'] == 'default') {
                                                                      if (!$icmsAdminTpl->template_touch($newid)) {

                              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_DELETED, '<strong>' . $block->getVar('name') . '</strong>', '<strong>' . $block->getVar('bid') . '</strong>');
                                                      if ($block->getVar('template') != '') {
                                                          $tplfiles = &$tplfile_handler->find(NULL, 'block', $block->getVar('bid'));
                                                          if (is_array($tplfiles)) {

                              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 {
                                      $newmid = $module->getVar('mid');
                                      $msgs[] = _MD_AM_MOD_DATA_UPDATED;
                                      $tplfile_handler = &icms::handler('icms_view_template_file');
                                      $deltpl = &$tplfile_handler->find('default', 'module', $module->getVar('mid'));

                              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[] = sprintf('&nbsp;&nbsp;' . _MD_AM_CONFIGOPTION_DELETED, '<strong>' . $configs[$i]->getVar('conf_id') . '</strong>');

                              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_ACCESS_ADDED, '<strong>' . $newbid . '</strong>', '<strong>' . $mygroup . '</strong>');
                                                              }

                              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_UPDATED, '<strong>' . $blocks[$i]['template'] . '</strong>');
                                                                  if ($icmsConfig['template_set'] == 'default') {
                                                                      if (!$icmsAdminTpl->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>');

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

                              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_CONFIG_ADD_FAIL . '</span>', '<strong>' . $config['name'] . '</strong>. ');
                                                  }

                              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

                                  $module_handler = icms::handler('icms_module');

                              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 {
                                                      $template = $blocks[$i]['template'];
                                                  }

                              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 ($module->getVar('hascomments') != 0) {
                                              include_once ICMS_INCLUDE_PATH . '/comment_constants.php';
                                              $configs[] = array('name' => 'com_rule',
                                                  'title' => '_CM_COMRULES',

                              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 {
                                                      $tplfile->setVar('tpl_type', 'module');
                                                  }

                              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 {
                                                          $confobj->setVar('conf_value', $config_old[$config['name']]['value'], TRUE);
                                                      }

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

                              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 {
                                                      $confobj->setConfValueForInput($config['default'], TRUE);
                                                  }

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

                                  global $icmsConfig, $icmsAdminTpl;

                              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_handler, $task, $taskData, $criteria, $items, $taskID);

                              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_handler, $task, $taskData, $criteria, $items, $taskID);

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

                                      foreach ($grps as $k => $v) {

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

                                              unset($atasks_handler, $criteria, $taskData);

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

                                      foreach ($grps as $k => $v) {

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

                                  global $icmsAdminTpl, $icmsConfig;

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

                                  global $icmsConfig;

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

                              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;

                              FIXME found
                              Open

                                          // FIXME: for some reason the default doesn't come up properly

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

                                              foreach ($pieces as $piece) {

                              Call to method handler from undeclared class \icms
                              Open

                                              $tplfile_handler = &icms::handler('icms_view_template_file');

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

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

                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_ADMIN_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Call to method __construct from undeclared class \icms_db_criteria_Item
                              Open

                                  if ($module_handler->getCount(new icms_db_criteria_Item('dirname', $dirname)) == 0) {

                              Call to method handler from undeclared class \icms
                              Open

                                                  $notification_handler = icms::handler('icms_data_notification');

                              Reference to undeclared constant \_AUTHOR
                              Open

                                          $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . trim($module->getInfo('author'));

                              Call to method splitSqlFile from undeclared class \icms_db_legacy_mysql_Utility
                              Open

                                              icms_db_legacy_mysql_Utility::splitSqlFile($pieces, $sql_query);

                              Suspicious array access to ?mixed
                              Open

                                                  $task->setVar('sat_name', $taskData['name']);

                              Suspicious array access to ?mixed
                              Open

                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_AUTOTASK_FAIL . '</span>', '<strong>' . $taskData['name'] . '</strong>');

                              Call to method handler from undeclared class \icms
                              Open

                                              $comment_handler = icms::handler('icms_data_comment');

                              Call to method handler from undeclared class \icms
                              Open

                                          $gperm_handler = icms::handler('icms_member_groupperm');

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

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

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                      $result = icms::$xoopsDB->query($sql);

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

                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_ADMIN_PERM_ADD_FAIL . '</span>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Function xoops_module_install defined at /code/htdocs/modules/system/admin/modulesadmin/modulesadmin.php:120 was previously defined at /code/htdocs/install/modulesadmin.php:22
                              Open

                              function xoops_module_install($dirname) {

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                      $newbid = icms::$xoopsDB->genId(icms::$xoopsDB->prefix('newblocks') . '_bid_seq');

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

                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_BLOCK_ACCESS_FAIL . '</span>', '<strong>' . icms_conv_nr2local($blc) . '</strong>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Reference to static property user from undeclared class \icms
                              Open

                                                          $groups = &icms::$user->getGroups();

                              Call to method getDatabaseUpdater from undeclared class \icms_db_legacy_Factory
                              Open

                                              $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();

                              Call to method instance from undeclared class \icms_db_Factory
                              Open

                                  $db = &icms_db_Factory::instance();

                              Call to method handler from undeclared class \icms
                              Open

                                                  $config_handler = icms::handler('icms_config');

                              Call to method handler from undeclared class \icms
                              Open

                                              $config_handler = icms::handler('icms_config');

                              Variable $criteria is undeclared
                              Open

                                              unset($atasks_handler, $task, $taskData, $criteria, $items, $taskID);

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                      $sql = "INSERT INTO " . icms::$xoopsDB->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) $module->getVar('mid') . "', '" . (int) $i . "', '" . addslashes($options) . "', '" . $block_name . "', '" . $block_name . "', '', '1', '0', '0', 'M', 'H', '1', '" . addslashes($dirname) . "', '" . addslashes($blocks[$i]['file']) . "', '" . addslashes($blocks[$i]['show_func']) . "', '" . addslashes($editfunc) . "', '" . $template . "', '0', '" . time() . "')";

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                              $newbid = icms::$xoopsDB->getInsertId();

                              Parameter $dirname has undeclared type \unknown_type
                              Open

                              function xoops_module_uninstall($dirname) {

                              Variable $taskData is undeclared
                              Open

                                              unset($atasks_handler, $criteria, $taskData);

                              Call to method clear_cache from undeclared class \icms_view_Tpl
                              Open

                                          $xoopsDelTpl->clear_cache(NULL, 'mod_' . $dirname);

                              Suspicious array access to ?mixed
                              Open

                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_AUTOTASK_ADDED, '<strong>' . $taskData['name'] . '</strong>');

                              Call to method handler from undeclared class \icms
                              Open

                                      $page_handler = icms::handler('icms_data_page');

                              Function icms_module_update defined at /code/htdocs/modules/system/admin/modulesadmin/modulesadmin.php:944 was previously defined at /code/htdocs/install/modulesadmin.php:475
                              Open

                              function icms_module_update($dirname) {

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                      $result = icms::$xoopsDB->query($sql);

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                  $sql = sprintf("DELETE FROM %s WHERE bid = '%u'", icms::$xoopsDB->prefix('newblocks'), (int) $block->getVar('bid'));

                              Suspicious array access to false
                              Open

                                              $configs[] = array('name' => 'com_rule',

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

                              Suspicious array access to false
                              Open

                                                      $configs[] = array('name' => 'com_rule',

                              Call to method handler from undeclared class \icms
                              Open

                                          $icms_block_handler = icms::handler('icms_view_block');

                              Variable $items is undeclared
                              Open

                                              unset($atasks_handler, $task, $taskData, $criteria, $items, $taskID);

                              Call to method handler from undeclared class \icms
                              Open

                                          $icms_block_handler = icms::handler('icms_view_block');

                              Suspicious type \unknown_type of a variable or expression used to build a string. (Expected type to be able to cast to a string)
                              Open

                                              include_once ICMS_MODULES_PATH . '/' . $dirname . '/' . trim($uninstall_script);

                              Call to method handler from undeclared class \icms
                              Open

                                          $notification_handler = icms::handler('icms_data_notification');

                              Function xoops_module_gettemplate defined at /code/htdocs/modules/system/admin/modulesadmin/modulesadmin.php:573 was previously defined at /code/htdocs/install/modulesadmin.php:453
                              Open

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

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

                              Parameter $name has undeclared type \str
                              Open

                              function xoops_module_change($mid, $weight, $name) {

                              Argument 1 (str) is \str but \trim() takes string
                              Open

                                  $dirname = trim($dirname);

                              Reference to static property user from undeclared class \icms
                              Open

                              if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

                              Reference to undeclared constant \_INFO
                              Open

                                  $icmsAdminTpl->assign('lang_info', _INFO);

                              Return type of icms_module_update() is undeclared type \str
                              Open

                              function icms_module_update($dirname) {

                              Call to method __construct from undeclared class \icms_db_legacy_updater_Table
                              Open

                                  $table = new icms_db_legacy_updater_Table("modules");

                              Call to method __construct from undeclared class \icms_view_Tpl
                              Open

                                          $xoopsDelTpl = new icms_view_Tpl();

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                  $fresult = icms::$xoopsDB->query($sql);

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                      $sql = "UPDATE " . icms::$xoopsDB->prefix("newblocks") . " SET name='" . addslashes($blocks[$i]['name']) . "', edit_func='" . addslashes($editfunc) . "', content='', template='" . $template . "', last_modified=" . time() . " WHERE bid='" . (int) $fblock['bid'] . "'";

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                          $sql = "INSERT INTO " . icms::$xoopsDB->prefix('block_module_link') . " (block_id, module_id, page_id) VALUES ('" . (int) $newbid . "', '0', '1')";

                              Call to method handler from undeclared class \icms
                              Open

                                          $config_handler = icms::handler('icms_config');

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

                              Variable $items is undeclared
                              Open

                                          unset($atasks, $atasks_handler, $task, $taskData, $criteria, $items, $taskID);

                              Call to method getAvailable from undeclared class \icms_module_Handler
                              Open

                                  $dirlist = icms_module_Handler::getAvailable();

                              Reference to undeclared constant \_VERSION (Did you mean $_SESSION)
                              Open

                                      $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getVar('version');

                              Call to method prefixQuery from undeclared class \icms_db_legacy_mysql_Utility
                              Open

                                                  $prefixed_query = icms_db_legacy_mysql_Utility::prefixQuery($piece, $db->prefix());

                              Parameter $dirname has undeclared type \str
                              Open

                              function icms_module_update($dirname) {

                              Call to method handler from undeclared class \icms
                              Open

                                          $gperm_handler = icms::handler('icms_member_groupperm');

                              Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
                              Open

                                      if (!$table->fieldExists($k)) {

                              Suspicious array access to ?mixed
                              Open

                                                  $task->setVar('sat_code', $taskData['code']);

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

                              Call to method getDatabaseUpdater from undeclared class \icms_db_legacy_Factory
                              Open

                                                  $icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

                              Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
                              Open

                                  return "<p>" . sprintf(_MD_AM_OKORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name) . "</strong>") . "</p>";

                              Call to method handler from undeclared class \icms
                              Open

                                          $icms_block_handler = icms::handler('icms_view_block');

                              Returning type string but icms_module_update() is declared to return \str
                              Open

                                  return $ret;

                              Call to method handler from undeclared class \icms
                              Open

                                          $urllink_handler = icms::handler('icms_data_urllink');

                              Call to method handler from undeclared class \icms
                              Open

                                      $member_handler = icms::handler('icms_member');

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

                              Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
                              Open

                                      $ret = "<p>" . sprintf(_MD_AM_FAILORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name) . "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br />";

                              Call to method __construct from undeclared class \icms_db_criteria_Compo
                              Open

                                      $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_moduleid', $module->getVar('mid')));

                              Call to method handler from undeclared class \icms
                              Open

                                  $module_handler = icms::handler('icms_module');

                              Call to method handler from undeclared class \icms
                              Open

                                      $config_handler = icms::handler('icms_config');

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

                              Call to method instance from undeclared class \icms_db_Factory
                              Open

                                  $db = icms_db_Factory::instance();

                              Call to method handler from undeclared class \icms
                              Open

                                      $member_handler = icms::handler('icms_member');

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

                              Call to method handler from undeclared class \icms
                              Open

                                      $tplfile_handler = &icms::handler('icms_view_template_file');

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                          icms::$xoopsDB->query($sql);

                              Variable $icmsModule is undeclared
                              Open

                              if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

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

                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_BLOCK_ACCESS_ADDED, '<strong>' . icms_conv_nr2local($blc) . '</strong>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Call to method __construct from undeclared class \icms_db_criteria_Item
                              Open

                                      $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_moduleid', $module->getVar('mid')));

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                  while ($fblock = icms::$xoopsDB->fetchArray($fresult)) {

                              Call to method handler from undeclared class \icms
                              Open

                                                          $gperm_handler = icms::handler('icms_member_groupperm');

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                  if (!icms::$xoopsDB->query($sql)) {

                              Call to method __construct from undeclared class \icms_db_criteria_Compo
                              Open

                                          $criteria = new icms_db_criteria_Compo();

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

                                                  $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_USER_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Call to method __construct from undeclared class \icms_db_criteria_Compo
                              Open

                                              $criteria = new icms_db_criteria_Compo();

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

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

                                                  $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_USER_PERM_ADD_FAIL . '</span>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');

                              Call to method handler from undeclared class \icms
                              Open

                                          $tplfile_handler = icms::handler('icms_view_template_file');

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

                              Call to method handler from undeclared class \icms
                              Open

                                          $file_handler = icms::handler('icms_data_file');

                              Reference to static property xoopsDB from undeclared class \icms
                              Open

                                                  $sql = "SELECT bid, name FROM " . icms::$xoopsDB->prefix('newblocks') . " WHERE mid='" . (int) $module->getVar('mid') . "' AND func_num='" . (int) $i . "' AND show_func='" . addslashes($blocks[$i]['show_func']) . "' AND func_file='" . addslashes($blocks[$i]['file']) . "'";

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

                                      if ($module->getVar('hasnotification') != 0) {
                                          if (empty($configs)) {
                                              $configs = array();
                                          }
                                          // Main notification options
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 day to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 371..396

                              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 341.

                              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 ($module->getVar('hasnotification') != 0) {
                                                  if (empty($configs)) {
                                                      $configs = array();
                                                  }
                                                  // Main notification options
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 day to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1243..1270

                              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 341.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 4 hrs to fix
                              htdocs/install/modulesadmin.php on lines 186..186

                              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 ($configs !== FALSE) {
                                          if ($module->getVar('hascomments') != 0) {
                                              include_once ICMS_INCLUDE_PATH . '/comment_constants.php';
                                              array_push($configs, array('name' => 'com_rule',
                                                  'title' => '_CM_COMRULES',
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 3 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 345..369

                              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 148.

                              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_INCLUDE_PATH . '/comment_constants.php';
                                                      $configs[] = array('name' => 'com_rule',
                                                          'title' => '_CM_COMRULES',
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 3 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1217..1241

                              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 148.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1301..1310

                              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 139.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 414..423

                              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 139.

                              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 ($grps as $k => $v) {
                                          $stararr = explode('-', $icmsConfig['startpage'][$k]);
                                          if (count($stararr) > 0) {
                                              if ($module->getVar('mid') == $stararr[0]) {
                                                  return "<p>" . sprintf(_MD_AM_FAILDEACT, "<strong>" . $module->getVar('name') . "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br /> - " . _MD_AM_STRTNO . "</p>";
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 649..656

                              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 128.

                              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 ($grps as $k => $v) {
                                          $stararr = explode('-', $icmsConfig['startpage'][$k]);
                                          if (count($stararr) > 0) {
                                              if ($module->getVar('mid') == $stararr[0]) {
                                                  return "<p>" . sprintf(_MD_AM_FAILDEACT, "<strong>" . $module->getVar('name') . "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br /> - " . _MD_AM_STRTNO . "</p>";
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 891..898

                              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 128.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 537..548

                              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 124.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 2 hrs to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 526..548

                              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 124.

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/install/modulesadmin.php on lines 591..601

                              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 (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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/install/modulesadmin.php on lines 499..510

                              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

                              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: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1382..1390

                              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: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1374..1390

                              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

                              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/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/install/modulesadmin.php on lines 838..844

                              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

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

                                                  if (!$gperm_handler->insert($mperm)) {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_ADMIN_PERM_ADD_FAIL . '</span>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                                  } else {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_ADMIN_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                                  }
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 466..470

                              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 102.

                              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 (!$gperm_handler->insert($mperm)) {
                                                  $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_USER_PERM_ADD_FAIL . '</span>', '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                              } else {
                                                  $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_USER_PERM_ADDED, '<strong>' . icms_conv_nr2local($mygroup) . '</strong>');
                                              }
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 1 hr to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 454..458

                              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 102.

                              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_uninstall_' . $ModName)) {
                                                  $func = 'icms_module_uninstall_' . $ModName;
                                                  if (!$func($module)) {
                                                      $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                                  } else {
                              Severity: Minor
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 55 mins to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 816..832

                              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 99.

                              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_uninstall_' . $ModName)) {
                                                  $func = 'xoops_module_uninstall_' . $ModName;
                                                  if (!$func($module)) {
                                                      $msgs[] = sprintf(_MD_AM_FAIL_EXEC, '<strong>' . $func . '</strong>');
                                                  } else {
                              Severity: Minor
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 55 mins to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 824..832

                              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 99.

                              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 (!($atasks_handler->insert($task))) {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_AUTOTASK_FAIL . '</span>', '<strong>' . $taskData['name'] . '</strong>');
                                                  } else {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_AUTOTASK_ADDED, '<strong>' . $taskData['name'] . '</strong>');
                                                  }
                              Severity: Minor
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 45 mins to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 1351..1355

                              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 96.

                              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 (!($atasks_handler->insert($task))) {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;<span style="color:#ff0000;">' . _MD_AM_AUTOTASK_FAIL . '</span>', '<strong>' . $taskData['name'] . '</strong>');
                                                  } else {
                                                      $msgs[] = sprintf('&nbsp;&nbsp;' . _MD_AM_AUTOTASK_ADDED, '<strong>' . $taskData['name'] . '</strong>');
                                                  }
                              Severity: Minor
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 1 other location - About 45 mins to fix
                              htdocs/modules/system/admin/modulesadmin/modulesadmin.php on lines 503..507

                              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 96.

                              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',
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 4 other locations - About 35 mins to fix
                              htdocs/install/modulesadmin.php on lines 25..25
                              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

                              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

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

                                  $reservedTables = array('avatar',
                                      'avatar_users_link',
                                      'block_module_link',
                                      'xoopscomments',
                                      'config',
                              Severity: Major
                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php and 4 other locations - About 35 mins to fix
                              htdocs/install/modulesadmin.php on lines 25..25
                              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 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();

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

                              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

                              Space found before closing bracket of FOR loop
                              Open

                                              for ($i = 0; $i < $bcount; $i++ ) {

                              Space found before closing bracket of FOR loop
                              Open

                                                              for ($k = 0; $k < $btcount; $k++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $confobj->setVar('conf_title', $config['title'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $error = TRUE;

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile->setVar('tpl_desc', isset($block['description']) ? $block['description'] : '', TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                              Open

                                          $templates = &$tplfile_handler->find(NULL, 'module', $module->getVar('mid'));

                              Space found before closing bracket of FOR loop
                              Open

                                  for ($i = 0; $i < $bcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $confobj->setVar('conf_desc', $config['description'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $confop->setVar('confop_name', $key, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      $error = FALSE;

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile->setVar('tpl_source', $content, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                              if ($configs !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

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

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                      for ($i = 0; $i < $bcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile_new->setVar('tpl_source', $content, TRUE);

                              Space found before closing bracket of FOR loop
                              Open

                                          for ($i = 0; $i < $confcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($configs !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $confobj->setVar('conf_value', $config_old[$config['name']]['value'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                              $icmsDatabaseUpdater->moduleUpgrade($module, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                              Open

                                          $xoopsDelTpl->clear_cache(NULL, 'mod_' . $dirname);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if (!$module->loadInfo($file, FALSE)) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                              $error = TRUE;

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                                              for ($k = 0; $k < $btcount; $k++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if (FALSE !== $update_script && trim($update_script) != '') {

                              Blank line found at start of control structure
                              Open

                                                      } else {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $tplfile->setVar('tpl_desc', $tpl['description'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $tplfile->setVar('tpl_source', $tpldata, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $tplfile->setVar('tpl_file', $tpl['file'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                              if ($templates !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $tplfile->setVar('tpl_source', $tpldata, TRUE);

                              Space found before closing bracket of FOR loop
                              Open

                                      for ($i = 0; $i < $bcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                          $blocks[$i]->setVar('isactive', FALSE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile_new->setVar('tpl_desc', $blocks[$i]['description'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                              if ($error === TRUE) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                          $blocks = &$icms_block_handler->getByModule($newmid, FALSE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $icmsDatabaseUpdater->moduleUpgrade($module, TRUE);

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                              for ($i = 0; $i < $bcount; $i++ ) {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                                          for ($j = 0; $j < $btcount; $j++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                          if (FALSE !== $uninstall_script && trim($uninstall_script) != '') {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($blocks !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $content = &xoops_module_gettemplate($dirname, $blocks[$i]['template'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $error = TRUE;

                              TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                              Open

                                                      $templates = &$tplfile_handler->find(NULL, 'block', $block_arr[$i]->getVar('bid'));

                              Space found before closing bracket of FOR loop
                              Open

                                          for ($i = 0; $i < $dcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                              if ($blocks !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $confop->setVar('confop_value', $value, TRUE);

                              Space found before closing bracket of FOR loop
                              Open

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

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                                  $tplfile_new->setVar('tpl_file', $blocks[$i]['template'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile->setVar('tpl_desc', $blocks[$i]['description'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $confobj->setConfValueForInput($config['default'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($module->getInfo('image') !== FALSE && trim($module->getInfo('image')) != '') {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $confobj->setVar('conf_desc', $config['description'], TRUE);

                              Expected 0 spaces before closing bracket; 1 found
                              Open

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

                              Space found before closing bracket of FOR loop
                              Open

                                              for ($i = 0; $i < $tcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                          if ($modtables !== FALSE && is_array($modtables)) {

                              Space found before closing bracket of FOR loop
                              Open

                                                  for ($i = 0; $i < $confcount; $i++ ) {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

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

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile->setVar('tpl_source', $content, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                              Open

                                                          $tplfiles = &$tplfile_handler->find(NULL, 'block', $block->getVar('bid'));

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                          for ($i = 0; $i < $confcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($configs !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                              $events = &$notification_handler->categoryEvents($category['name'], FALSE, $module->getVar('mid'));

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      $module->registerClassPath(FALSE);

                              Space found before closing bracket of FOR loop
                              Open

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

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($module->getInfo('author') !== FALSE && trim($module->getInfo('author')) != '') {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($sqlfile !== FALSE && is_array($sqlfile)) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $content = &xoops_module_gettemplate($dirname, $block['template'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $confobj->setConfValueForInput($config['default'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                                      if ($config_handler->insertConfig($confobj) !== FALSE) {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                                  for ($i = 0; $i < $confcount; $i++ ) {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                          for ($i = 0; $i < $dcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($templates !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                  $tplfile->setVar('tpl_desc', $tpl['description'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $tplfile->setVar('tpl_file', $blocks[$i]['template'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                      if ($error === FALSE) {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                  for ($i = 0; $i < $bcount; $i++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                              $confop->setVar('confop_name', $key, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                          if (FALSE !== $install_script && trim($install_script) != '') {

                              Expected 0 spaces before closing bracket; 1 found
                              Open

                                              for ($i = 0; $i < $tcount; $i++ ) {

                              Space found before closing bracket of FOR loop
                              Open

                                                          for ($j = 0; $j < $btcount; $j++ ) {

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $confobj->setVar('conf_value', serialize($config_old[$config['name']]['value']), TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $error = TRUE;

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                              if ($configs !== FALSE) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                                      $events = &$notification_handler->categoryEvents($category['name'], FALSE, $module->getVar('mid'));

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                      $confobj->setVar('conf_title', $config['title'], TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                              Open

                                                          $confop->setVar('confop_value', $value, TRUE);

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

                                                  if (FALSE !== $config_handler->insertConfig($confobj)) {

                              TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                              Open

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

                              Expected 1 blank line at end of file; 2 found
                              Open

                              }

                              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['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['code']) || trim($taskData['code']) == '') continue;

                              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['repeat'])) $task->setVar('sat_repeat', $taskData['repeat']);

                              Inline control structures are not allowed
                              Open

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

                              Line indented incorrectly; expected at least 1 tabs, found 0
                              Open

                              );

                              Line indented incorrectly; expected at least 1 tabs, found 0
                              Open

                              );

                              The variable $module_handler is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $page_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $listed_mods is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $uninstall_script is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_change($mid, $weight, $name) {
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $module->setVar('weight', $weight);
                                  $module->setVar('name', $name);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $installed_mods is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $listed_mods is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $urllink_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $member_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $uninstall_script is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $listed_mods is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $member_handler is not named in camelCase.
                              Open

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $page_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $member_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $urllink_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $uninstall_script is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $uninstall_script is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_change($mid, $weight, $name) {
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $module->setVar('weight', $weight);
                                  $module->setVar('name', $name);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $file_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $member_handler is not named in camelCase.
                              Open

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function xoops_module_install($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $page_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $notification_handler is not named in camelCase.
                              Open

                              function icms_module_update($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $installed_mods is not named in camelCase.
                              Open

                              function xoops_module_list() {
                                  global $icmsAdminTpl, $icmsConfig;
                              
                                  $icmsAdminTpl->assign('lang_madmin', _MD_AM_MODADMIN);
                                  $icmsAdminTpl->assign('lang_module', _MD_AM_MODULE);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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 xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $comment_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $comment_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                                  $dirname = trim($dirname);
                                  $db = icms_db_Factory::instance();
                                  $reservedTables = array('avatar',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_change($mid, $weight, $name) {
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $module->setVar('weight', $weight);
                                  $module->setVar('name', $name);

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $page_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              Example

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

                              Source

                              The variable $file_handler is not named in camelCase.
                              Open

                              function xoops_module_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_activate($mid) {
                                  global $icms_block_handler, $icmsAdminTpl;
                                  $module_handler = icms::handler('icms_module');
                                  $module = &$module_handler->get($mid);
                                  $icmsAdminTpl->template_clear_module_cache($module->getVar('mid'));

                              CamelCaseVariableName

                              Since: 0.2

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

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_uninstall($dirname) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $reservedTables = array('avatar',
                                      'avatar_users_link',

                              CamelCaseVariableName

                              Since: 0.2

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

                              function xoops_module_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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_deactivate($mid) {
                                  global $icms_page_handler, $icms_block_handler, $icmsConfig, $icmsAdminTpl;
                                  if (!isset($icms_page_handler)) {
                                      $icms_page_handler = icms_getModuleHandler('pages', 'system');
                                  }

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              It is 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) {
                                  global $icmsConfig, $icmsAdminTpl;
                              
                                  $msgs = array();
                              
                              

                              CamelCaseVariableName

                              Since: 0.2

                              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