qcubed/framework

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

Summary

Maintainability
F
5 days
Test Coverage

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

        public function __set($strName, $mixValue) {
            switch ($strName) {
                case 'AddClasses':
                    try {
                        $this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);
Severity: Major
Found in includes/base_controls/QDraggableGen.class.php - About 1 day to fix

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

            public function __set($strName, $mixValue) {
                switch ($strName) {
                    case 'AddClasses':
                        try {
                            $this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);
    Severity: Minor
    Found in includes/base_controls/QDraggableGen.class.php - About 7 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

    File QDraggableGen.class.php has 391 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php    
        /**
         * Triggered when the draggable is created.
         * 
         *     * event Type: Event 
    Severity: Minor
    Found in includes/base_controls/QDraggableGen.class.php - About 5 hrs to fix

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

              protected function MakeJqOptions() {
                  $jqOptions = null;
                  if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                  if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                  if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $val;}
      Severity: Minor
      Found in includes/base_controls/QDraggableGen.class.php - About 4 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

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

          abstract class QDraggableGen extends QControl    {
              protected $strJavaScripts = __JQUERY_EFFECTS__;
              protected $strStyleSheets = __JQUERY_CSS__;
              /** @var boolean */
              protected $blnAddClasses = null;

      The class QDraggableGen has 30 fields. Consider redesigning QDraggableGen to keep the number of fields under 15.
      Open

          abstract class QDraggableGen extends QControl    {
              protected $strJavaScripts = __JQUERY_EFFECTS__;
              protected $strStyleSheets = __JQUERY_CSS__;
              /** @var boolean */
              protected $blnAddClasses = null;

      TooManyFields

      Since: 0.1

      Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

      Example

      class Person {
         protected $one;
         private $two;
         private $three;
         [... many more fields ...]
      }

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

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

              public function __get($strName) {
                  switch ($strName) {
                      case 'AddClasses': return $this->blnAddClasses;
                      case 'AppendTo': return $this->mixAppendTo;
                      case 'Axis': return $this->strAxis;
      Severity: Minor
      Found in includes/base_controls/QDraggableGen.class.php - About 1 hr to fix

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

                protected function MakeJqOptions() {
                    $jqOptions = null;
                    if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                    if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                    if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $val;}
        Severity: Minor
        Found in includes/base_controls/QDraggableGen.class.php - About 1 hr to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

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

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

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

                                          Avoid too many return statements within this method.
                                          Open

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

                                            Avoid too many return statements within this method.
                                            Open

                                                            case 'Scroll': return $this->blnScroll;
                                            Severity: Major
                                            Found in includes/base_controls/QDraggableGen.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/QDraggableGen.class.php - About 30 mins to fix

                                                Avoid too many return statements within this method.
                                                Open

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

                                                  Avoid too many return statements within this method.
                                                  Open

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

                                                    Avoid too many return statements within this method.
                                                    Open

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

                                                      Avoid too many return statements within this method.
                                                      Open

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

                                                        Avoid too many return statements within this method.
                                                        Open

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

                                                          Avoid too many return statements within this method.
                                                          Open

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

                                                            The method __set() has 243 lines of code. Current threshold is set to 100. Avoid really long methods.
                                                            Open

                                                                    public function __set($strName, $mixValue) {
                                                                        switch ($strName) {
                                                                            case 'AddClasses':
                                                                                try {
                                                                                    $this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);

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

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 __get() has a Cyclomatic Complexity of 30. The configured cyclomatic complexity threshold is 10.
                                                            Open

                                                                    public function __get($strName) {
                                                                        switch ($strName) {
                                                                            case 'AddClasses': return $this->blnAddClasses;
                                                                            case 'AppendTo': return $this->mixAppendTo;
                                                                            case 'Axis': return $this->strAxis;

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

                                                                    public function __set($strName, $mixValue) {
                                                                        switch ($strName) {
                                                                            case 'AddClasses':
                                                                                try {
                                                                                    $this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);

                                                            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 29. The configured cyclomatic complexity threshold is 10.
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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

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

                                                                            new QModelConnectorParam (get_called_class(), 'Axis', 'Constrains dragging to either the horizontal (x) or vertical (y) axis.Possible values: \"x\", \"y\".', 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 '774', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Disabled', 'Disables the draggable 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 '785', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'SnapTolerance', 'The distance in pixels from the snap element edges at which snappingshould occur. Ignored if the snap option is false.', 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 '780', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Scope', 'Used to group sets of draggable and droppable items, in addition todroppables accept option. A draggable with the same scope value as adroppable will be accepted by the droppable.', 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 '786', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'ZIndex', 'Z-index for the helper while being dragged.', 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 '773', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Delay', 'Time in milliseconds after mousedown until dragging should start. Thisoption can be used to prevent unwanted drags when clicking on anelement.', 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 '775', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Distance', 'Distance in pixels after mousedown the mouse must move before draggingshould start. This option can be used to prevent unwanted drags whenclicking on an element.', 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 '777', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Opacity', 'Opacity for the helper while being dragged.', 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 '782', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'ScrollSensitivity', 'Distance in pixels from the edge of the viewport after which theviewport should scroll. Distance is relative to pointer, not thedraggable. Ignored if the scroll option is false.', 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 '772', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Cursor', 'The CSS cursor during the drag operation.', 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 '776', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Grid', 'Snaps the dragging helper to a grid, every x and y pixels. The arraymust be of the form [ x, y ].', 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

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

                                                                            new QModelConnectorParam (get_called_class(), 'SnapMode', 'Determines which edges of snap elements the draggable will snap to.Ignored if the snap option is false. Possible values: \"inner\",\"outer\", \"both\".', 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 '770', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'AddClasses', 'If set to false, will prevent the ui-draggable class from being added.This may be desired as a performance optimization when calling.draggable() on hundreds of elements.', 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 '778', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'RefreshPositions', 'If set to true, all droppable positions are calculated on everymousemove. _Caution: This solves issues on highly dynamic pages, butdramatically decreases performance._', 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 '779', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'RevertDuration', 'The duration of the revert animation, in milliseconds. Ignored if therevert option is false.', 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 '781', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'Scroll', 'If set to true, container auto-scrolls while dragging.', 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 '783', column '9').
                                                            Open

                                                                            new QModelConnectorParam (get_called_class(), 'ScrollSpeed', 'The speed at which the window should scroll once the mouse pointergets within the scrollSensitivity distance. Ignored if the scrolloption is false.', 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

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

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '337', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '340', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '344', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '342', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '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 using static access to class 'QType' in method '__set'.
                                                            Open

                                                                                    $this->strCursor = 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 'QType' in method '__set'.
                                                            Open

                                                                                    $this->intScrollSpeed = 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 '334', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '349', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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, '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 'QType' in method '__set'.
                                                            Open

                                                                                    $this->intDistance = 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 '331', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '350', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '343', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '346', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '351', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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->intSnapTolerance = 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 '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 '330', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '327', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '333', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '345', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '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->intRevertDuration = 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 'QType' in method '__set'.
                                                            Open

                                                                                    $this->intZIndex = 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 '326', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '328', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '338', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '339', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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

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

                                                                                    $this->intScrollSensitivity = 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 '332', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '347', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '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 '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 using static access to class 'QType' in method '__set'.
                                                            Open

                                                                                    $this->arrGrid = 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 '348', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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->strScope = 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 assigning values to variables in if clauses and the like (line '336', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '352', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 '353', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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->intDelay = 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 'QType' in method '__set'.
                                                            Open

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

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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->blnRefreshPositions = 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->blnScroll = 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 assigning values to variables in if clauses and the like (line '329', column '17').
                                                            Open

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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->blnAddClasses = 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 '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 'QType' in method '__set'.
                                                            Open

                                                                                    $this->strAxis = 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 'QType' in method '__set'.
                                                            Open

                                                                                    $this->intOpacity = 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

                                                            The class QDraggable_DragEvent is not named in CamelCase.
                                                            Open

                                                                class QDraggable_DragEvent extends QJqUiEvent {
                                                                    const EventName = 'drag';
                                                                }

                                                            CamelCaseClassName

                                                            Since: 0.2

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

                                                            Example

                                                            class class_name {
                                                            }

                                                            Source

                                                            The class QDraggable_StartEvent is not named in CamelCase.
                                                            Open

                                                                class QDraggable_StartEvent extends QJqUiEvent {
                                                                    const EventName = 'dragstart';
                                                                }

                                                            CamelCaseClassName

                                                            Since: 0.2

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

                                                            Example

                                                            class class_name {
                                                            }

                                                            Source

                                                            The class QDraggable_StopEvent is not named in CamelCase.
                                                            Open

                                                                class QDraggable_StopEvent extends QJqUiEvent {
                                                                    const EventName = 'dragstop';
                                                                }

                                                            CamelCaseClassName

                                                            Since: 0.2

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

                                                            Example

                                                            class class_name {
                                                            }

                                                            Source

                                                            The class QDraggable_CreateEvent is not named in CamelCase.
                                                            Open

                                                                class QDraggable_CreateEvent extends QJqUiEvent {
                                                                    const EventName = 'dragcreate';
                                                                }

                                                            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 = 'drag';

                                                            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 = 'dragstop';

                                                            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 = 'dragstart';

                                                            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 = 'dragcreate';

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

                                                                    public static function GetModelConnectorParams() {
                                                                        return array_merge(parent::GetModelConnectorParams(), array(
                                                                            new QModelConnectorParam (get_called_class(), 'AddClasses', 'If set to false, will prevent the ui-draggable class from being added.This may be desired as a performance optimization when calling.draggable() on hundreds of elements.', QType::Boolean),
                                                                            new QModelConnectorParam (get_called_class(), 'Axis', 'Constrains dragging to either the horizontal (x) or vertical (y) axis.Possible values: \"x\", \"y\".', QType::String),
                                                                            new QModelConnectorParam (get_called_class(), 'Cursor', 'The CSS cursor during the drag operation.', QType::String),

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

                                                                    protected function MakeJqOptions() {
                                                                        $jqOptions = null;
                                                                        if (!is_null($val = $this->AddClasses)) {$jqOptions['addClasses'] = $val;}
                                                                        if (!is_null($val = $this->AppendTo)) {$jqOptions['appendTo'] = $val;}
                                                                        if (!is_null($val = $this->Axis)) {$jqOptions['axis'] = $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 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 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 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 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 GetJqSetupFunction is not named in camelCase.
                                                            Open

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

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

                                                            There are no issues that match your filters.

                                                            Category
                                                            Status