XoopsModules25x/xoopstube

View on GitHub
admin/category.php

Summary

Maintainability
D
2 days
Test Coverage

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

createCategory accesses the super-global variable $GLOBALS.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Minor
Found in admin/category.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

Method createCategory has 154 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createCategory($cid = 0)
{
    // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
    //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

Severity: Major
Found in admin/category.php - About 6 hrs to fix

    File category.php has 380 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Module: XoopsTube
     *
     * You may not change or alter any portion of this comment or credits
    Severity: Minor
    Found in admin/category.php - About 5 hrs to fix

      Function createCategory has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php - About 1 hr to fix

      Cognitive Complexity

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

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

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

      Further reading

      The function createCategory() has an NPath complexity of 288. The configured NPath complexity threshold is 200.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.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 createCategory() has 196 lines of code. Current threshold is set to 100. Avoid really long methods.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

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

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CyclomaticComplexity

      Since: 0.1

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

      Example

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

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

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

              $options['name']   = 'description';
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $options['rows']   = 5;
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $options['cols']   = '100%';
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $options['height'] = '200px';
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $options['value']  = $description;
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $options['width']  = '100%';
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $editor = new \XoopsFormDhtmlTextArea('', 'description', $item->getVar('description', 'e'), '100%', '100%');
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

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

              $editor            = new \XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea');
      Severity: Minor
      Found in admin/category.php by phpmd

      UndefinedVariable

      Since: 2.8.0

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

      Example

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

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

      Missing class import via use statement (line '125', column '42').
      Open

              $indeximage_tray->addElement(new \XoopsFormLabel('', "<br><br><img src='" . XOOPS_URL . '/' . $GLOBALS['xoopsModuleConfig']['catimage'] . '/' . $imgurl . "' name='image' id='image' alt=''>"));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '127', column '42').
      Open

              $indeximage_tray->addElement(new \XoopsFormLabel('', "<br><br><img src='" . XOOPS_URL . "/uploads/blank.gif' name='image' id='image' alt=''>"));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '134', column '28').
      Open

          $optionsTrayNote = new \XoopsFormElementTray(_AM_XOOPSTUBE_FCATEGORY_DESCRIPTION, '<br>');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '100', column '18').
      Open

          $sform = new \XoopsThemeForm($heading, 'op', xoops_getenv('SCRIPT_NAME'), 'post', true);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '110', column '32').
      Open

              $sform->addElement(new \XoopsFormLabel(_AM_XOOPSTUBE_FCATEGORY_SUBCATEGORY, ob_get_clean()));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '115', column '32').
      Open

              $sform->addElement(new \XoopsFormLabel(_AM_XOOPSTUBE_FCATEGORY_SUBCATEGORY, ob_get_clean()));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '119', column '29').
      Open

          $indexImageSelect = new \XoopsFormSelect('', 'imgurl', $imgurl);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '103', column '28').
      Open

          $sform->addElement(new \XoopsFormText(_AM_XOOPSTUBE_FCATEGORY_TITLE, 'title', 50, 80, $title), true);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '104', column '28').
      Open

          $sform->addElement(new \XoopsFormText(_AM_XOOPSTUBE_FCATEGORY_WEIGHT, 'weight', 10, 80, $weight), false);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '122', column '28').
      Open

          $indeximage_tray = new \XoopsFormElementTray(_AM_XOOPSTUBE_FCATEGORY_CIMAGE, '&nbsp;');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

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

          $hidden     = new \XoopsFormHidden('op', 'save');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

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

              $butt_clear = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BRESET, 'reset');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '231', column '28').
      Open

              $butt_cancel = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BCANCEL, 'button');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '196', column '28').
      Open

          $breaks_checkbox = new \XoopsFormCheckBox('', 'nobreak', $nobreak);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '203', column '28').
      Open

          $sform->addElement(new \XoopsFormHidden('cid', (int)$cid));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '227', column '28').
      Open

              $butt_delete = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BDELETE, 'submit');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '205', column '28').
      Open

          $sform->addElement(new \XoopsFormHidden('spotlighttop', (int)$cid));
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '219', column '28').
      Open

              $butt_cancel = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BCANCEL, 'button');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '142', column '34').
      Open

              $editor            = new \XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '184', column '28').
      Open

          $smiley_checkbox = new \XoopsFormCheckBox('', 'nosmiley', $nosmiley);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '178', column '25').
      Open

          $options_tray = new \XoopsFormElementTray(_AM_XOOPSTUBE_TEXTOPTIONS, '<br>');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

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

          $noimages_checkbox = new \XoopsFormCheckBox('', 'noimages', $noimages);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '223', column '28').
      Open

              $butt_create = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BMODIFY, 'submit');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '152', column '28').
      Open

          $client_select   = new \XoopsFormSelect(_AM_XOOPSTUBE_CATSPONSOR, 'client_id', $client_id, false);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '180', column '26').
      Open

          $html_checkbox = new \XoopsFormCheckBox('', 'nohtml', $nohtml);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '166', column '28').
      Open

          $banner_select   = new \XoopsFormSelect(_AM_XOOPSTUBE_BANNERID, 'banner_id', $banner_id, false);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

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

              $editor = new \XoopsFormDhtmlTextArea('', 'description', $item->getVar('description', 'e'), '100%', '100%');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '188', column '28').
      Open

          $xcodes_checkbox = new \XoopsFormCheckBox('', 'noxcodes', $noxcodes);
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

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

          $buttonTray = new \XoopsFormElementTray('', '');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Missing class import via use statement (line '212', column '28').
      Open

              $butt_create = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BSAVE, 'submit');
      Severity: Minor
      Found in admin/category.php by phpmd

      MissingImport

      Since: 2.7.0

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

      Example

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

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

      Avoid using static access to class '\XoopsModules\Xoopstube\Utility' in method 'createCategory'.
      Open

          $totalcats    = Utility::getTotalCategoryCount();
      Severity: Minor
      Found in admin/category.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 createCategory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

          } else {
              $groups = true;
          }
      Severity: Minor
      Found in admin/category.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 createCategory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

          } else {
              $mytreechose = new Tree($GLOBALS['xoopsDB']->prefix('xoopstube_cat'), 'cid', 'pid');
              ob_start();
              $mytreechose->makeMySelBox('title', 'title', $cid, 1, 'pid');
              $sform->addElement(new \XoopsFormLabel(_AM_XOOPSTUBE_FCATEGORY_SUBCATEGORY, ob_get_clean()));
      Severity: Minor
      Found in admin/category.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 createCategory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

          } else {
              $indeximage_tray->addElement(new \XoopsFormLabel('', "<br><br><img src='" . XOOPS_URL . "/uploads/blank.gif' name='image' id='image' alt=''>"));
          }
      Severity: Minor
      Found in admin/category.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\Xoopstube\Lists' in method 'createCategory'.
      Open

          $graph_array      = Lists::getListTypeAsArray(XOOPS_ROOT_PATH . '/' . $GLOBALS['xoopsModuleConfig']['catimage'], $type = 'images');
      Severity: Minor
      Found in admin/category.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 createCategory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

          } else {
              $butt_create = new \XoopsFormButton('', '', _AM_XOOPSTUBE_BMODIFY, 'submit');
              $butt_create->setExtra('onclick="this.form.elements.op.value=\'addCat\'"');
              $buttonTray->addElement($butt_create);
      
      
      Severity: Minor
      Found in admin/category.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 createCategory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

          } else {
              $editor = new \XoopsFormDhtmlTextArea('', 'description', $item->getVar('description', 'e'), '100%', '100%');
              $optionsTrayNote->addElement($editor);
          }
      Severity: Minor
      Found in admin/category.php by phpmd

      ElseExpression

      Since: 1.4.0

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

      Example

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

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

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

          global $myts, $totalcats, $xoopsModule;
      Severity: Minor
      Found in admin/category.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 '$lid'.
      Open

          $lid          = 0;
      Severity: Minor
      Found in admin/category.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 '$type'.
      Open

          $graph_array      = Lists::getListTypeAsArray(XOOPS_ROOT_PATH . '/' . $GLOBALS['xoopsModuleConfig']['catimage'], $type = 'images');
      Severity: Minor
      Found in admin/category.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 '$group_list'.
      Open

              $group_list    = $memberHandler->getGroupList();
      Severity: Minor
      Found in admin/category.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 '$spotlighttop'.
      Open

          $spotlighttop = 0;
      Severity: Minor
      Found in admin/category.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 '$spotlighthis'.
      Open

          $spotlighthis = 0;
      Severity: Minor
      Found in admin/category.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 '$groups'.
      Open

              $groups           = $grouppermHandler->getGroupIds('XTubeCatPerm', $cid, $xoopsModule->getVar('mid'));
      Severity: Minor
      Found in admin/category.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 '$pid'.
      Open

          $pid          = '';
      Severity: Minor
      Found in admin/category.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 '$item'.
      Open

              $editor = new \XoopsFormDhtmlTextArea('', 'description', $item->getVar('description', 'e'), '100%', '100%');
      Severity: Minor
      Found in admin/category.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 '$onfailure'.
      Open

              $editor            = new \XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea');
      Severity: Minor
      Found in admin/category.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 '$numrows'.
      Open

          [$numrows] = $GLOBALS['xoopsDB']->fetchRow($result2);
      Severity: Minor
      Found in admin/category.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

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

          if (class_exists('XoopsFormEditor')) {
              $options['name']   = 'description';
              $options['value']  = $description;
              $options['rows']   = 5;
              $options['cols']   = '100%';
      Severity: Major
      Found in admin/category.php and 3 other locations - About 4 hrs to fix
      admin/indexpage.php on lines 111..123
      admin/main.php on lines 177..189
      submit.php on lines 308..320

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

      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

      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 45 and the first side effect is on line 25.
      Open

      <?php
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'addCat':
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'del':
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      There must be one USE keyword per declaration
      Open

      use XoopsModules\Xoopstube\{
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 126 characters
      Open

                      $sql = sprintf('DELETE FROM `%s` WHERE lid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_videos'), (int)$lid);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 132 characters
      Open

              $sform         = new \XoopsThemeForm(_AM_XOOPSTUBE_CCATEGORY_MODIFY, 'category', xoops_getenv('SCRIPT_NAME'), 'post', true);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 141 characters
      Open

                  $cid = Request::getInt('cid', Request::getInt('cid', 0, 'GET'), 'POST'); //(isset($_POST['cid'])) ? $_POST['cid'] : $_GET['cid'];
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

              $client_id    = Request::getInt('client_id', 0, 'POST'); //(isset($_REQUEST['client_id'])) ? $_REQUEST['client_id'] : 0;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 157 characters
      Open

              $editor            = new \XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea');
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

          //    $sform -> addElement(new \XoopsFormSelectGroup(_AM_XOOPSTUBE_FCATEGORY_GROUPPROMPT, "groups", true, $groups, 5, true));
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 195 characters
      Open

              $weight       = (Request::getInt('weight', 0, 'POST') > 0) ? Request::getInt('weight', 0, 'POST') : 0; //(isset($_REQUEST['weight']) && $_REQUEST['weight'] > 0) ? $_REQUEST['weight'] : 0;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  $banner_id = Request::getInt('banner_id', 0, 'POST'); //(isset($_REQUEST['banner_id'])) ? $_REQUEST['banner_id'] : 0;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 132 characters
      Open

                          $sql = sprintf('DELETE FROM `%s` WHERE lid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_votedata'), (int)$lid);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 142 characters
      Open

                  $result = $GLOBALS['xoopsDB']->query('SELECT lid FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') . ' WHERE cid=' . $cid);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 135 characters
      Open

                  $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') . ' set cid = ' . $target . ' WHERE cid =' . $source;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 126 characters
      Open

                  $tags['CATEGORY_URL']  = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewcat.php?cid=' . $newid;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 155 characters
      Open

                      $result = $GLOBALS['xoopsDB']->query('SELECT lid FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') . ' WHERE cid=' . (int)$arr[$i]);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 174 characters
      Open

              $imgurl       = Request::getString('imgurl', '', 'POST'); // $_REQUEST['imgurl'] && $_REQUEST['imgurl'] != 'blank.gif') ? $myts->addslashes($_REQUEST['imgurl']) : '';
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  $sform         = new \XoopsThemeForm(_AM_XOOPSTUBE_CCATEGORY_MOVE, 'move', xoops_getenv('SCRIPT_NAME'), 'post', true);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 126 characters
      Open

              $spotlighttop = (1 == Request::getInt('spotlighttop', 0, 'POST')) ? 1 : 0; //($_REQUEST['spotlighttop'] == 1) ? 1 : 0;
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 165 characters
      Open

          $indexImageSelect->setExtra("onchange='showImgSelected(\"image\", \"imgurl\", \"" . $GLOBALS['xoopsModuleConfig']['catimage'] . '", "", "' . XOOPS_URL . "\")'");
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 152 characters
      Open

              $indeximage_tray->addElement(new \XoopsFormLabel('', "<br><br><img src='" . XOOPS_URL . "/uploads/blank.gif' name='image' id='image' alt=''>"));
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 126 characters
      Open

              $groups       = Request::getArray('groups', [], 'POST'); //isset($_REQUEST['groups']) ? $_REQUEST['groups'] : array();
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                          $sql = sprintf('DELETE FROM `%s` WHERE lid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_videos'), (int)$lid);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                      $sql = sprintf('DELETE FROM `%s` WHERE lid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_votedata'), (int)$lid);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 135 characters
      Open

          $graph_array      = Lists::getListTypeAsArray(XOOPS_ROOT_PATH . '/' . $GLOBALS['xoopsModuleConfig']['catimage'], $type = 'images');
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 125 characters
      Open

                      $sql = sprintf('DELETE FROM `%s` WHERE cid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_altcat'), $arr[$i]);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 200 characters
      Open

              $indeximage_tray->addElement(new \XoopsFormLabel('', "<br><br><img src='" . XOOPS_URL . '/' . $GLOBALS['xoopsModuleConfig']['catimage'] . '/' . $imgurl . "' name='image' id='image' alt=''>"));
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 353 characters
      Open

                                   . " SET title ='$title', imgurl='$imgurl', pid =$pid, description='$descriptionb', spotlighthis='$spotlighthis' , spotlighttop='$spotlighttop', nohtml='$nohtml', nosmiley='$nosmiley', noxcodes='$noxcodes', noimages='$noimages', nobreak='$nobreak', weight='$weight', client_id='$client_id', banner_id='$banner_id' WHERE cid="
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 127 characters
      Open

                      $sql = sprintf('DELETE FROM `%s` WHERE cid = %u', $GLOBALS['xoopsDB']->prefix('xoopstube_cat'), (int)$arr[$i]);
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      Line exceeds 120 characters; contains 356 characters
      Open

                         . " (cid, pid, title, imgurl, description, nohtml, nosmiley, noxcodes, noimages, nobreak, weight, spotlighttop, spotlighthis, client_id, banner_id ) VALUES ($cid, $pid, '$title', '$imgurl', '$descriptionb', '$nohtml', '$nosmiley', '$noxcodes', '$noimages', '$nobreak', '$weight',  $spotlighttop, $spotlighthis, $client_id, $banner_id )";
      Severity: Minor
      Found in admin/category.php by phpcodesniffer

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $html_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $group_list is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $indeximage_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $breaks_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_delete is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $html_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $breaks_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_delete is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $graph_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $indeximage_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $noimages_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_clear is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_clear is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_cancel is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $html_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $xcodes_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $indeximage_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $smiley_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $xcodes_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $indeximage_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $smiley_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $breaks_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_create is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $butt_delete is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $graph_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_id is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $indeximage_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $noimages_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $cat_arr is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $xcodes_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $client_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_select is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $banner_array is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $smiley_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $options_tray is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $noimages_checkbox is not named in camelCase.
      Open

      function createCategory($cid = 0)
      {
          // require_once  dirname(__DIR__) . '/class/xoopstube_lists.php';
          //    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
      
      
      Severity: Minor
      Found in admin/category.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      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