mambax7/adslight

View on GitHub
admin/options.php

Summary

Maintainability
F
6 days
Test Coverage

listingModType accesses the super-global variable $GLOBALS.
Open

function listingModType($id_type): void
{
    global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
    //    require_once __DIR__ . '/admin_header.php';
    xoops_cp_header();
Severity: Minor
Found in admin/options.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

listingModcondition accesses the super-global variable $GLOBALS.
Open

function listingModcondition($id_condition): void
{
    global $xoopsDB, $myts;

    //    require_once __DIR__ . '/admin_header.php';
Severity: Minor
Found in admin/options.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

listingModPrice accesses the super-global variable $GLOBALS.
Open

function listingModPrice($id_price): void
{
    global $xoopsDB, $myts;

    //    require_once __DIR__ . '/admin_header.php';
Severity: Minor
Found in admin/options.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

File options.php has 443 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php declare(strict_types=1);

/*
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
Severity: Minor
Found in admin/options.php - About 6 hrs to fix

    Method index has 107 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function index(): void
    {
        global $xoopsDB, $myts, $admin_lang;
        //    require_once __DIR__ . '/admin_header.php';
        xoops_cp_header();
    Severity: Major
    Found in admin/options.php - About 4 hrs to fix

      Function index has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
      Open

      function index(): void
      {
          global $xoopsDB, $myts, $admin_lang;
          //    require_once __DIR__ . '/admin_header.php';
          xoops_cp_header();
      Severity: Minor
      Found in admin/options.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 listingAddcondition has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function listingAddcondition($type): void
      {
          global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
          $helper = Helper::getInstance();
          $type   = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
      Severity: Minor
      Found in admin/options.php - About 1 hr to fix

        Method listingModPrice has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function listingModPrice($id_price): void
        {
            global $xoopsDB, $myts;
        
            //    require_once __DIR__ . '/admin_header.php';
        Severity: Minor
        Found in admin/options.php - About 1 hr to fix

          Method listingAddPrice has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function listingAddPrice(string $nom_price): void
          {
              global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
              $helper = Helper::getInstance();
              $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
          Severity: Minor
          Found in admin/options.php - About 1 hr to fix

            Method listingAddType has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function listingAddType($type): void
            {
                global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                $helper = Helper::getInstance();
            
            
            Severity: Minor
            Found in admin/options.php - About 1 hr to fix

              Method listingModType has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function listingModType($id_type): void
              {
                  global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  //    require_once __DIR__ . '/admin_header.php';
                  xoops_cp_header();
              Severity: Minor
              Found in admin/options.php - About 1 hr to fix

                Method listingModcondition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function listingModcondition($id_condition): void
                {
                    global $xoopsDB, $myts;
                
                    //    require_once __DIR__ . '/admin_header.php';
                Severity: Minor
                Found in admin/options.php - About 1 hr to fix

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

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  The function index() has an NPath complexity of 1000. The configured NPath complexity threshold is 200.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  NPathComplexity

                  Since: 0.1

                  The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                  Example

                  class Foo {
                      function bar() {
                          // lots of complicated code
                      }
                  }

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

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

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CyclomaticComplexity

                  Since: 0.1

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

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

                      global $xoopsDB, $myts;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingAddType'.
                  Open

                      $helper = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

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

                      } else {
                          $type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
                          if ('' === $type) {
                              $type = '! ! ? ! !';
                          }
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  ElseExpression

                  Since: 1.4.0

                  An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                  Example

                  class Foo
                  {
                      public function bar($flag)
                      {
                          if ($flag) {
                              // one branch
                          } else {
                              // another branch
                          }
                      }
                  }

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

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

                      } else {
                          $nom_price = \htmlspecialchars($nom_price, ENT_QUOTES | ENT_HTML5);
                          if ('' === $nom_price) {
                              $nom_price = '! ! ? ! !';
                          }
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  ElseExpression

                  Since: 1.4.0

                  An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                  Example

                  class Foo
                  {
                      public function bar($flag)
                      {
                          if ($flag) {
                              // one branch
                          } else {
                              // another branch
                          }
                      }
                  }

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingDelType'.
                  Open

                      $helper  = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingAddcondition'.
                  Open

                      $helper = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingDelPrice'.
                  Open

                      $helper = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingDelcondition'.
                  Open

                      $helper       = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingModTypeS'.
                  Open

                      $helper   = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingAddPrice'.
                  Open

                      $helper = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\Xmf\Module\Admin' in method 'index'.
                  Open

                      $adminObject = Admin::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingModPriceS'.
                  Open

                      $helper    = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

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

                      } else {
                          $type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
                          if ('' === $type) {
                              $type = '! ! ? ! !';
                          }
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  ElseExpression

                  Since: 1.4.0

                  An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                  Example

                  class Foo
                  {
                      public function bar($flag)
                      {
                          if ($flag) {
                              // one branch
                          } else {
                              // another branch
                          }
                      }
                  }

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

                  Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingModconditionS'.
                  Open

                      $helper        = Helper::getInstance();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  StaticAccess

                  Since: 1.4.0

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

                  Example

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

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

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

                      if ($numrows > 0) {
                          $nom_price = \htmlspecialchars($numrows, ENT_QUOTES | ENT_HTML5); //mb
                          //        require_once __DIR__ . '/admin_header.php';
                          xoops_cp_header();
                          //    loadModuleAdminMenu(2, "");
                  Severity: Major
                  Found in admin/options.php and 1 other location - About 7 hrs to fix
                  admin/options.php on lines 413..438

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

                  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 ($numrows > 0) {
                          $nom_condition = \htmlspecialchars($numrows, ENT_QUOTES | ENT_HTML5); //mb
                  
                          //        require_once __DIR__ . '/admin_header.php';
                          xoops_cp_header();
                  Severity: Major
                  Found in admin/options.php and 1 other location - About 7 hrs to fix
                  admin/options.php on lines 293..317

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

                  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 3 locations. Consider refactoring.
                  Open

                      if ($numrows > 0) {
                          echo '<form method="post" action="options.php">
                              <b>' . _AM_ADSLIGHT_MODCONDITION . '</b></font><br><br>';
                          $sql     = 'SELECT id_condition, nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . ' ORDER BY nom_condition';
                          $result8 = $xoopsDB->query($sql);
                  Severity: Major
                  Found in admin/options.php and 2 other locations - About 5 hrs to fix
                  admin/options.php on lines 58..78
                  admin/options.php on lines 97..116

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

                  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 3 locations. Consider refactoring.
                  Open

                      if ($numrows > 0) {
                          echo '<form method="post" action="options.php">
                               <b>' . _AM_ADSLIGHT_MODTYPE . '</b></font><br><br>';
                          $sql     = 'SELECT id_type, nom_type FROM ' . $xoopsDB->prefix('adslight_type') . ' ORDER BY nom_type';
                          $result2 = $xoopsDB->query($sql);
                  Severity: Major
                  Found in admin/options.php and 2 other locations - About 5 hrs to fix
                  admin/options.php on lines 97..116
                  admin/options.php on lines 135..155

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

                  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 3 locations. Consider refactoring.
                  Open

                      if ($numrows > 0) {
                          echo '<form method="post" action="options.php">
                              <b>' . _AM_ADSLIGHT_MODPRICE . '</b></font><br><br>';
                          $sql     = 'SELECT id_price, nom_price FROM ' . $xoopsDB->prefix('adslight_price') . ' ORDER BY nom_price';
                          $result3 = $xoopsDB->query($sql);
                  Severity: Major
                  Found in admin/options.php and 2 other locations - About 5 hrs to fix
                  admin/options.php on lines 58..78
                  admin/options.php on lines 135..155

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

                  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

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Major
                  Found in admin/options.php and 1 other location - About 1 hr to fix
                  admin/options.php on lines 371..380

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

                  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

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Major
                  Found in admin/options.php and 1 other location - About 1 hr to fix
                  admin/options.php on lines 252..261

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

                  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

                  The parameter $id_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $nom_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_condition is not named in camelCase.
                  Open

                  function listingDelcondition($id_condition): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper       = Helper::getInstance();
                      $id_condition = (int)$id_condition;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_price is not named in camelCase.
                  Open

                  function listingDelPrice($id_price): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $nom_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_type is not named in camelCase.
                  Open

                  function listingDelType($id_type): void
                  {
                      global $xoopsDB;
                      $helper  = Helper::getInstance();
                      $id_type = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  The parameter $nom_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

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

                  Source

                  A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 33 and the first side effect is on line 27.
                  Open

                  <?php declare(strict_types=1);
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 145 characters
                  Open

                      echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 141 characters
                  Open

                      $sql = 'UPDATE ' . $xoopsDB->prefix('adslight_condition') . " SET nom_condition='{$nom_condition}' WHERE id_condition='{$id_condition}'";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 145 characters
                  Open

                      echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 152 characters
                  Open

                          echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORCONDITION . " {$nom_condition} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 149 characters
                  Open

                          echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 145 characters
                  Open

                      echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 144 characters
                  Open

                          echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORPRICE . " {$nom_price} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 142 characters
                  Open

                          echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORTYPE . " {$nom_type} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 121 characters
                  Open

                      $sql      = 'UPDATE ' . $xoopsDB->prefix('adslight_type') . " SET nom_type='{$nom_type}' WHERE id_type='{$id_type}'";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 125 characters
                  Open

                      $sql     = 'SELECT nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . " WHERE id_condition={$id_condition}";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 127 characters
                  Open

                      $sql       = 'UPDATE ' . $xoopsDB->prefix('adslight_price') . " SET nom_price='{$nom_price}' WHERE id_price='{$id_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  Line exceeds 120 characters; contains 131 characters
                  Open

                          $sql     = 'SELECT id_condition, nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . ' ORDER BY nom_condition';
                  Severity: Minor
                  Found in admin/options.php by phpcodesniffer

                  The variable $nom_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingAddType($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                  
                  
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingAddType($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                  
                  
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingAddcondition($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $type   = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingDelType($id_type): void
                  {
                      global $xoopsDB;
                      $helper  = Helper::getInstance();
                      $id_type = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingDelPrice($id_price): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingDelType($id_type): void
                  {
                      global $xoopsDB;
                      $helper  = Helper::getInstance();
                      $id_type = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingDelcondition($id_condition): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper       = Helper::getInstance();
                      $id_condition = (int)$id_condition;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingDelType($id_type): void
                  {
                      global $xoopsDB;
                      $helper  = Helper::getInstance();
                      $id_type = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingDelPrice($id_price): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModTypeS($id_type, $nom_type): void
                  {
                      global $xoopsDB, $myts;
                      $helper   = Helper::getInstance();
                      $id_type  = (int)$id_type;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingAddType($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                  
                  
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingAddcondition($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $type   = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingDelcondition($id_condition): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper       = Helper::getInstance();
                      $id_condition = (int)$id_condition;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingModcondition($id_condition): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $admin_lang is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPriceS($id_price, $nom_price): void
                  {
                      global $xoopsDB, $myts;
                      $helper    = Helper::getInstance();
                      $id_price  = (int)$id_price;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function listingModPrice($id_price): void
                  {
                      global $xoopsDB, $myts;
                  
                      //    require_once __DIR__ . '/admin_header.php';
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingAddcondition($type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $type   = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_condition is not named in camelCase.
                  Open

                  function listingModconditionS($id_condition, $nom_condition): void
                  {
                      global $xoopsDB, $myts;
                      $helper        = Helper::getInstance();
                      $nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingDelcondition($id_condition): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper       = Helper::getInstance();
                      $id_condition = (int)$id_condition;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_price is not named in camelCase.
                  Open

                  function index(): void
                  {
                      global $xoopsDB, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_type is not named in camelCase.
                  Open

                  function listingModType($id_type): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      //    require_once __DIR__ . '/admin_header.php';
                      xoops_cp_header();
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $nom_price is not named in camelCase.
                  Open

                  function listingAddPrice(string $nom_price): void
                  {
                      global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                      $helper = Helper::getInstance();
                      $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

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

                  Source

                  The variable $id_condition is not named in camelCase.
                  Open

                  function listingDelcondition($id_condition): void
                  {
                      global $xoopsDB, $admin_lang;
                      $helper       = Helper::getInstance();
                      $id_condition = (int)$id_condition;
                  Severity: Minor
                  Found in admin/options.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

                  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