mambax7/alumni-26x

View on GitHub
class/alumni_tree.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method alumni_makeSelBox has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function alumni_makeSelBox($name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '')
Severity: Major
Found in class/alumni_tree.php - About 50 mins to fix

    Method alumni_makeSelBoxOptions has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
    Severity: Minor
    Found in class/alumni_tree.php - About 45 mins to fix

      Method alumni_makeArrayTreeOptions has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
      Severity: Minor
      Found in class/alumni_tree.php - About 35 mins to fix

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

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.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

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

            public function alumni_getAllChild($key, $ret = [])
            {
                if (isset($this->_tree[$key]['child'])) {
                    foreach ($this->_tree[$key]['child'] as $childkey) {
                        $ret[$childkey] = $this->_tree[$childkey]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php - About 25 mins to fix

        Cognitive Complexity

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

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

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

        Further reading

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

            public function alumni_makeSelBox($name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '')
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        BooleanArgumentFlag

        Since: 1.4.0

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

        Example

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

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

        Avoid using static access to class 'Xoops' in method 'alumni_makeSelBox'.
        Open

                $xoops = Xoops::getInstance();
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        StaticAccess

        Since: 1.4.0

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

        Example

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

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

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

                $xoops = Xoops::getInstance();
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        UnusedLocalVariable

        Since: 0.2

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

        Example

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

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

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

        class AlumniObjectTree extends XoopsObjectTree
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        The property $_myId is not named in camelCase.
        Open

        class AlumniObjectTree extends XoopsObjectTree
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        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 $prefix_orig is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseParameterName

        Since: 0.2

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

        Example

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

        Source

        The property $_tree is not named in camelCase.
        Open

        class AlumniObjectTree extends XoopsObjectTree
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        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 $prefix_curr is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseParameterName

        Since: 0.2

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

        Example

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

        Source

        The property $_parentId is not named in camelCase.
        Open

        class AlumniObjectTree extends XoopsObjectTree
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        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 property $_rootId is not named in camelCase.
        Open

        class AlumniObjectTree extends XoopsObjectTree
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        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 $prefix_orig is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseParameterName

        Since: 0.2

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

        Example

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

        Source

        The property $_objects is not named in camelCase.
        Open

        class AlumniObjectTree extends XoopsObjectTree
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        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 $prefix_curr is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseParameterName

        Since: 0.2

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

        Example

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

        Source

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

        <?php
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_makeSelBoxOptions" is not in camel caps format
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_makeArrayTreeOptions" is not in camel caps format
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Property name "$_objects" should not be prefixed with an underscore to indicate visibility
        Open

            private $_objects;
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_getFirstChild" is not in camel caps format
        Open

            public function alumni_getFirstChild($key)
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_getAllParent" is not in camel caps format
        Open

            public function alumni_getAllParent($key, $ret = [], $uplevel = 1)
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_makeArrayTree" is not in camel caps format
        Open

            public function alumni_makeArrayTree($fieldName, $prefix = '-', $key = 0)
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_getAllChild" is not in camel caps format
        Open

            public function alumni_getAllChild($key, $ret = [])
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_getByKey" is not in camel caps format
        Open

            public function alumni_getByKey($key)
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Property name "$_tree" should not be prefixed with an underscore to indicate visibility
        Open

            private $_tree = [];
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_makeSelBox" is not in camel caps format
        Open

            public function alumni_makeSelBox($name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '')
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Property name "$_rootId" should not be prefixed with an underscore to indicate visibility
        Open

            private $_rootId = null;
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Method name "AlumniObjectTree::alumni_getTree" is not in camel caps format
        Open

            public function alumni_getTree()
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Property name "$_parentId" should not be prefixed with an underscore to indicate visibility
        Open

            private $_parentId;
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Property name "$_myId" should not be prefixed with an underscore to indicate visibility
        Open

            private $_myId;
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

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

            private function _initialize()
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        Line exceeds 120 characters; contains 135 characters
        Open

            public function alumni_makeSelBox($name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '')
        Severity: Minor
        Found in class/alumni_tree.php by phpcodesniffer

        The variable $prefix_curr is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_orig is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_orig is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_curr is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_orig is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_curr is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_orig is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_curr is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_curr is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The variable $prefix_curr is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseVariableName

        Since: 0.2

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

        Example

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

        Source

        The method alumni_getTree is not named in camelCase.
        Open

            public function alumni_getTree()
            {
                return $this->_tree;
            }
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_makeSelBoxOptions is not named in camelCase.
        Open

            private function alumni_makeSelBoxOptions($fieldName, $selected, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    /* @var $object XoopsObject */
                    $object = $this->_tree[$key]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_getByKey is not named in camelCase.
        Open

            public function alumni_getByKey($key)
            {
                return $this->_tree[$key]['obj'];
            }
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_getFirstChild is not named in camelCase.
        Open

            public function alumni_getFirstChild($key)
            {
                $ret = [];
                if (isset($this->_tree[$key]['child'])) {
                    foreach ($this->_tree[$key]['child'] as $childkey) {
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_makeSelBox is not named in camelCase.
        Open

            public function alumni_makeSelBox($name, $fieldName, $prefix = '-', $selected = '', $addEmptyOption = false, $key = 0, $extra = '')
            {
                $xoops = Xoops::getInstance();
                $ret   = '<select name="' . $name . '" id="' . $name . '" ' . $extra . '>';
                if (false != $addEmptyOption) {
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_getAllChild is not named in camelCase.
        Open

            public function alumni_getAllChild($key, $ret = [])
            {
                if (isset($this->_tree[$key]['child'])) {
                    foreach ($this->_tree[$key]['child'] as $childkey) {
                        $ret[$childkey] = $this->_tree[$childkey]['obj'];
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_makeArrayTree is not named in camelCase.
        Open

            public function alumni_makeArrayTree($fieldName, $prefix = '-', $key = 0)
            {
                $ret = [];
                $this->alumni_makeArrayTreeOptions($fieldName, $key, $ret, $prefix);
        
        
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_getAllParent is not named in camelCase.
        Open

            public function alumni_getAllParent($key, $ret = [], $uplevel = 1)
            {
                if (isset($this->_tree[$key]['parent']) && isset($this->_tree[$this->_tree[$key]['parent']]['obj'])) {
                    $ret[$uplevel] = $this->_tree[$this->_tree[$key]['parent']]['obj'];
                    $parents       = $this->alumni_getAllParent($this->_tree[$key]['parent'], $ret, $uplevel + 1);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method alumni_makeArrayTreeOptions is not named in camelCase.
        Open

            public function alumni_makeArrayTreeOptions($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
            {
                if ($key > 0) {
                    $value       = $this->_tree[$key]['obj']->getVar($this->_myId);
                    $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method _initialize is not named in camelCase.
        Open

            private function _initialize()
            {
                /* @var $object XoopsObject */
                foreach ($this->_objects as $object) {
                    $key1                          = $object->getVar($this->_myId);
        Severity: Minor
        Found in class/alumni_tree.php by phpmd

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        There are no issues that match your filters.

        Category
        Status