qcubed/framework

View on GitHub
includes/base_controls/QSliderGen.class.php

Summary

Maintainability
F
3 days
Test Coverage

Method __set has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public function __set($strName, $mixValue) {
            switch ($strName) {
                case 'Animate':
                    $this->mixAnimate = $mixValue;
                    $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'animate', $mixValue);
Severity: Major
Found in includes/base_controls/QSliderGen.class.php - About 3 hrs to fix

    The class QSliderGen has 16 public methods. Consider refactoring QSliderGen to keep number of public methods under 10.
    Open

        class QSliderGen extends QPanel    {
            protected $strJavaScripts = __JQUERY_EFFECTS__;
            protected $strStyleSheets = __JQUERY_CSS__;
            /** @var mixed */
            protected $mixAnimate = null;

    TooManyPublicMethods

    Since: 0.1

    A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    Example

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

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

        class QSliderGen extends QPanel    {
            protected $strJavaScripts = __JQUERY_EFFECTS__;
            protected $strStyleSheets = __JQUERY_CSS__;
            /** @var mixed */
            protected $mixAnimate = null;

    Function __set has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
    Open

            public function __set($strName, $mixValue) {
                switch ($strName) {
                    case 'Animate':
                        $this->mixAnimate = $mixValue;
                        $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'animate', $mixValue);
    Severity: Minor
    Found in includes/base_controls/QSliderGen.class.php - About 2 hrs to fix

    Cognitive Complexity

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

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

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

    Further reading

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

            protected function MakeJqOptions() {
                $jqOptions = null;
                if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}
    Severity: Minor
    Found in includes/base_controls/QSliderGen.class.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

    Avoid too many return statements within this method.
    Open

                    case 'Values': return $this->arrValues;
    Severity: Major
    Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      case 'Orientation': return $this->strOrientation;
      Severity: Major
      Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        case 'Step': return $this->intStep;
        Severity: Major
        Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                  return parent::__get($strName); 
          Severity: Major
          Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            case 'Range': return $this->mixRange;
            Severity: Major
            Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              case 'Value': return $this->intValue;
              Severity: Major
              Found in includes/base_controls/QSliderGen.class.php - About 30 mins to fix

                The method MakeJqOptions() has an NPath complexity of 512. The configured NPath complexity threshold is 200.
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

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

                        public function __set($strName, $mixValue) {
                            switch ($strName) {
                                case 'Animate':
                                    $this->mixAnimate = $mixValue;
                                    $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'animate', $mixValue);

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

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

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

                        public function __get($strName) {
                            switch ($strName) {
                                case 'Animate': return $this->mixAnimate;
                                case 'Disabled': return $this->blnDisabled;
                                case 'Max': return $this->intMax;

                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

                Missing class import via use statement (line '493', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Min', 'The minimum value of the slider.', QType::Integer),

                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 '495', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Step', 'Determines the size or amount of each interval or step the slidertakes between the min and max. The full specified value range of theslider (max - min) should be evenly divisible by the step.', QType::Integer),

                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 '494', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Orientation', 'Determines whether the slider handles move horizontally (min on left,max on right) or vertically (min on bottom, max on top). Possiblevalues: \"horizontal\", \"vertical\".', QType::String),

                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 '496', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Value', 'Determines the value of the slider, if theres only one handle. Ifthere is more than one handle, determines the value of the firsthandle.', QType::Integer),

                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 '491', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Disabled', 'Disables the slider if set to true.', QType::Boolean),

                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 '492', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Max', 'The maximum value of the slider.', QType::Integer),

                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 '497', column '9').
                Open

                                new QModelConnectorParam (get_called_class(), 'Values', 'This option can be used to specify multiple handles. If the rangeoption is set to true, the length of values should be 2.', QType::ArrayType),

                MissingImport

                Since: 2.7.0

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

                Example

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

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

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

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'GetEndScript'.
                Open

                                QApplication::ExecuteControlCommand($strId, $strFunc, QJsPriority::High);

                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 assigning values to variables in if clauses and the like (line '179', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QType' in method '__set'.
                Open

                                        $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->strOrientation = QType::Cast($mixValue, QType::String);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'GetEndScript'.
                Open

                                QApplication::ExecuteControlCommand($strId, 'off', QJsPriority::High);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Disable'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "disable", QJsPriority::Low);

                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 assigning values to variables in if clauses and the like (line '176', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 '178', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

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

                            } else {
                                QApplication::ExecuteControlCommand($strId, $strFunc, $jqOptions, QJsPriority::High);
                            }

                ElseExpression

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Instance'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "instance", QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->intStep = QType::Cast($mixValue, QType::Integer);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Values1'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $index, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Value1'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "value", $value, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Values'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->intValue = QType::Cast($mixValue, QType::Integer);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Destroy'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "destroy", QJsPriority::Low);

                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 assigning values to variables in if clauses and the like (line '182', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'Value'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "value", QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Values2'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $index, $value, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->arrValues = QType::Cast($mixValue, QType::ArrayType);

                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 assigning values to variables in if clauses and the like (line '180', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'Enable'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "enable", QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Option2'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, $value, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->intMin = QType::Cast($mixValue, QType::Integer);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Values3'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $values, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QType' in method '__set'.
                Open

                                        $this->intMax = QType::Cast($mixValue, QType::Integer);

                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 assigning values to variables in if clauses and the like (line '184', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'GetEndScript'.
                Open

                                QApplication::ExecuteControlCommand($strId, $strFunc, $jqOptions, QJsPriority::High);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

                Avoid using static access to class 'QApplication' in method 'Option'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, QJsPriority::Low);

                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 assigning values to variables in if clauses and the like (line '181', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'Option1'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", QJsPriority::Low);

                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 assigning values to variables in if clauses and the like (line '183', column '17').
                Open

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

                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 using static access to class 'QApplication' in method 'Option3'.
                Open

                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $options, QJsPriority::Low);

                StaticAccess

                Since: 1.4.0

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

                Example

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

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

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

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}
                Severity: Major
                Found in includes/base_controls/QSliderGen.class.php and 1 other location - About 1 day to fix
                includes/base_controls/QSpinnerGen.class.php on lines 186..198

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

                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

                        public static function GetModelConnectorParams() {
                            return array_merge(parent::GetModelConnectorParams(), array(
                                new QModelConnectorParam (get_called_class(), 'Disabled', 'Disables the slider if set to true.', QType::Boolean),
                                new QModelConnectorParam (get_called_class(), 'Max', 'The maximum value of the slider.', QType::Integer),
                                new QModelConnectorParam (get_called_class(), 'Min', 'The minimum value of the slider.', QType::Integer),
                Severity: Major
                Found in includes/base_controls/QSliderGen.class.php and 1 other location - About 6 hrs to fix
                includes/base_controls/QDroppableGen.class.php on lines 456..466

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

                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

                        public function __get($strName) {
                            switch ($strName) {
                                case 'Animate': return $this->mixAnimate;
                                case 'Disabled': return $this->blnDisabled;
                                case 'Max': return $this->intMax;
                Severity: Major
                Found in includes/base_controls/QSliderGen.class.php and 3 other locations - About 2 hrs to fix
                includes/base_controls/QCheckBoxList.class.php on lines 303..328
                includes/base_controls/QSpinnerGen.class.php on lines 417..436
                includes/codegen/QReference.class.php on lines 98..126

                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

                The class QSlider_CreateEvent is not named in CamelCase.
                Open

                    class QSlider_CreateEvent extends QJqUiEvent {
                        const EventName = 'slidecreate';
                    }

                CamelCaseClassName

                Since: 0.2

                It is considered best practice to use the CamelCase notation to name classes.

                Example

                class class_name {
                }

                Source

                The class QSlider_ChangeEvent is not named in CamelCase.
                Open

                    class QSlider_ChangeEvent extends QJqUiEvent {
                        const EventName = 'slidechange';
                    }

                CamelCaseClassName

                Since: 0.2

                It is considered best practice to use the CamelCase notation to name classes.

                Example

                class class_name {
                }

                Source

                The class QSlider_SlideEvent is not named in CamelCase.
                Open

                    class QSlider_SlideEvent extends QJqUiEvent {
                        const EventName = 'slide';
                    }

                CamelCaseClassName

                Since: 0.2

                It is considered best practice to use the CamelCase notation to name classes.

                Example

                class class_name {
                }

                Source

                The class QSlider_StartEvent is not named in CamelCase.
                Open

                    class QSlider_StartEvent extends QJqUiEvent {
                        const EventName = 'slidestart';
                    }

                CamelCaseClassName

                Since: 0.2

                It is considered best practice to use the CamelCase notation to name classes.

                Example

                class class_name {
                }

                Source

                The class QSlider_StopEvent is not named in CamelCase.
                Open

                    class QSlider_StopEvent extends QJqUiEvent {
                        const EventName = 'slidestop';
                    }

                CamelCaseClassName

                Since: 0.2

                It is considered best practice to use the CamelCase notation to name classes.

                Example

                class class_name {
                }

                Source

                Constant EventName should be defined in uppercase
                Open

                        const EventName = 'slidestop';

                ConstantNamingConventions

                Since: 0.2

                Class/Interface constant names should always be defined in uppercase.

                Example

                class Foo {
                    const MY_NUM = 0; // ok
                    const myTest = ""; // fail
                }

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

                Constant EventName should be defined in uppercase
                Open

                        const EventName = 'slidestart';

                ConstantNamingConventions

                Since: 0.2

                Class/Interface constant names should always be defined in uppercase.

                Example

                class Foo {
                    const MY_NUM = 0; // ok
                    const myTest = ""; // fail
                }

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

                Constant EventName should be defined in uppercase
                Open

                        const EventName = 'slidechange';

                ConstantNamingConventions

                Since: 0.2

                Class/Interface constant names should always be defined in uppercase.

                Example

                class Foo {
                    const MY_NUM = 0; // ok
                    const myTest = ""; // fail
                }

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

                Constant EventName should be defined in uppercase
                Open

                        const EventName = 'slidecreate';

                ConstantNamingConventions

                Since: 0.2

                Class/Interface constant names should always be defined in uppercase.

                Example

                class Foo {
                    const MY_NUM = 0; // ok
                    const myTest = ""; // fail
                }

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

                Constant EventName should be defined in uppercase
                Open

                        const EventName = 'slide';

                ConstantNamingConventions

                Since: 0.2

                Class/Interface constant names should always be defined in uppercase.

                Example

                class Foo {
                    const MY_NUM = 0; // ok
                    const myTest = ""; // fail
                }

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

                The method Disable is not named in camelCase.
                Open

                        public function Disable() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "disable", QJsPriority::Low);
                        }

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

                        public function Option3($options) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $options, QJsPriority::Low);
                        }

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

                        public function Destroy() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "destroy", QJsPriority::Low);
                        }

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

                        public function GetEndScript() {
                            $strId = $this->GetJqControlId();
                            $jqOptions = $this->makeJqOptions();
                            $strFunc = $this->getJqSetupFunction();
                
                

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

                        protected function MakeJqOptions() {
                            $jqOptions = null;
                            if (!is_null($val = $this->Animate)) {$jqOptions['animate'] = $val;}
                            if (!is_null($val = $this->Disabled)) {$jqOptions['disabled'] = $val;}
                            if (!is_null($val = $this->Max)) {$jqOptions['max'] = $val;}

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

                        public function Values2($index, $value) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $index, $value, QJsPriority::Low);
                        }

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

                        public function Enable() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "enable", QJsPriority::Low);
                        }

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

                        public function GetJqSetupFunction() {
                            return 'slider';
                        }

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

                        public function Instance() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "instance", QJsPriority::Low);
                        }

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

                        public function Option2($optionName, $value) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, $value, QJsPriority::Low);
                        }

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

                        public function Values3($values) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $values, QJsPriority::Low);
                        }

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

                        public function Value() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "value", QJsPriority::Low);
                        }

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

                        public function Value1($value) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "value", $value, QJsPriority::Low);
                        }

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

                        public static function GetModelConnectorParams() {
                            return array_merge(parent::GetModelConnectorParams(), array(
                                new QModelConnectorParam (get_called_class(), 'Disabled', 'Disables the slider if set to true.', QType::Boolean),
                                new QModelConnectorParam (get_called_class(), 'Max', 'The maximum value of the slider.', QType::Integer),
                                new QModelConnectorParam (get_called_class(), 'Min', 'The minimum value of the slider.', QType::Integer),

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

                        public function Option($optionName) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, QJsPriority::Low);
                        }

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

                        public function Values1($index) {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", $index, QJsPriority::Low);
                        }

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

                        public function Option1() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", QJsPriority::Low);
                        }

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

                        public function Values() {
                            QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "values", QJsPriority::Low);
                        }

                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