XoopsModules25x/xoopspoll

View on GitHub
extras/newbb_4x/trunk_4_00/class/post.php

Summary

Maintainability
F
2 wks
Test Coverage

saveAttachment accesses the super-global variable $GLOBALS.
Open

    public function saveAttachment()
    {
        if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
            $attachment_save = base64_encode(serialize($this->attachment_array));
        } else {

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

saveAttachment accesses the super-global variable $GLOBALS.
Open

    public function saveAttachment()
    {
        if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
            $attachment_save = base64_encode(serialize($this->attachment_array));
        } else {

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

saveAttachment accesses the super-global variable $GLOBALS.
Open

    public function saveAttachment()
    {
        if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
            $attachment_save = base64_encode(serialize($this->attachment_array));
        } else {

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

showPost accesses the super-global variable $_GET.
Open

    public function showPost($isadmin)
    {
        global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
        global $forumUrl, $forumImage;
        global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

showPost accesses the super-global variable $GLOBALS.
Open

    public function showPost($isadmin)
    {
        global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
        global $forumUrl, $forumImage;
        global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

showPost accesses the super-global variable $_GET.
Open

    public function showPost($isadmin)
    {
        global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
        global $forumUrl, $forumImage;
        global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

showPost accesses the super-global variable $GLOBALS.
Open

    public function showPost($isadmin)
    {
        global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
        global $forumUrl, $forumImage;
        global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

_delete accesses the super-global variable $GLOBALS.
Open

    public function _delete(&$post, $force = false)
    {
        global $xoopsModule;

        if (!is_object($post) || $post->getVar('post_id') == 0) {

Superglobals

Since: 0.2

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

Example

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

Source

File post.php has 808 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Newbb module
 *
 * You may not change or alter any portion of this comment or credits
Severity: Major
Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 day to fix

    Function _delete has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring.
    Open

        public function _delete(&$post, $force = false)
        {
            global $xoopsModule;
    
            if (!is_object($post) || $post->getVar('post_id') == 0) {
    Severity: Minor
    Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 day to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function insert has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

        public function insert(XoopsObject $post, $force = true)
        {
            global $xoopsUser;
    
            // Set the post time
    Severity: Minor
    Found in extras/newbb_4x/trunk_4_00/class/post.php - About 5 hrs to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function showPost has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
    Open

        public function showPost($isadmin)
        {
            global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
            global $forumUrl, $forumImage;
            global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;
    Severity: Minor
    Found in extras/newbb_4x/trunk_4_00/class/post.php - About 5 hrs to fix

    Cognitive Complexity

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

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

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

    Further reading

    Method showPost has 124 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function showPost($isadmin)
        {
            global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
            global $forumUrl, $forumImage;
            global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/class/post.php - About 4 hrs to fix

      Method insert has 86 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function insert(XoopsObject $post, $force = true)
          {
              global $xoopsUser;
      
              // Set the post time
      Severity: Major
      Found in extras/newbb_4x/trunk_4_00/class/post.php - About 3 hrs to fix

        The class Post has an overall complexity of 106 which is very high. The configured complexity threshold is 50.
        Open

        class Post extends XoopsObject
        {
            public $attachment_array = array();
        
            /**

        The class NewbbPostHandler has an overall complexity of 84 which is very high. The configured complexity threshold is 50.
        Open

        class NewbbPostHandler extends XoopsPersistableObjectHandler
        {
            /**
             * @param null|XoopsDatabase $db
             */

        Method _delete has 82 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function _delete(&$post, $force = false)
            {
                global $xoopsModule;
        
                if (!is_object($post) || $post->getVar('post_id') == 0) {
        Severity: Major
        Found in extras/newbb_4x/trunk_4_00/class/post.php - About 3 hrs to fix

          Method displayAttachment has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function displayAttachment($asSource = false)
              {
                  global $xoopsModule, $xoopsModuleConfig;
          
                  $post_attachment = '';
          Severity: Major
          Found in extras/newbb_4x/trunk_4_00/class/post.php - About 2 hrs to fix

            Method approve has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function approve(&$post, $force = false)
                {
                    if (empty($post)) {
                        return false;
                    }
            Severity: Major
            Found in extras/newbb_4x/trunk_4_00/class/post.php - About 2 hrs to fix

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

                  public function approve(&$post, $force = false)
                  {
                      if (empty($post)) {
                          return false;
                      }
              Severity: Minor
              Found in extras/newbb_4x/trunk_4_00/class/post.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

              Method getPostBody has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function &getPostBody()
                  {
                      global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                      require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                      require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';
              Severity: Minor
              Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 hr to fix

                Function getPostBody has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function &getPostBody()
                    {
                        global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                        require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                        require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';
                Severity: Minor
                Found in extras/newbb_4x/trunk_4_00/class/post.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

                Function displayAttachment has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function displayAttachment($asSource = false)
                    {
                        global $xoopsModule, $xoopsModuleConfig;
                
                        $post_attachment = '';
                Severity: Minor
                Found in extras/newbb_4x/trunk_4_00/class/post.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

                Function deleteAttachment has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function deleteAttachment($attach_array = null)
                    {
                        global $xoopsModuleConfig;
                
                        $attach_old = $this->getAttachment();
                Severity: Minor
                Found in extras/newbb_4x/trunk_4_00/class/post.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

                Function delete has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function delete(XoopsObject $post, $isDeleteOne = true, $force = false)
                    {
                        if (!is_object($post) || $post->getVar('post_id') == 0) {
                            return false;
                        }
                Severity: Minor
                Found in extras/newbb_4x/trunk_4_00/class/post.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

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

                    public function setPostEdit($poster_name = '')
                    {
                        global $xoopsModuleConfig, $xoopsUser;
                
                        if (empty($xoopsModuleConfig['recordedit_timelimit'])
                Severity: Minor
                Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 hr to fix

                  Method getPostsByLimit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function &getPostsByLimit($criteria = null, $limit = 1, $start = 0, $join = null)
                      {
                          $ret = array();
                          $sql = 'SELECT p.*, t.* '
                                 . ' FROM '
                  Severity: Minor
                  Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 hr to fix

                    Method deleteAttachment has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function deleteAttachment($attach_array = null)
                        {
                            global $xoopsModuleConfig;
                    
                            $attach_old = $this->getAttachment();
                    Severity: Minor
                    Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 hr to fix

                      Method delete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function delete(XoopsObject $post, $isDeleteOne = true, $force = false)
                          {
                              if (!is_object($post) || $post->getVar('post_id') == 0) {
                                  return false;
                              }
                      Severity: Minor
                      Found in extras/newbb_4x/trunk_4_00/class/post.php - About 1 hr to fix

                        Function setPostEdit has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function setPostEdit($poster_name = '')
                            {
                                global $xoopsModuleConfig, $xoopsUser;
                        
                                if (empty($xoopsModuleConfig['recordedit_timelimit'])
                        Severity: Minor
                        Found in extras/newbb_4x/trunk_4_00/class/post.php - About 55 mins to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Function displayPostEdit has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function displayPostEdit()
                            {
                                global $myts, $xoopsModuleConfig;
                        
                                if (empty($xoopsModuleConfig['recordedit_timelimit'])) {
                        Severity: Minor
                        Found in extras/newbb_4x/trunk_4_00/class/post.php - About 45 mins to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Consider simplifying this complex logical expression.
                        Open

                                if ($isadmin || $this->checkIdentity()) {
                                    $post_text       = $this->getVar('post_text');
                                    $post_attachment = $this->displayAttachment();
                                } elseif ($xoopsModuleConfig['enable_karma'] && $this->getVar('post_karma') > $user_karma) {
                                    $post_text       = "<div class='karma'>" . sprintf(_MD_KARMA_REQUIREMENT, $user_karma, $this->getVar('post_karma')) . '</div>';
                        Severity: Major
                        Found in extras/newbb_4x/trunk_4_00/class/post.php - About 40 mins to fix

                          Function getPostsByLimit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function &getPostsByLimit($criteria = null, $limit = 1, $start = 0, $join = null)
                              {
                                  $ret = array();
                                  $sql = 'SELECT p.*, t.* '
                                         . ' FROM '
                          Severity: Minor
                          Found in extras/newbb_4x/trunk_4_00/class/post.php - About 35 mins to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Avoid too many return statements within this method.
                          Open

                                          return false;
                          Severity: Major
                          Found in extras/newbb_4x/trunk_4_00/class/post.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return false;
                            Severity: Major
                            Found in extras/newbb_4x/trunk_4_00/class/post.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return $post->getVar('post_id');
                              Severity: Major
                              Found in extras/newbb_4x/trunk_4_00/class/post.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return false;
                                Severity: Major
                                Found in extras/newbb_4x/trunk_4_00/class/post.php - About 30 mins to fix

                                  The method showPost() has an NPath complexity of 443232. The configured NPath complexity threshold is 200.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  The method insert() has an NPath complexity of 1632. The configured NPath complexity threshold is 200.
                                  Open

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  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 method approve() has an NPath complexity of 1536. The configured NPath complexity threshold is 200.
                                  Open

                                      public function approve(&$post, $force = false)
                                      {
                                          if (empty($post)) {
                                              return false;
                                          }

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  The method _delete() has an NPath complexity of 9639. The configured NPath complexity threshold is 200.
                                  Open

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

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

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CyclomaticComplexity

                                  Since: 0.1

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

                                  Example

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

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

                                  The method getPostBody() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CyclomaticComplexity

                                  Since: 0.1

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

                                  Example

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

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

                                  The method showPost() has a Cyclomatic Complexity of 32. The configured cyclomatic complexity threshold is 10.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CyclomaticComplexity

                                  Since: 0.1

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

                                  Example

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

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

                                  The method _delete() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10.
                                  Open

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  CyclomaticComplexity

                                  Since: 0.1

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

                                  Example

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

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

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

                                      public function approve(&$post, $force = false)
                                      {
                                          if (empty($post)) {
                                              return false;
                                          }

                                  CyclomaticComplexity

                                  Since: 0.1

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

                                  Example

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

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

                                  The method insert() has a Cyclomatic Complexity of 20. The configured cyclomatic complexity threshold is 10.
                                  Open

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

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

                                                        || !isset($viewtopic_users[$uid]))

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

                                          unset($eachposter);

                                  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

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

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  ErrorControlOperator

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

                                  Example

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

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

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

                                      public function displayAttachment($asSource = false)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  ErrorControlOperator

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

                                  Example

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

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

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

                                      public function getAttachment()
                                      {
                                          if (count($this->attachment_array)) {
                                              return $this->attachment_array;
                                          }

                                  ErrorControlOperator

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

                                  Example

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

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

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

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  ErrorControlOperator

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

                                  Example

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

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

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

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  ErrorControlOperator

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

                                  Example

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

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

                                  Missing class import via use statement (line '852', column '33').
                                  Open

                                                  $criteria = new CriteriaCompo(new Criteria('topic_id', $post->getVar('topic_id')));

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

                                          $crit_expire = new CriteriaCompo(new Criteria('approved', 0, '<='));

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                                  $criteria->add(new Criteria('approved', 1));

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function delete(XoopsObject $post, $isDeleteOne = true, $force = false)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

                                  Missing class import via use statement (line '852', column '51').
                                  Open

                                                  $criteria = new CriteriaCompo(new Criteria('topic_id', $post->getVar('topic_id')));

                                  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 '1091', column '28').
                                  Open

                                          $crit_expire = new CriteriaCompo(new Criteria('approved', 0, '<='));

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

                                  Missing class import via use statement (line '1093', column '31').
                                  Open

                                          $crit_expire->add(new Criteria('post_time', time() - (int)$expire, '<'));

                                  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 '936', column '63').
                                  Open

                                                                  $optionHandler->deleteAll(new Criteria('poll_id', $poll_id, '='));

                                  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 '934', column '71').
                                  Open

                                                              if (false !== $pollHandler->deleteAll(new Criteria('poll_id', $poll_id, '='))) {

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

                                  Missing class import via use statement (line '938', column '60').
                                  Open

                                                                  $logHandler->deleteAll(new Criteria('poll_id', $poll_id, '='));

                                  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 '863', column '27').
                                  Open

                                              $mytree = new XoopsTree($this->db->prefix('bb_posts'), 'post_id', 'pid');

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

                                                  $criteria->add(new Criteria('pid', 0, '>'));

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function approve(&$post, $force = false)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                          $this->deleteAll(new Criteria('post_time', 0), true, true);

                                  MissingImport

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function delete(XoopsObject $post, $isDeleteOne = true, $force = false)

                                  BooleanArgumentFlag

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                                  } else {
                                                      $icon_filetype = XOOPS_URL . '/' . $mime_path . '/unknown.gif';
                                                  }

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

                                              } else {
                                                  $edit_user = $xoopsUser->getVar('uname');
                                              }

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

                                          } else {
                                              $attachment_save = '';
                                          }

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

                                          } else {
                                              $attachment_save = null;
                                          }

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function saveAttachment()
                                      {
                                          if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
                                              $attachment_save = base64_encode(serialize($this->attachment_array));
                                          } else {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $this->attachment_array = @unserialize(base64_decode($attachment));
                                          }

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

                                          } else {
                                              $attachment_save = '';
                                          }

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

                                                  } else {
                                                      $post_attachment .= '<a href="'
                                                                          . XOOPS_URL
                                                                          . '/modules/'
                                                                          . $xoopsModule->getVar('dirname', 'n')

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $post['author'] = $this->getVar('poster_name') ?: $xoopsConfig['anonymous'];
                                          }

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

                                          } else {
                                              $post['text'] = $post_text . '<br>' . $this->displayAttachment();
                                          }

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

                                          } else {
                                              static $user_ip;
                                              if (!isset($user_ip)) {
                                                  $user_ip = newbb_getIP();
                                              }

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

                                              } else {
                                                  $post['author'] = $eachposter->getVar('uname');
                                              }

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

                                          } else {
                                              $thread_buttons['edit']['image'] = newbb_displayImage('p_edit', _EDIT);
                                              $thread_buttons['edit']['link']  = "edit.php?{$page_query}";
                                              $thread_buttons['edit']['name']  = _EDIT;
                                  
                                  

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

                                          } else {
                                              require_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
                                              $mytree = new XoopsTree($this->db->prefix('bb_posts'), 'post_id', 'pid');
                                              $arr    = $mytree->getAllChild($post->getVar('post_id'));
                                              for ($i = 0, $iMax = count($arr); $i < $iMax; ++$i) {

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

                                          } else {
                                              if ($post->isTopic()) {
                                                  if ($post->getVar('subject') != $topic_obj->getVar('topic_title')) {
                                                      $topic_obj->setVar('topic_title', $post->getVar('subject', 'n'));
                                                  }

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

                                          } else {
                                              $post->unsetNew();
                                          }

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $post_no = $start + $post_NO;
                                          }

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

                                          } else {
                                              $name   = ($post_name = $this->getVar('poster_name')) ? $post_name : $name_anonymous;
                                              $poster = array(
                                                  'poster_uid' => 0,
                                                  'name'       => $name,

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          else:
                                              // for 4.0+
                                              /* */
                                              $sql = 'DELETE '
                                                     . $this->db->prefix('bb_posts_text')

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function cleanOrphan()
                                      {
                                          global $xoopsDB;
                                          $this->deleteAll(new Criteria('post_time', 0), true, true);
                                          parent::cleanOrphan($this->db->prefix('bb_topics'), 'topic_id');

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $post_text       = $this->getVar('post_text');
                                              $post_attachment = $this->displayAttachment();
                                          }

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

                                          } else {
                                              $sql = sprintf('DELETE FROM %s WHERE post_id = %u', $this->db->prefix('bb_posts'), $post->getVar('post_id'));
                                              if (!$result = $this->db->queryF($sql)) {
                                                  $post->setErrors('delte post error: ' . $sql);
                                  
                                  

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

                                          } else {
                                              $post_image = '<a name="' . $post_id . '"><img src="' . XOOPS_URL . '/images/icons/posticon.gif" alt="" /></a>';
                                          }

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function insert(XoopsObject $post, $force = true)
                                      {
                                          global $xoopsUser;
                                  
                                          // Set the post time

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $topic_obj->setVar('topic_replies', $topic_obj->getVar('topic_replies') + 1);
                                          }

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                          } else {
                                              $sql = 'UPDATE ' . $this->db->prefix('bb_topics') . ' t
                                                              LEFT JOIN ' . $this->db->prefix('bb_posts') . ' p ON p.topic_id = t.topic_id
                                                              SET t.topic_last_post_id = p.post_id
                                                              WHERE t.topic_last_post_id = ' . $post->getVar('post_id') . '

                                  ElseExpression

                                  Since: 1.4.0

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

                                  Example

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

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

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

                                      public function get($id)
                                      {
                                          $id   = (int)$id;
                                          $post = null;
                                          $sql  = 'SELECT p.*, t.* FROM '

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                      public function _delete(&$post, $force = false)
                                      {
                                          global $xoopsModule;
                                  
                                          if (!is_object($post) || $post->getVar('post_id') == 0) {

                                  IfStatementAssignment

                                  Since: 2.7.0

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

                                  Example

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

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

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

                                                  } else {
                                                      if ($topic_obj->getVar('approved') > 0) {
                                                          xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'thread', $post->getVar('topic_id'));
                                                      }
                                                      $poll_id = $topic_obj->getVar('poll_id');

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

                                                      $isDisplayed = true;

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

                                          if (!$result = $GLOBALS['xoopsDB']->queryF($sql)) {

                                  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 parameters such as '$poster_name'.
                                  Open

                                      public function setPostEdit($poster_name = '')

                                  UnusedFormalParameter

                                  Since: 0.2

                                  Avoid passing parameters to methods or constructors and then not using those parameters.

                                  Example

                                  class Foo
                                  {
                                      private function bar($howdy)
                                      {
                                          // $howdy is not used
                                      }
                                  }

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

                                  Avoid unused parameters such as '$asSource'.
                                  Open

                                      public function displayAttachment($asSource = false)

                                  UnusedFormalParameter

                                  Since: 0.2

                                  Avoid passing parameters to methods or constructors and then not using those parameters.

                                  Example

                                  class Foo
                                  {
                                      private function bar($howdy)
                                      {
                                          // $howdy is not used
                                      }
                                  }

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

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

                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  UnusedLocalVariable

                                  Since: 0.2

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

                                  Example

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

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

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

                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;

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

                                          global $forumUrl, $forumImage;

                                  UnusedLocalVariable

                                  Since: 0.2

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

                                  Example

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

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

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

                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;

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

                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;

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

                                          global $forumUrl, $forumImage;

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

                                                        || !isset($viewtopic_users[$uid]))

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

                                              if (!$result = $this->db->queryF($sql)) {

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

                                          unset($eachposter);

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

                                          global $xoopsUser;

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

                                          $post_id     = $post->getVar('post_id');

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

                                                  $res = $memberHandler->insertUser($poster, true);

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

                                                      $topiccount_toupdate = 1;

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

                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

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

                                          if (!$result = $this->db->queryF($sql)) {

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

                                                  if (!$result = $topicHandler->insert($topic_obj, $force)) {

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

                                                      $res = $memberHandler->insertUser($poster, true);

                                  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

                                  TODO found
                                  Open

                                       * TODO: combining viewtopic.php

                                  TODO found
                                  Open

                                      // TODO: cleaning up and merge with post hanldings in viewpost.php

                                  TODO found
                                  Open

                                       * TODO: refactor

                                  TODO found
                                  Open

                                      // attachment functions    TODO: there should be a file/attachment management class

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

                                      public function __construct()
                                      {
                                          //$this->ArtObject("bb_posts");
                                          $this->initVar('post_id', XOBJ_DTYPE_INT);
                                          $this->initVar('topic_id', XOBJ_DTYPE_INT, 0, true);
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 days to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 32..57

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($post->isNew()) {
                                              if (!$topic_id = $post->getVar('topic_id')) {
                                                  $topic_obj->setVar('topic_title', $post->getVar('subject', 'n'));
                                                  $topic_obj->setVar('topic_poster', $post->getVar('uid'));
                                                  $topic_obj->setVar('forum_id', $post->getVar('forum_id'));
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 days to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 762..832

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 415.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($post->getVar('approved') > 0 && empty($force)) {
                                              $sql = 'UPDATE ' . $this->db->prefix('bb_posts') . ' SET approved = -1 WHERE post_id = ' . $post->getVar('post_id');
                                              if (!$result = $this->db->queryF($sql)) {
                                              }
                                              /* delete pending post directly */
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 7 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 888..908

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($postcount_toupdate > 0) {
                                  
                                              // Update user stats
                                              if ($post->getVar('uid') > 0) {
                                                  $memberHandler = xoops_getHandler('member');
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 5 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 963..979

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($GLOBALS['xoopsModuleConfig']['enable_permcheck']) {
                                              /** @var NewbbTopicHandler $topicHandler */
                                              $topicHandler = \XoopsModules\Newbb\Helper::getInstance()->getHandler('Topic');
                                              $topic_status = $topic_obj->getVar('topic_status');
                                              if ($topicHandler->getPermission($forum_id, $topic_status, 'edit')) {
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 5 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 499..543

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 5 hrs to fix
                                  extras/newbb_4x/irmtfan/class/post.php on lines 172..193

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      public function &getByLimit($topic_id, $limit, $approved = 1)
                                      {
                                          $sql    = 'SELECT p.*, t.*, tp.topic_status FROM '
                                                    . $this->db->prefix('bb_posts')
                                                    . ' p LEFT JOIN '
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 4 hrs to fix
                                  extras/newbb_4x/irmtfan/class/post.php on lines 709..724

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                                          if (($poll_moduleHandler instanceof XoopsModuleHandler) && $poll_moduleHandler->isactive()) {
                                                              $pollHandler = xoops_getModuleHandler('poll', 'xoopspoll');
                                                              if (false !== $pollHandler->deleteAll(new Criteria('poll_id', $poll_id, '='))) {
                                                                  $optionHandler = xoops_getModuleHandler('option', 'xoopspoll');
                                                                  $optionHandler->deleteAll(new Criteria('poll_id', $poll_id, '='));
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 3 hrs to fix
                                  extras/newbb_4x/irmtfan/class/post.php on lines 1040..1066

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                              if ($topicHandler->getPermission($forum_id, $topic_status, 'reply')) {
                                                  $thread_buttons['reply']['image'] = newbb_displayImage('p_reply', _MD_REPLY);
                                                  $thread_buttons['reply']['link']  = "reply.php?{$page_query}";
                                                  $thread_buttons['reply']['name']  = _MD_REPLY;
                                  
                                  
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 3 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 522..530

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                                  if (in_array(strtolower($file_extension), $image_extensions) && $xoopsModuleConfig['media_allowed']) {
                                                      $post_attachment .= '<br><img src="'
                                                                          . $icon_filetype
                                                                          . '" alt="'
                                                                          . $filetype
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 211..238

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if (version_compare(mysqli_get_server_info($xoopsDB->conn), '4.1.0', 'ge')):
                                              $sql = 'DELETE FROM ' . $this->db->prefix('bb_posts_text') . " WHERE (post_id NOT IN ( SELECT DISTINCT post_id FROM {$this->table}) )";
                                          else:
                                              // for 4.0+
                                              /* */
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 1045..1057

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                              if ($post->isTopic()) {
                                                  if ($post->getVar('subject') != $topic_obj->getVar('topic_title')) {
                                                      $topic_obj->setVar('topic_title', $post->getVar('subject', 'n'));
                                                  }
                                                  if ($post->getVar('approved') != $topic_obj->getVar('approved')) {
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 805..817

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 124.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($post->getVar('uid') > 0) {
                                              $memberHandler = xoops_getHandler('member');
                                              $poster        = $memberHandler->getUser($post->getVar('uid'));
                                              if (is_object($poster) && $post->getVar('uid') == $poster->getVar('uid')) {
                                                  $poster->setVar('posts', $poster->getVar('posts') + 1);
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 hrs to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 707..715

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 124.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      public function get($id)
                                      {
                                          $id   = (int)$id;
                                          $post = null;
                                          $sql  = 'SELECT p.*, t.* FROM '
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 2 hrs to fix
                                  extras/newbb_4x/irmtfan/class/post.php on lines 690..701

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                              if ($topicHandler->getPermission($forum_id, $topic_status, 'delete')) {
                                                  $delete_ok = ($isadmin || ($this->checkIdentity() && $this->checkTimelimit('delete_timelimit')));
                                  
                                                  if ($delete_ok) {
                                                      $thread_buttons['delete']['image'] = newbb_displayImage('p_delete', _DELETE);
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 3 other locations - About 1 hr to fix
                                  extras/newbb_4x/trunk_4_00/class/post.php on lines 501..509
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 503..511
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 513..521

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 110.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                              if ($topicHandler->getPermission($forum_id, $topic_status, 'edit')) {
                                                  $edit_ok = ($isadmin || ($this->checkIdentity() && $this->checkTimelimit('edit_timelimit')));
                                  
                                                  if ($edit_ok) {
                                                      $thread_buttons['edit']['image'] = newbb_displayImage('p_edit', _EDIT);
                                  Severity: Major
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 3 other locations - About 1 hr to fix
                                  extras/newbb_4x/trunk_4_00/class/post.php on lines 511..519
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 503..511
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 513..521

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 110.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                          if ($post->isTopic()) {
                                              /** @var NewbbTopicHandler $topicHandler */
                                              $topicHandler = \XoopsModules\Newbb\Helper::getInstance()->getHandler('Topic');
                                              $topic_obj    = $topicHandler->get($post->getVar('topic_id'));
                                              if ($topic_obj instanceof Topic) {
                                  Severity: Minor
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 30 mins to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 910..959

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

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                                  if (file_exists(XOOPS_ROOT_PATH . '/' . $mime_path . '/' . $filetype . '.gif')) {
                                                      $icon_filetype = XOOPS_URL . '/' . $mime_path . '/' . $filetype . '.gif';
                                                  } else {
                                                      $icon_filetype = XOOPS_URL . '/' . $mime_path . '/unknown.gif';
                                                  }
                                  Severity: Minor
                                  Found in extras/newbb_4x/trunk_4_00/class/post.php and 1 other location - About 30 mins to fix
                                  extras/newbb_5x/trunk_5_00/class/Post.php on lines 204..208

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

                                  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

                                  Each class must be in a namespace of at least one level (a top-level vendor name)
                                  Open

                                  class Post extends XoopsObject

                                  Each class must be in a namespace of at least one level (a top-level vendor name)
                                  Open

                                  class NewbbPostHandler extends XoopsPersistableObjectHandler

                                  The parameter $name_display is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The parameter $poster_name is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The property $attachment_array is not named in camelCase.
                                  Open

                                  class Post extends XoopsObject
                                  {
                                      public $attachment_array = array();
                                  
                                      /**

                                  CamelCasePropertyName

                                  Since: 0.2

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

                                  Example

                                  class ClassName {
                                      protected $property_name;
                                  }

                                  Source

                                  The parameter $num_download is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The parameter $attach_key is not named in camelCase.
                                  Open

                                      public function incrementDownload($attach_key)
                                      {
                                          if (!$attach_key) {
                                              return false;
                                          }

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The parameter $name_saved is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The parameter $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The parameter $action_tag is not named in camelCase.
                                  Open

                                      public function checkTimelimit($action_tag = 'edit_timelimit')
                                      {
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.config.php';
                                          $newbb_config = newbb_loadConfig();
                                          if (empty($newbb_config['edit_timelimit'])) {

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

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

                                      public function get($id)

                                  ShortVariable

                                  Since: 0.2

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

                                  Example

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

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

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

                                      public function __construct(XoopsDatabase $db)

                                  ShortVariable

                                  Since: 0.2

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

                                  Example

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

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

                                  The parameter $topic_id is not named in camelCase.
                                  Open

                                      public function &getByLimit($topic_id, $limit, $approved = 1)
                                      {
                                          $sql    = 'SELECT p.*, t.*, tp.topic_status FROM '
                                                    . $this->db->prefix('bb_posts')
                                                    . ' p LEFT JOIN '

                                  CamelCaseParameterName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  Each class must be in a file by itself
                                  Open

                                  class NewbbPostHandler extends XoopsPersistableObjectHandler

                                  Blank line found at start of control structure
                                  Open

                                          if ($postcount_toupdate > 0) {

                                  Method name "_delete" should not be prefixed with an underscore to indicate visibility
                                  Open

                                      public function _delete(&$post, $force = false)

                                  Only one argument is allowed per line in a multi-line function call
                                  Open

                                                                                   $this->getVar('doxcode'), $this->getVar('doimage'), $this->getVar('dobr'));

                                  Only one argument is allowed per line in a multi-line function call
                                  Open

                                          $post_text          = newbb_displayTarea($this->vars['post_text']['value'], $this->getVar('dohtml'), $this->getVar('dosmiley'),

                                  Only one argument is allowed per line in a multi-line function call
                                  Open

                                          $post_text          = newbb_displayTarea($this->vars['post_text']['value'], $this->getVar('dohtml'), $this->getVar('dosmiley'),

                                  Only one argument is allowed per line in a multi-line function call
                                  Open

                                                                                   $this->getVar('doxcode'), $this->getVar('doimage'), $this->getVar('dobr'));

                                  Line exceeds 120 characters; contains 129 characters
                                  Open

                                                  $file_size = @filesize(XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['dir_attachments'] . '/' . $att['name_saved']);

                                  Line exceeds 120 characters; contains 127 characters
                                  Open

                                              include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/include/functions.image.php';

                                  Line exceeds 120 characters; contains 161 characters
                                  Open

                                          $post_edit['edit_user'] = $edit_user; // The proper way is to store uid instead of name. However, to save queries when displaying, the current way is ok.

                                  Line exceeds 120 characters; contains 127 characters
                                  Open

                                                  $post_edit .= _MD_EDITEDBY . ' ' . $edit_user . ' ' . _MD_ON . ' ' . formatTimestamp((int)$edit_time) . '<br>';

                                  Line exceeds 120 characters; contains 124 characters
                                  Open

                                              $post_image = '<a name="' . $post_id . '"><img src="' . XOOPS_URL . '/images/icons/posticon.gif" alt="" /></a>';

                                  Line exceeds 120 characters; contains 147 characters
                                  Open

                                              $sql = 'DELETE FROM ' . $this->db->prefix('bb_posts_text') . " WHERE (post_id NOT IN ( SELECT DISTINCT post_id FROM {$this->table}) )";

                                  Line exceeds 120 characters; contains 126 characters
                                  Open

                                              $sql = sprintf('DELETE FROM %s WHERE post_id = %u', $this->db->prefix('bb_posts_text'), $post->getVar('post_id'));

                                  Line exceeds 120 characters; contains 143 characters
                                  Open

                                              $sql = 'UPDATE ' . $this->db->prefix('bb_posts') . ' SET pid = ' . $post->getVar('pid') . ' WHERE pid=' . $post->getVar('post_id');

                                  Line exceeds 120 characters; contains 121 characters
                                  Open

                                              $sql = sprintf('DELETE FROM %s WHERE post_id = %u', $this->db->prefix('bb_posts'), $post->getVar('post_id'));

                                  Line exceeds 120 characters; contains 131 characters
                                  Open

                                              $post_image = '<a name="' . $post_id . '"><img src="' . XOOPS_URL . '/images/subject/' . $posticon . '" alt="" /></a>';

                                  Line exceeds 120 characters; contains 122 characters
                                  Open

                                                          xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'thread', $post->getVar('topic_id'));

                                  Line exceeds 120 characters; contains 135 characters
                                  Open

                                          $post_text          = newbb_displayTarea($this->vars['post_text']['value'], $this->getVar('dohtml'), $this->getVar('dosmiley'),

                                  Line exceeds 120 characters; contains 124 characters
                                  Open

                                                                                   $this->getVar('doxcode'), $this->getVar('doimage'), $this->getVar('dobr'));

                                  Line exceeds 120 characters; contains 154 characters
                                  Open

                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  Line exceeds 120 characters; contains 128 characters
                                  Open

                                              $sql = 'UPDATE ' . $this->db->prefix('bb_posts') . ' SET approved = -1 WHERE post_id = ' . $post->getVar('post_id');

                                  Line exceeds 120 characters; contains 128 characters
                                  Open

                                                  $sql = sprintf('DELETE FROM %s WHERE topic_id = %u', $this->db->prefix('bb_topics'), $post->getVar('topic_id'));

                                  Line exceeds 120 characters; contains 139 characters
                                  Open

                                              $post_text       = "<div class='karma'>" . sprintf(_MD_KARMA_REQUIREMENT, $user_karma, $this->getVar('post_karma')) . '</div>';

                                  Line exceeds 120 characters; contains 144 characters
                                  Open

                                                                      AND p.post_id = (SELECT MAX(post_id) FROM ' . $this->db->prefix('bb_posts') . ' WHERE topic_id=t.topic_id)';

                                  Line exceeds 120 characters; contains 130 characters
                                  Open

                                                  $sql = sprintf('DELETE FROM %s WHERE topic_id = %u', $this->db->prefix('bb_votedata'), $post->getVar('topic_id'));

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

                                                                                   $this->getVar('doxcode'), $this->getVar('doimage'), $this->getVar('dobr'));

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

                                          $post_text          = newbb_displayTarea($this->vars['post_text']['value'], $this->getVar('dohtml'), $this->getVar('dosmiley'),

                                  Multi-line function call not indented correctly; expected 8 spaces but found 49
                                  Open

                                                                                   $this->getVar('doxcode'), $this->getVar('doimage'), $this->getVar('dobr'));

                                  Expected 1 space after ELSE keyword; 0 found
                                  Open

                                          else:

                                  Expected 1 space after closing parenthesis; found 0
                                  Open

                                          if (version_compare(mysqli_get_server_info($xoopsDB->conn), '4.1.0', 'ge')):

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $mime_path is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_old is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_old is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $image_extensions is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_extension is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $mime_path is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_size is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_size is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_key is not named in camelCase.
                                  Open

                                      public function incrementDownload($attach_key)
                                      {
                                          if (!$attach_key) {
                                              return false;
                                          }

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function saveAttachment()
                                      {
                                          if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
                                              $attachment_save = base64_encode(serialize($this->attachment_array));
                                          } else {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_display is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_user is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $num_download is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_extension is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_old is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $mime_path is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_size is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $icon_filetype is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_saved is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $icon_filetype is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $icon_filetype is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function saveAttachment()
                                      {
                                          if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
                                              $attachment_save = base64_encode(serialize($this->attachment_array));
                                          } else {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $num_download is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_display is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_saved is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $icon_filetype is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $mime_path is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_key is not named in camelCase.
                                  Open

                                      public function incrementDownload($attach_key)
                                      {
                                          if (!$attach_key) {
                                              return false;
                                          }

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_key is not named in camelCase.
                                  Open

                                      public function incrementDownload($attach_key)
                                      {
                                          if (!$attach_key) {
                                              return false;
                                          }

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_user is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function saveAttachment()
                                      {
                                          if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
                                              $attachment_save = base64_encode(serialize($this->attachment_array));
                                          } else {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function saveAttachment()
                                      {
                                          if (is_array($this->attachment_array) && count($this->attachment_array) > 0) {
                                              $attachment_save = base64_encode(serialize($this->attachment_array));
                                          } else {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_size is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_user is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_array is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_saved is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_size is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $image_extensions is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_old is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attach_old is not named in camelCase.
                                  Open

                                      public function deleteAttachment($attach_array = null)
                                      {
                                          global $xoopsModuleConfig;
                                  
                                          $attach_old = $this->getAttachment();

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $attachment_save is not named in camelCase.
                                  Open

                                      public function setAttachment($name_saved = '', $name_display = '', $mimetype = '', $num_download = 0)
                                      {
                                          static $counter = 0;
                                          $this->attachment_array = $this->getAttachment();
                                          if ($name_saved) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $file_extension is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function displayAttachment($asSource = false)
                                      {
                                          global $xoopsModule, $xoopsModuleConfig;
                                  
                                          $post_attachment = '';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function setPostEdit($poster_name = '')
                                      {
                                          global $xoopsModuleConfig, $xoopsUser;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_anonymous is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_vars is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_NO is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_NO is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_anonymous is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_image is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_image is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_ip is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_user is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_status is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_array is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_users is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $total_posts is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_ok is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $forum_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_status is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_status is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $forum_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_no is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_karma is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_no is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_action is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_time is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_array is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edit is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_name is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $delete_ok is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_users is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_ok is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $name_anonymous is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $forum_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_NO is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $action_tag is not named in camelCase.
                                  Open

                                      public function checkTimelimit($action_tag = 'edit_timelimit')
                                      {
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.config.php';
                                          $newbb_config = newbb_loadConfig();
                                          if (empty($newbb_config['edit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_ok is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_vars is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_karma is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $newbb_config is not named in camelCase.
                                  Open

                                      public function checkTimelimit($action_tag = 'edit_timelimit')
                                      {
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.config.php';
                                          $newbb_config = newbb_loadConfig();
                                          if (empty($newbb_config['edit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_array is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $query_array is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_no is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_users is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_status is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $delete_ok is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_action is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_user is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_karma is not named in camelCase.
                                  Open

                                      public function &getPostBody()
                                      {
                                          global $xoopsConfig, $xoopsModuleConfig, $xoopsUser, $myts;
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.user.php';
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.render.php';

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_users is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_posters is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $forum_obj is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_karma is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_image is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_ip is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_edits is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_name is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $newbb_config is not named in camelCase.
                                  Open

                                      public function checkTimelimit($action_tag = 'edit_timelimit')
                                      {
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.config.php';
                                          $newbb_config = newbb_loadConfig();
                                          if (empty($newbb_config['edit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_ok is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $forum_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $viewtopic_posters is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_attachment is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $post_text is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $page_query is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $edit_time is not named in camelCase.
                                  Open

                                      public function displayPostEdit()
                                      {
                                          global $myts, $xoopsModuleConfig;
                                  
                                          if (empty($xoopsModuleConfig['recordedit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $newbb_config is not named in camelCase.
                                  Open

                                      public function checkTimelimit($action_tag = 'edit_timelimit')
                                      {
                                          require_once XOOPS_ROOT_PATH . '/modules/newbb/include/functions.config.php';
                                          $newbb_config = newbb_loadConfig();
                                          if (empty($newbb_config['edit_timelimit'])) {

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_obj is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_karma is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_obj is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $topic_status is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $user_ip is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

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

                                  Source

                                  The variable $thread_buttons is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

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

                                  Example

                                  class ClassName {
                                      public function doSomething() {
                                          $data_module = new DataModule();
                                      }
                                  }

                                  Source

                                  The variable $user_ok is not named in camelCase.
                                  Open

                                      public function checkIdentity($uid = -1)
                                      {
                                          global $xoopsUser;
                                  
                                          $uid = ($uid > -1) ? $uid : (is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0);

                                  CamelCaseVariableName

                                  Since: 0.2

                                  It is considered best practice to use the camelCase notation to name variables.

                                  Example

                                  class ClassName {
                                      public function doSomething() {
                                          $data_module = new DataModule();
                                      }
                                  }

                                  Source

                                  The variable $post_id is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;

                                  CamelCaseVariableName

                                  Since: 0.2

                                  It is considered best practice to use the camelCase notation to name variables.

                                  Example

                                  class ClassName {
                                      public function doSomething() {
                                          $data_module = new DataModule();
                                      }
                                  }

                                  Source

                                  The variable $total_posts is not named in camelCase.
                                  Open

                                      public function showPost($isadmin)
                                      {
                                          global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts;
                                          global $forumUrl, $forumImage;
                                          global $viewtopic_users, $viewtopic_posters, $forum_obj, $topic_obj, $online, $user_karma, $viewmode, $order, $start, $tot