qcubed/framework

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

Summary

Maintainability
F
2 wks
Test Coverage

ForgetState accesses the super-global variable $_SESSION.
Open

        public function ForgetState() {
            if (defined ('__SESSION_SAVED_STATE__')) {
                $formName = get_class($this->objForm);
                unset($_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId]);
            }

Superglobals

Since: 0.2

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

Example

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

Source

_ReadState accesses the super-global variable $_SESSION.
Open

        public function _ReadState() {
            if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {
                $formName = get_class($this->objForm);
                if (isset ($_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId])) {
                    $state = $_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId];

Superglobals

Since: 0.2

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

Example

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

Source

_ReadState accesses the super-global variable $_SESSION.
Open

        public function _ReadState() {
            if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {
                $formName = get_class($this->objForm);
                if (isset ($_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId])) {
                    $state = $_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId];

Superglobals

Since: 0.2

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

Example

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

Source

_WriteState accesses the super-global variable $_SESSION.
Open

        public function _WriteState() {
            global $_FORM;

            assert ($_FORM !== null);
            if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {

Superglobals

Since: 0.2

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

Example

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

Source

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

<?php
    /**
     * QControlBase is the base class of all QControls and shares their common properties.
     * 
     * Not every control will utilize every single one of these properties.
Severity: Major
Found in includes/base_controls/QControlBase.class.php - About 3 days to fix

    QControlBase has 96 functions (exceeds 20 allowed). Consider refactoring.
    Open

        abstract class QControlBase extends QHtmlAttributeManager {
    
            /*
             * Constannts
             */
    Severity: Major
    Found in includes/base_controls/QControlBase.class.php - About 1 day to fix

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

              public function __set($strName, $mixValue) {
                  switch ($strName) {
                      // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                      case "Position":
                      case "Top":
      Severity: Minor
      Found in includes/base_controls/QControlBase.class.php - About 1 day to fix

      Cognitive Complexity

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

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

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

      Further reading

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

              public function __set($strName, $mixValue) {
                  switch ($strName) {
                      // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                      case "Position":
                      case "Top":
      Severity: Major
      Found in includes/base_controls/QControlBase.class.php - About 1 day to fix

        Function RenderOutput has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
        Open

                protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
                    if ($blnForceAsBlockElement) {
                        $this->blnIsBlockElement = true;    // must be remembered for ajax drawing
                    }
        
        
        Severity: Minor
        Found in includes/base_controls/QControlBase.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 QControlBase has 60 public methods. Consider refactoring QControlBase to keep number of public methods under 10.
        Open

            abstract class QControlBase extends QHtmlAttributeManager {
        
                /*
                 * Constannts
                 */

        TooManyPublicMethods

        Since: 0.1

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

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

        Example

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

        The class QControlBase has 66 non-getter- and setter-methods. Consider refactoring QControlBase to keep number of methods under 25.
        Open

            abstract class QControlBase extends QHtmlAttributeManager {
        
                /*
                 * Constannts
                 */

        TooManyMethods

        Since: 0.1

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

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

        The default was changed from 10 to 25 in PHPMD 2.3.

        Example

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

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

            abstract class QControlBase extends QHtmlAttributeManager {
        
                /*
                 * Constannts
                 */

        Function RenderHelper has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
        Open

                protected function RenderHelper($mixParameterArray, $strRenderMethod) {
                    // Make sure the form is already "RenderBegun"
                    if ((!$this->objForm) || ($this->objForm->FormStatus != QForm::FormStatusRenderBegun)) {
                        if (!$this->objForm)
                            $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');
        Severity: Minor
        Found in includes/base_controls/QControlBase.class.php - About 2 hrs to fix

        Cognitive Complexity

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

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

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

        Further reading

        Function GetAllActions has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
        Open

                public function GetAllActions($strEventType, $strActionType = null) {
                    $objArrayToReturn = array();
                    if ($this->objActionArray) foreach ($this->objActionArray as $objActionArray) {
                        foreach ($objActionArray as $objAction)
                            if (get_class($objAction->Event) == $strEventType) {
        Severity: Minor
        Found in includes/base_controls/QControlBase.class.php - About 2 hrs to fix

        Cognitive Complexity

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

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

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

        Further reading

        Method RenderOutput has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
                    if ($blnForceAsBlockElement) {
                        $this->blnIsBlockElement = true;    // must be remembered for ajax drawing
                    }
        
        
        Severity: Minor
        Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

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

                  public function __get($strName) {
                      switch ($strName) {
                          case "Display": return $this->blnDisplay;
                          case "CausesValidation": return $this->mixCausesValidation;
                          case "Required": return $this->blnRequired;
          Severity: Minor
          Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

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

                    public function RenderAjax() {
                        // Only render if this control has been modified at all
                        $controls = [];
                        if ($this->IsModified()) {
                            // Render if (1) object has no parent or (2) parent was not rendered nor currently being rendered
            Severity: Minor
            Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

            Cognitive Complexity

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

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

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

            Further reading

            Method RenderWithName has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public function RenderWithName($blnDisplayOutput = true) {
                        ////////////////////
                        // Call RenderHelper
                        $this->RenderHelper(func_get_args(), __FUNCTION__);
                        ////////////////////
            Severity: Minor
            Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

              Function __construct has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
              Open

                      public function __construct($objParentObject, $strControlId = null) {
                          if ($objParentObject instanceof QForm)
                              $this->objForm = $objParentObject;
                          else if ($objParentObject instanceof QControl) {
                              $this->objParentControl = $objParentObject;
              Severity: Minor
              Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

              Cognitive Complexity

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

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

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

              Further reading

              The class QControlBase has 44 fields. Consider redesigning QControlBase to keep the number of fields under 15.
              Open

                  abstract class QControlBase extends QHtmlAttributeManager {
              
                      /*
                       * Constannts
                       */

              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

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

                      public function RenderWithName($blnDisplayOutput = true) {
                          ////////////////////
                          // Call RenderHelper
                          $this->RenderHelper(func_get_args(), __FUNCTION__);
                          ////////////////////
              Severity: Minor
              Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

              Cognitive Complexity

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

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

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

              Further reading

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

                      public function GetTemplatePath($strTemplate) {
                          // If no path is specified, or a relative path, use the path of the child control's file as the starting point.
                          if (strpos($strTemplate, DIRECTORY_SEPARATOR) !== 0) {
                              $strOriginalPath = $strTemplate;
              
              
              Severity: Minor
              Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

              Cognitive Complexity

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

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

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

              Further reading

              Method RenderHelper has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      protected function RenderHelper($mixParameterArray, $strRenderMethod) {
                          // Make sure the form is already "RenderBegun"
                          if ((!$this->objForm) || ($this->objForm->FormStatus != QForm::FormStatusRenderBegun)) {
                              if (!$this->objForm)
                                  $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');
              Severity: Minor
              Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

                The class QControlBase has 85 public methods and attributes. Consider reducing the number of public items to less than 45.
                Open

                    abstract class QControlBase extends QHtmlAttributeManager {
                
                        /*
                         * Constannts
                         */

                ExcessivePublicCount

                Since: 0.1

                A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

                Example

                public class Foo {
                    public $value;
                    public $something;
                    public $var;
                    // [... more more public attributes ...]
                
                    public function doWork() {}
                    public function doMoreWork() {}
                    public function doWorkAgain() {}
                    // [... more more public methods ...]
                }

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

                Function GetControlFromHierarchyByMethodName has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                Open

                        public function GetControlFromHierarchyByMethodName($strMethodName, $blnIncludeCurrentControl = true) {
                            if ($blnIncludeCurrentControl == true) {
                                $ctlDelegatorControl = $this;
                            } else {
                                if (!$this->ParentControl) {
                Severity: Minor
                Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

                Cognitive Complexity

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

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

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

                Further reading

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

                        public function __construct($objParentObject, $strControlId = null) {
                            if ($objParentObject instanceof QForm)
                                $this->objForm = $objParentObject;
                            else if ($objParentObject instanceof QControl) {
                                $this->objParentControl = $objParentObject;
                Severity: Minor
                Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

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

                          public static function GetModelConnectorParams() {
                              return array(
                                  new QModelConnectorParam ('QControl', 'CssClass', 'Css Class assigned to the control', QType::String),
                                  new QModelConnectorParam ('QControl', 'AccessKey', 'Access Key to focus control', QType::String),
                                  new QModelConnectorParam ('QControl', 'CausesValidation', 'How and what to validate. Can also be set to a control.', QModelConnectorParam::SelectionList,
                  Severity: Minor
                  Found in includes/base_controls/QControlBase.class.php - About 1 hr to fix

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

                            public function ValidateControlAndChildren() {
                                // Initially Assume Validation is True
                                $blnToReturn = true;
                    
                                // Check the Control Itself
                    Severity: Minor
                    Found in includes/base_controls/QControlBase.class.php - About 45 mins to fix

                    Cognitive Complexity

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

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

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

                    Further reading

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

                            protected function RenderChildren($blnDisplayOutput = true) {
                                $strToReturn = "";
                    
                                foreach ($this->GetChildControls() as $objControl) {
                                    if (!$objControl->Rendered) {
                    Severity: Minor
                    Found in includes/base_controls/QControlBase.class.php - About 45 mins to fix

                    Cognitive Complexity

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

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

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

                    Further reading

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

                            public static function WakeupHelper($objForm, $obj) {
                                if (is_array ($obj)) {
                                    $ret = array();
                                    foreach ($obj as $key=>$val) {
                                        $ret[$key] = self::WakeupHelper($objForm, $val);
                    Severity: Minor
                    Found in includes/base_controls/QControlBase.class.php - About 35 mins to fix

                    Cognitive Complexity

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

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

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

                    Further reading

                    Avoid too many return statements within this method.
                    Open

                                    case "Rendered": return $this->blnRendered;
                    Severity: Major
                    Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      case "Rendering": return $this->blnRendering;
                      Severity: Major
                      Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        case "RenderMethod": return $this->strRenderMethod;
                        Severity: Major
                        Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          case "Form": return $this->objForm;
                          Severity: Major
                          Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            case "HtmlAfter": return $this->strHtmlAfter;
                            Severity: Major
                            Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              case "Name": return $this->strName;
                              Severity: Major
                              Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                case "ActionParameter": return $this->mixActionParameter;
                                Severity: Major
                                Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  case "DragObj": return $this->objDraggable;
                                  Severity: Major
                                  Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    case "ScriptsOnly": return $this->blnScriptsOnly;
                                    Severity: Major
                                    Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      case "ActionsMustTerminate": return $this->blnActionsMustTerminate;
                                      Severity: Major
                                      Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        case "JavaScripts": return $this->strJavaScripts;
                                        Severity: Major
                                        Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                          Avoid too many return statements within this method.
                                          Open

                                                          case "WrapperCssClass": return $this->GetWrapperStyler()->CssClass;
                                          Severity: Major
                                          Found in includes/base_controls/QControlBase.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/QControlBase.class.php - About 30 mins to fix

                                              Avoid too many return statements within this method.
                                              Open

                                                              case "LinkedNode": return $this->objLinkedNode;
                                              Severity: Major
                                              Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                Avoid too many return statements within this method.
                                                Open

                                                                case "HtmlBefore": return $this->strHtmlBefore;
                                                Severity: Major
                                                Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                  Avoid too many return statements within this method.
                                                  Open

                                                                  case "Instructions": return $this->strInstructions;
                                                  Severity: Major
                                                  Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                    Avoid too many return statements within this method.
                                                    Open

                                                                    case "Droppable": return $this->objDroppable && !$this->objDroppable->Disabled;
                                                    Severity: Major
                                                    Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                      Avoid too many return statements within this method.
                                                      Open

                                                                      case "Modified": return $this->IsModified();
                                                      Severity: Major
                                                      Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                        Avoid too many return statements within this method.
                                                        Open

                                                                        case "AutoRender": return $this->blnAutoRender;
                                                        Severity: Major
                                                        Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                          Avoid too many return statements within this method.
                                                          Open

                                                                          case "Moveable": return $this->objDraggable && !$this->objDraggable->Disabled;
                                                          Severity: Major
                                                          Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                            Avoid too many return statements within this method.
                                                            Open

                                                                            case "Resizable": return $this->objResizable && !$this->objResizable->Disabled;
                                                            Severity: Major
                                                            Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                              Avoid too many return statements within this method.
                                                              Open

                                                                              case "WrapperModified": return $this->blnWrapperModified;
                                                              Severity: Major
                                                              Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                Avoid too many return statements within this method.
                                                                Open

                                                                                case "StyleSheets": return $this->strStyleSheets;
                                                                Severity: Major
                                                                Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                  Avoid too many return statements within this method.
                                                                  Open

                                                                                  case "ControlId": return $this->strControlId;
                                                                  Severity: Major
                                                                  Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                    Avoid too many return statements within this method.
                                                                    Open

                                                                                    case "Minimize": return $this->blnMinimize;
                                                                    Severity: Major
                                                                    Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                      Avoid too many return statements within this method.
                                                                      Open

                                                                                      case "DropObj": return $this->objDroppable;
                                                                      Severity: Major
                                                                      Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                        Avoid too many return statements within this method.
                                                                        Open

                                                                                        case "Warning": return $this->strWarning;
                                                                        Severity: Major
                                                                        Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                          Avoid too many return statements within this method.
                                                                          Open

                                                                                          case "ResizeObj": return $this->objResizable;
                                                                          Severity: Major
                                                                          Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                            Avoid too many return statements within this method.
                                                                            Open

                                                                                            case "ParentControl": return $this->objParentControl;
                                                                            Severity: Major
                                                                            Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                              Avoid too many return statements within this method.
                                                                              Open

                                                                                              case "OnPage": return $this->blnOnPage;
                                                                              Severity: Major
                                                                              Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                                Avoid too many return statements within this method.
                                                                                Open

                                                                                                case "UseWrapper": return $this->blnUseWrapper;
                                                                                Severity: Major
                                                                                Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                                  Avoid too many return statements within this method.
                                                                                  Open

                                                                                                  case "WrapperStyles": return $this->getWrapperStyler();
                                                                                  Severity: Major
                                                                                  Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                                    Avoid too many return statements within this method.
                                                                                    Open

                                                                                                    case "WrapLabel": return $this->blnWrapLabel;
                                                                                    Severity: Major
                                                                                    Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                                      Avoid too many return statements within this method.
                                                                                      Open

                                                                                                      case "Visible": return $this->blnVisible;
                                                                                      Severity: Major
                                                                                      Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

                                                                                        Avoid too many return statements within this method.
                                                                                        Open

                                                                                                        case "PreferredRenderMethod": return $this->strPreferredRenderMethod;
                                                                                        Severity: Major
                                                                                        Found in includes/base_controls/QControlBase.class.php - About 30 mins to fix

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

                                                                                                  public function RenderWithError($blnDisplayOutput = true) {
                                                                                                      // Call RenderHelper
                                                                                                      $this->RenderHelper(func_get_args(), __FUNCTION__);
                                                                                          
                                                                                                      /**
                                                                                          Severity: Minor
                                                                                          Found in includes/base_controls/QControlBase.class.php - About 25 mins to fix

                                                                                          Cognitive Complexity

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

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

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

                                                                                          Further reading

                                                                                          The class QControlBase has 2371 lines of code. Current threshold is 1000. Avoid really long classes.
                                                                                          Open

                                                                                              abstract class QControlBase extends QHtmlAttributeManager {
                                                                                          
                                                                                                  /*
                                                                                                   * Constannts
                                                                                                   */

                                                                                          The method RenderOutput() has an NPath complexity of 288. The configured NPath complexity threshold is 200.
                                                                                          Open

                                                                                                  protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
                                                                                                      if ($blnForceAsBlockElement) {
                                                                                                          $this->blnIsBlockElement = true;    // must be remembered for ajax drawing
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  protected function RenderHelper($mixParameterArray, $strRenderMethod) {
                                                                                                      // Make sure the form is already "RenderBegun"
                                                                                                      if ((!$this->objForm) || ($this->objForm->FormStatus != QForm::FormStatusRenderBegun)) {
                                                                                                          if (!$this->objForm)
                                                                                                              $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');

                                                                                          NPathComplexity

                                                                                          Since: 0.1

                                                                                          The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                                                                                          Example

                                                                                          class Foo {
                                                                                              function bar() {
                                                                                                  // lots of complicated code
                                                                                              }
                                                                                          }

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

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

                                                                                                  public function RenderAjax() {
                                                                                                      // Only render if this control has been modified at all
                                                                                                      $controls = [];
                                                                                                      if ($this->IsModified()) {
                                                                                                          // Render if (1) object has no parent or (2) parent was not rendered nor currently being rendered

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

                                                                                                  protected function RenderHelper($mixParameterArray, $strRenderMethod) {
                                                                                                      // Make sure the form is already "RenderBegun"
                                                                                                      if ((!$this->objForm) || ($this->objForm->FormStatus != QForm::FormStatusRenderBegun)) {
                                                                                                          if (!$this->objForm)
                                                                                                              $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');

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

                                                                                                  protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
                                                                                                      if ($blnForceAsBlockElement) {
                                                                                                          $this->blnIsBlockElement = true;    // must be remembered for ajax drawing
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          CyclomaticComplexity

                                                                                          Since: 0.1

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

                                                                                          Example

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

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

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

                                                                                                  public function __get($strName) {
                                                                                                      switch ($strName) {
                                                                                                          case "Display": return $this->blnDisplay;
                                                                                                          case "CausesValidation": return $this->mixCausesValidation;
                                                                                                          case "Required": return $this->blnRequired;

                                                                                          CyclomaticComplexity

                                                                                          Since: 0.1

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

                                                                                          Example

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

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

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

                                                                                                      $params['originalParam'] = $mixParameter;

                                                                                          UndefinedVariable

                                                                                          Since: 2.8.0

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

                                                                                          Example

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

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

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

                                                                                                      $params['action'] = $objAction;

                                                                                          UndefinedVariable

                                                                                          Since: 2.8.0

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

                                                                                          Example

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

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

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

                                                                                                      $params['param'] = $mixParameter;    // this value can be modified by subclass if needed

                                                                                          UndefinedVariable

                                                                                          Since: 2.8.0

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

                                                                                          Example

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

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

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

                                                                                                      $params['controlId'] = $this->strControlId;

                                                                                          UndefinedVariable

                                                                                          Since: 2.8.0

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

                                                                                          Example

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

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

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

                                                                                                      return $params;

                                                                                          UndefinedVariable

                                                                                          Since: 2.8.0

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

                                                                                          Example

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

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

                                                                                          The class QControlBase has a coupling between objects value of 27. Consider to reduce the number of dependencies under 13.
                                                                                          Open

                                                                                              abstract class QControlBase extends QHtmlAttributeManager {
                                                                                          
                                                                                                  /*
                                                                                                   * Constannts
                                                                                                   */

                                                                                          CouplingBetweenObjects

                                                                                          Since: 1.1.0

                                                                                          A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

                                                                                          Example

                                                                                          class Foo {
                                                                                              /**
                                                                                               * @var \foo\bar\X
                                                                                               */
                                                                                              private $x = null;
                                                                                          
                                                                                              /**
                                                                                               * @var \foo\bar\Y
                                                                                               */
                                                                                              private $y = null;
                                                                                          
                                                                                              /**
                                                                                               * @var \foo\bar\Z
                                                                                               */
                                                                                              private $z = null;
                                                                                          
                                                                                              public function setFoo(\Foo $foo) {}
                                                                                              public function setBar(\Bar $bar) {}
                                                                                              public function setBaz(\Baz $baz) {}
                                                                                          
                                                                                              /**
                                                                                               * @return \SplObjectStorage
                                                                                               * @throws \OutOfRangeException
                                                                                               * @throws \InvalidArgumentException
                                                                                               * @throws \ErrorException
                                                                                               */
                                                                                              public function process(\Iterator $it) {}
                                                                                          
                                                                                              // ...
                                                                                          }

                                                                                          Source https://phpmd.org/rules/design.html#couplingbetweenobjects

                                                                                          Missing class import via use statement (line '272', column '16').
                                                                                          Open

                                                                                                              throw new QCallerException('ControlIds must be only alphanumeric characters: ' . $strControlId);

                                                                                          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 '398', column '22').
                                                                                          Open

                                                                                                          $reflector = new ReflectionClass(get_class($this));

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                  public function GetChildControls($blnUseNumericIndexes = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

                                                                                          Missing class import via use statement (line '405', column '24').
                                                                                          Open

                                                                                                                  $reflector = new ReflectionClass(get_class($this->objParentControl));

                                                                                          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 '413', column '23').
                                                                                          Open

                                                                                                              $reflector = new ReflectionClass(get_class($this->objForm));

                                                                                          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 '263', column '15').
                                                                                          Open

                                                                                                          throw new QCallerException('ParentObject must be either a QForm or QControl object');

                                                                                          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 '1232', column '20').
                                                                                          Open

                                                                                                              $objExc = new QCallerException('Control cannot be rendered after RenderEnd() has been called on the form.');

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                  public function VarExport($blnReturn = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                              $this->objWatcher = new QWatcher(); // only create a watcher object when needed, since it is stored in the form state

                                                                                          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 '1244', column '19').
                                                                                          Open

                                                                                                          $objExc = new QCallerException('This control has already been rendered: ' . $this->strControlId);

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

                                                                                                          new QModelConnectorParam ('QControl', 'Resizable', '', 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 '2455', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Required', 'Will it fail validation if nothing is entered (default depends on data definition, if NULL is allowed.)?', 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 '2459', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Height', 'Height in pixels. However, you can specify a different unit (e.g. 3.0 em).', 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 '2462', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Moveable', '', 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

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

                                                                                                  public function RenderWithError($blnDisplayOutput = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

                                                                                          Missing class import via use statement (line '2296', column '35').
                                                                                          Open

                                                                                                                          $this->objDroppable = new QDroppable($this);

                                                                                          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 '718', column '15').
                                                                                          Open

                                                                                                          throw new QCallerException('First parameter of AddAction is expecting an object of type QEvent');

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                  protected function GetWrapperStyleAttributes($blnIsBlockElement = false) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          new QModelConnectorParam ('QControl', 'Enabled', 'Will it start as enabled (default 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 '2465', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'UseWrapper', 'Control will be forced to be wrapped with a div', 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 '2445', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'AccessKey', 'Access Key to focus control', 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 '2464', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Droppable', '', 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 '722', column '15').
                                                                                          Open

                                                                                                          throw new QCallerException('Second parameter of AddAction is expecting an object of type QAction');

                                                                                          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 '1230', column '20').
                                                                                          Open

                                                                                                              $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');

                                                                                          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 '2275', column '35').
                                                                                          Open

                                                                                                                          $this->objResizable = new QResizable($this);

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

                                                                                                          new QModelConnectorParam ('QControl', 'ToolTip', '', 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 '2466', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'WrapperCssClass', '', 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 '2460', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Width', 'Width in pixels. However, you can specify a different unit (e.g. 3.0 em).', 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 '1092', column '35').
                                                                                          Open

                                                                                                          $this->objWrapperStyler = new QTagStyler();

                                                                                          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 '1234', column '20').
                                                                                          Open

                                                                                                              $objExc = new QCallerException('Control cannot be rendered until RenderBegin() has been called on the form.');

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                  public function Render($blnDisplayOutput = true /* ... */) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function GetControlFromHierarchyByMethodName($strMethodName, $blnIncludeCurrentControl = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  protected function RenderChildren($blnDisplayOutput = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          new QModelConnectorParam ('QControl', 'CssClass', 'Css Class assigned to the control', 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 '2461', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'Instructions', 'Additional help for user.', 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

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

                                                                                                  public function RenderWithName($blnDisplayOutput = true) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  protected function RenderWrappedOutput($strOutput, $blnForceAsBlockElement = false) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          new QModelConnectorParam ('QControl', 'Visible', '', 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 '753', column '15').
                                                                                          Open

                                                                                                          throw new QCallerException('First parameter of AddAction is expecting on object of type QEvent');

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                  protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {

                                                                                          BooleanArgumentFlag

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

                                                                                          Missing class import via use statement (line '2254', column '35').
                                                                                          Open

                                                                                                                          $this->objDraggable = new QDraggable($this, $this->ControlId . 'draggable');

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

                                                                                                          new QModelConnectorParam ('QControl', 'TabIndex', '', 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 '2467', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'PreferredRenderMethod', '', 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 '2446', column '9').
                                                                                          Open

                                                                                                          new QModelConnectorParam ('QControl', 'CausesValidation', 'How and what to validate. Can also be set to a control.', QModelConnectorParam::SelectionList,

                                                                                          MissingImport

                                                                                          Since: 2.7.0

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

                                                                                          Example

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

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

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

                                                                                                      else {
                                                                                                          return null;
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      } else {
                                                                                                          if (isset($this->objChildControlArray[$strControlId])) {
                                                                                                              $objChildControl = $this->objChildControlArray[$strControlId];
                                                                                                              $objChildControl->objParentControl = null;
                                                                                                              unset($this->objChildControlArray[$strControlId]);

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      else {
                                                                                                          // Verify ControlId is only AlphaNumeric Characters
                                                                                                          if (ctype_alnum($strControlId))
                                                                                                              $this->strControlId = $strControlId;
                                                                                                          else

                                                                                          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 'QHtml' in method 'RenderCssStyles'.
                                                                                          Open

                                                                                                      return QHtml::RenderStyles($styles);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                      } else {
                                                                                                                          $strOutput = $strOutput . $this->GetNonWrappedHtml();
                                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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 'QClickEvent' in method 'OnDoubleClick'.
                                                                                          Open

                                                                                                      $this->AddAction(QClickEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          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 'QKeyUpEvent' in method 'OnKeyUp'.
                                                                                          Open

                                                                                                      $this->AddAction(QKeyUpEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              // Use the default location, relative to plugin's own directory given.
                                                                                                              $this->AddJavascriptFile(__PLUGIN_ASSETS__ . '/' . $strPluginName . "/js/" . $strJsFileName);
                                                                                                          }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      else {
                                                                                                          if (strpos($strCssFileName, "/") === 0) {
                                                                                                              // custom location for plugin javascript, relative to virtual dir
                                                                                                              $this->AddCssFile($strCssFileName);
                                                                                                          } else {

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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 '2229', column '42').
                                                                                          Open

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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

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

                                                                                                                  if ($this->blnVisible !== ($mixValue = 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

                                                                                                                  if (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->blnMinimize = 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->blnAutoRender = 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

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

                                                                                                      } else {
                                                                                                          $this->strJavaScripts = $strJsFileName;
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                  } else {
                                                                                                                      // Do nothing. RenderAjax will handle it.
                                                                                                                  }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      } else {
                                                                                                          if (!$this->ParentControl) {
                                                                                                              // ParentControl is null. This means the parent is a QForm.
                                                                                                              $ctlDelegatorControl = $this->Form;
                                                                                                          } else {

                                                                                          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 'QType' in method '__set'.
                                                                                          Open

                                                                                                                  $this->objLinkedNode = QType::Cast($mixValue, 'QQNode');

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              // Use the default location 
                                                                                                              $this->AddCssFile(__PLUGIN_ASSETS__ . '/' . $strPluginName . "/css/" . $strCssFileName);
                                                                                                          }

                                                                                          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 'QBlurEvent' in method 'OnBlur'.
                                                                                          Open

                                                                                                      $this->AddAction(QBlurEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              if (!$ctlDelegatorControl->ParentControl) {
                                                                                                                  // ParentControl is null. This means the parent is a QForm.
                                                                                                                  $ctlDelegatorControl = $ctlDelegatorControl->Form;
                                                                                                              } else {

                                                                                          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 'QType' in method '__set'.
                                                                                          Open

                                                                                                                  if ($this->strValidationError !== ($mixValue = 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

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

                                                                                                                      } else {
                                                                                                                          $strOutput = $strOutput . $this->GetNonWrappedHtml();
                                                                                                                      }

                                                                                          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 'QType' in method '__set'.
                                                                                          Open

                                                                                                                  $this->mixActionParameter = ($mixValue instanceof QJsClosure) ? $mixValue : 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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                          $strMessage = sprintf('<span class="warning">%s</span>', QHtml::RenderString($this->strWarning));

                                                                                          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 'QHtml' in method 'RenderComment'.
                                                                                          Open

                                                                                                      return  QHtml::Comment( $strType . ' ' . get_class($this) . ' ' . $this->strName . ' id:' . $this->strControlId);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      else {
                                                                                                          return $this->strFormAttributes;
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              $ctlDelegatorControl = $this->ParentControl;
                                                                                                          }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                  else {
                                                                                                                      if ($this->objResizable) {
                                                                                                                          $this->objResizable->Disabled = true;
                                                                                                                      }
                                                                                                                  }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                  else {
                                                                                                                      if ($this->objDroppable) {
                                                                                                                          $this->objDroppable->Disabled = true;
                                                                                                                      }
                                                                                                                  }

                                                                                          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 'QClickEvent' in method 'OnClick'.
                                                                                          Open

                                                                                                      $this->AddAction(QClickEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      } else {
                                                                                                          $this->strStyleSheets = $strCssFileName;
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                              } else {
                                                                                                                  $strOutput = $strOutput . $this->GetNonWrappedHtml();
                                                                                                              }

                                                                                          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 'QHtml' in method 'RenderWrappedOutput'.
                                                                                          Open

                                                                                                      return QHtml::RenderTag($strTag, $attributes, $strOutput);

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                      $strToReturn = QHtml::RenderTag('div', $aWrapperAttributes, $strToReturn);

                                                                                          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 '2155', column '34').
                                                                                          Open

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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

                                                                                                                  if ($this->strPreferredRenderMethod !== ($mixValue = 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

                                                                                                                  if ($this->strHtmlAfter !== ($mixValue = 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

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

                                                                                                              } else {
                                                                                                                  $ctlDelegatorControl = $ctlDelegatorControl->ParentControl;
                                                                                                              }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                      } else {
                                                                                                                          $this->objDraggable->Disabled = false;
                                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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

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

                                                                                                                  $strWrapperCssClass = 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

                                                                                                                  if($this->blnUseWrapper != 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

                                                                                                                  if ($this->strName !== ($mixValue = 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

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

                                                                                                      else {
                                                                                                          $this->objActionArray = array();
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              // Avoid going through the time to render the control if we are not going to display it.
                                                                                                              $strOutput = "";
                                                                                                          }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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 'QChangeEvent' in method 'OnChange'.
                                                                                          Open

                                                                                                      $this->AddAction(QChangeEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          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

                                                                                                                  if ($this->strWarning !== ($mixValue = 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

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

                                                                                                                      } else {
                                                                                                                          $this->objResizable->Disabled = false;
                                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          else {
                                                                                                              return null;
                                                                                                          }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

                                                                                          Avoid using static access to class 'QAction' in method 'GetJavaScriptForEvent'.
                                                                                          Open

                                                                                                      return QAction::RenderActions($this, $strEventName, $this->objActionArray[$strEventName]);

                                                                                          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

                                                                                                                  if ($this->strHtmlBefore !== ($mixValue = 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

                                                                                                                  if ($this->strInstructions !== ($mixValue = QType::Cast($mixValue, QType::String))) {

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      QApplication::ExecuteJavaScript(sprintf('qc.getW("%s").blink("%s", "%s");', $this->strControlId, $strFromColor, $strToColor));

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      } else {
                                                                                                          return $strOutput;
                                                                                                      }

                                                                                          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 'QHtml' in method 'RenderWithError'.
                                                                                          Open

                                                                                                              $strOutput .= sprintf('<br %s/><span %sclass="warning">%s</span>', $strDataRel, $strDataRel, QHtml::RenderString($this->strWarning));

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                          QHtml::RenderTag('span', ['class'=>"instructions"], QHtml::RenderString($this->strInstructions));

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

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

                                                                                                                      } else {
                                                                                                                          $this->objDroppable->Disabled = false;
                                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      else {
                                                                                                          if (strpos($strJsFileName, "/") === 0) {
                                                                                                              // custom location for plugin javascript, relative to virtual directory
                                                                                                              $this->AddJavascriptFile($strJsFileName);
                                                                                                          } else {

                                                                                          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 'Focus'.
                                                                                          Open

                                                                                                      QApplication::ExecuteControlCommand($this->strControlId, 'focus');

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                      $strLabel = QHtml::RenderTag('label', null, QHtml::RenderString($this->strName));

                                                                                          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

                                                                                                                  $mixValue = 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 'QFocusEvent' in method 'OnFocus'.
                                                                                          Open

                                                                                                      $this->AddAction(QFocusEvent::CreateWithOptions($arrEventOptions), $objAction);

                                                                                          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 'QHtml' in method 'RenderWithError'.
                                                                                          Open

                                                                                                              $strOutput .= sprintf('<br %s/><span %sclass="error">%s</span>', $strDataRel, $strDataRel, QHtml::RenderString($this->strValidationError));

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      }else{
                                                                                                          $strInstructions = '';
                                                                                                      }

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                      $strToReturn = QHtml::RenderTag('div', ['class'=>$strLabelClass], $strLabel . $strInstructions);

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                      } else {
                                                                                                          return $this->ControlId;
                                                                                                      }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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 '2315', column '31').
                                                                                          Open

                                                                                                  public function __set($strName, $mixValue) {
                                                                                                      switch ($strName) {
                                                                                                          // Shunt position settings to the wrapper. Actual drawing will get resolved at draw time.
                                                                                                          case "Position":
                                                                                                          case "Top":

                                                                                          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

                                                                                                                  if($this->blnWrapLabel != 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

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

                                                                                                              } else {
                                                                                                                  // if this is an injected top-level control, then we need to render the whole thing
                                                                                                                  if (!$this->blnOnPage) {
                                                                                                                      if ($this->blnUseWrapper) {
                                                                                                                          $strOutput = $this->RenderWrappedOutput($strOutput, $blnForceAsBlockElement) . $this->GetNonWrappedHtml();

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                          QHtml::RenderTag('span', ['class'=>"instructions"], QHtml::RenderString($this->strInstructions));

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                      $strLabel = QHtml::RenderTag('label', null, QHtml::RenderString($this->strName));

                                                                                          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 'QHtml' in method 'RenderWithName'.
                                                                                          Open

                                                                                                          $strMessage = sprintf('<span class="error">%s</span>', QHtml::RenderString($this->strValidationError));

                                                                                          StaticAccess

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                          } else {
                                                                                                              $this->objWatcher = new QWatcher(); // only create a watcher object when needed, since it is stored in the form state
                                                                                                          }

                                                                                          ElseExpression

                                                                                          Since: 1.4.0

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

                                                                                          Example

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

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

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

                                                                                                                  else {
                                                                                                                      if ($this->objDraggable) {
                                                                                                                          $this->objDraggable->Disabled = true;
                                                                                                                      }
                                                                                                                  }

                                                                                          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 'QType' in method '__set'.
                                                                                          Open

                                                                                                                  $this->blnSaveState = 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 unused parameters such as '$state'.
                                                                                          Open

                                                                                                  protected function PutState($state) {}

                                                                                          UnusedFormalParameter

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

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

                                                                                                      global $_CONTROL;

                                                                                          UnusedLocalVariable

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

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

                                                                                                      global $_ITEM;        // used by data repeater

                                                                                          UnusedLocalVariable

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

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

                                                                                                      global $_FORM;

                                                                                          UnusedLocalVariable

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

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

                                                                                                      foreach ($this->objActionArray as $strEventName => $objActions) {

                                                                                          UnusedLocalVariable

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

                                                                                          Avoid unused parameters such as '$blnIsBlockElement'.
                                                                                          Open

                                                                                                  protected function GetWrapperStyleAttributes($blnIsBlockElement = false) {

                                                                                          UnusedFormalParameter

                                                                                          Since: 0.2

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

                                                                                          Example

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

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

                                                                                          TODO found
                                                                                          Open

                                                                                                       TODO: Implement and test the code below to reduce the amount of redrawing. In particular, the current

                                                                                          TODO found
                                                                                          Open

                                                                                                      // TODO: do this in javascript

                                                                                          TODO found
                                                                                          Open

                                                                                                   * TODO: Turn this into a specific command to avoid the javascript eval that happens on the other end.

                                                                                          TODO found
                                                                                          Open

                                                                                                   * TODO: Turn this into a specific command to avoid the javascript eval that happens on the other end.

                                                                                          TODO found
                                                                                          Open

                                                                                                       * TODO: This can likely be done just in javascript without a complete refresh of the control.

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

                                                                                                          case "Resizable":
                                                                                                              try {
                                                                                                                  $this->MarkAsWrapperModified();
                                                                                                                  if (QType::Cast($mixValue, QType::Boolean)) {
                                                                                                                      if (!$this->objResizable) {
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 2291..2310

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 114.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

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

                                                                                                          case "Droppable":
                                                                                                              try {
                                                                                                                  $this->MarkAsWrapperModified();
                                                                                                                  if (QType::Cast($mixValue, QType::Boolean)) {
                                                                                                                      if (!$this->objDroppable) {
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 2270..2289

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 114.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

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

                                                                                                          case "ValidationError":
                                                                                                              try {
                                                                                                                  if (is_string($mixValue) && trim($mixValue) === '') { // treat empty strings as nulls to prevent unnecessary drawing
                                                                                                                      $mixValue = null;
                                                                                                                  }
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 2209..2222

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 104.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

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

                                                                                                          case "Warning":
                                                                                                              try {
                                                                                                                  if (is_string($mixValue) && trim($mixValue) === '') { // treat empty strings as nulls to prevent unnecessary drawing
                                                                                                                      $mixValue = null;
                                                                                                                  }
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 2224..2237

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 104.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

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

                                                                                                  public function AddPluginJavascriptFile($strPluginName, $strJsFileName) {
                                                                                                      if (strpos($strJsFileName, "http") === 0) {
                                                                                                          $this->AddJavascriptFile($strJsFileName);    // plugin uses js from some other website
                                                                                                      }
                                                                                                      else {
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 975..988

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 103.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

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

                                                                                                  public function AddPluginCssFile($strPluginName, $strCssFileName) {
                                                                                                      if (strpos($strCssFileName, "http") === 0) {
                                                                                                          $this->AddCssFile($strCssFileName);    // plugin uses style sheet from some other website
                                                                                                      }
                                                                                                      else {
                                                                                          Severity: Major
                                                                                          Found in includes/base_controls/QControlBase.class.php and 1 other location - About 1 hr to fix
                                                                                          includes/base_controls/QControlBase.class.php on lines 933..946

                                                                                          Duplicated Code

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

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

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

                                                                                          Tuning

                                                                                          This issue has a mass of 103.

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

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

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

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

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Avoid excessively long variable names like $strCustomAttributeArray. Keep variable name length under 20.
                                                                                          Open

                                                                                                  protected $strCustomAttributeArray = null;

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $blnActionsMustTerminate. Keep variable name length under 20.
                                                                                          Open

                                                                                                  protected $blnActionsMustTerminate = false;

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $strPreferredRenderMethod. Keep variable name length under 20.
                                                                                          Open

                                                                                                  protected $strPreferredRenderMethod = 'Render';

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $RenderExtensionInstance. Keep variable name length under 20.
                                                                                          Open

                                                                                                      $RenderExtensionInstance = new $classname;

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $blnIncludeCurrentControl. Keep variable name length under 20.
                                                                                          Open

                                                                                                  public function GetControlFromHierarchyByMethodName($strMethodName, $blnIncludeCurrentControl = true) {

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $blnForceAsBlockElement. Keep variable name length under 20.
                                                                                          Open

                                                                                                  protected function RenderWrappedOutput($strOutput, $blnForceAsBlockElement = false) {

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Avoid excessively long variable names like $blnForceAsBlockElement. Keep variable name length under 20.
                                                                                          Open

                                                                                                  protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {

                                                                                          LongVariable

                                                                                          Since: 0.2

                                                                                          Detects when a field, formal or local variable is declared with a long name.

                                                                                          Example

                                                                                          class Something {
                                                                                              protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                                              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                                                  $otherReallyLongName = -5; // VIOLATION - Local
                                                                                                  for ($interestingIntIndex = 0; // VIOLATION - For
                                                                                                       $interestingIntIndex < 10;
                                                                                                       $interestingIntIndex++ ) {
                                                                                                  }
                                                                                              }
                                                                                          }

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

                                                                                          Constant CommentEnd should be defined in uppercase
                                                                                          Open

                                                                                                  const CommentEnd = 'End';

                                                                                          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 CommentStart should be defined in uppercase
                                                                                          Open

                                                                                                  const CommentStart = 'Begin';

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

                                                                                                  public function _WriteState() {
                                                                                                      global $_FORM;
                                                                                          
                                                                                                      assert ($_FORM !== null);
                                                                                                      if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $_CONTROL is not named in camelCase.
                                                                                          Open

                                                                                                  public function EvaluateTemplate($strTemplate) {
                                                                                                      global $_ITEM;        // used by data repeater
                                                                                                      global $_CONTROL;
                                                                                                      global $_FORM;
                                                                                          
                                                                                          

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $_FORM is not named in camelCase.
                                                                                          Open

                                                                                                  public function _WriteState() {
                                                                                                      global $_FORM;
                                                                                          
                                                                                                      assert ($_FORM !== null);
                                                                                                      if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $_ITEM is not named in camelCase.
                                                                                          Open

                                                                                                  public function EvaluateTemplate($strTemplate) {
                                                                                                      global $_ITEM;        // used by data repeater
                                                                                                      global $_CONTROL;
                                                                                                      global $_FORM;
                                                                                          
                                                                                          

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $_FORM is not named in camelCase.
                                                                                          Open

                                                                                                  public function _WriteState() {
                                                                                                      global $_FORM;
                                                                                          
                                                                                                      assert ($_FORM !== null);
                                                                                                      if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $_FORM is not named in camelCase.
                                                                                          Open

                                                                                                  public function EvaluateTemplate($strTemplate) {
                                                                                                      global $_ITEM;        // used by data repeater
                                                                                                      global $_CONTROL;
                                                                                                      global $_FORM;
                                                                                          
                                                                                          

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $RenderExtensionInstance is not named in camelCase.
                                                                                          Open

                                                                                                  public function RenderExtensionRenderer($classname, $methodname, $args=array()){
                                                                                                      $RenderExtensionInstance = new $classname;
                                                                                                      return $RenderExtensionInstance->{$methodname}($args);
                                                                                                  }

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The variable $RenderExtensionInstance is not named in camelCase.
                                                                                          Open

                                                                                                  public function RenderExtensionRenderer($classname, $methodname, $args=array()){
                                                                                                      $RenderExtensionInstance = new $classname;
                                                                                                      return $RenderExtensionInstance->{$methodname}($args);
                                                                                                  }

                                                                                          CamelCaseVariableName

                                                                                          Since: 0.2

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

                                                                                          Example

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

                                                                                          Source

                                                                                          The method GetState is not named in camelCase.
                                                                                          Open

                                                                                                  protected function GetState() {
                                                                                                      return null;
                                                                                                  }

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

                                                                                                  public static function WakeupHelper($objForm, $obj) {
                                                                                                      if (is_array ($obj)) {
                                                                                                          $ret = array();
                                                                                                          foreach ($obj as $key=>$val) {
                                                                                                              $ret[$key] = self::WakeupHelper($objForm, $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 GetChildControl is not named in camelCase.
                                                                                          Open

                                                                                                  public function GetChildControl($strControlId) {
                                                                                                      if (isset($this->objChildControlArray[$strControlId])) {
                                                                                                          return $this->objChildControlArray[$strControlId];
                                                                                                      }
                                                                                                      else {

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

                                                                                                  public function RemoveChildControl($strControlId, $blnRemoveFromForm) {
                                                                                                      $this->blnModified = true;
                                                                                                      if ($blnRemoveFromForm) {
                                                                                                          $this->objForm->RemoveControl($strControlId); // will call back to here with $blnRemoveFromForm = false
                                                                                                      } else {

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

                                                                                                  public function _WriteState() {
                                                                                                      global $_FORM;
                                                                                          
                                                                                                      assert ($_FORM !== null);
                                                                                                      if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {

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

                                                                                                  public function GetChildControls($blnUseNumericIndexes = true) {
                                                                                                      if ($blnUseNumericIndexes) {
                                                                                                          $objToReturn = array();
                                                                                                          foreach ($this->objChildControlArray as $objChildControl)
                                                                                                              array_push($objToReturn, $objChildControl);

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

                                                                                                  public function RemoveChildControls($blnRemoveFromForm) {
                                                                                                      foreach ($this->objChildControlArray as $objChildControl) {
                                                                                                          $this->RemoveChildControl($objChildControl->ControlId, $blnRemoveFromForm);
                                                                                                      }
                                                                                                  }

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

                                                                                                  public static function _CallActionMethod(QControl $objDestControl, $strMethodName, $strFormId, $params) {
                                                                                                      $objDestControl->$strMethodName($strFormId, $params['controlId'], $params['param'], $params);
                                                                                                  }

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

                                                                                                  public function Sleep() {
                                                                                                      $this->objForm = null;
                                                                                                  }

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

                                                                                                  public static function SleepHelper($obj) {
                                                                                                      if ($obj instanceof QForm) {
                                                                                                          // assume its THE form
                                                                                                          return '**QF;';
                                                                                                      }

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

                                                                                                  public function _ReadState() {
                                                                                                      if (defined ('__SESSION_SAVED_STATE__') && $this->blnSaveState) {
                                                                                                          $formName = get_class($this->objForm);
                                                                                                          if (isset ($_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId])) {
                                                                                                              $state = $_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId];

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

                                                                                                  public function AddChildControl(QControl $objControl) {
                                                                                                      $this->blnModified = true;
                                                                                                      $this->objChildControlArray[$objControl->ControlId] = $objControl;
                                                                                                      $objControl->objParentControl = $this;
                                                                                                  }

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

                                                                                                  protected function PutState($state) {}

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

                                                                                                  public function OnBlur(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QBlurEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  abstract public function ParsePostData();

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

                                                                                                  abstract public function Validate();

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

                                                                                                  public function GetTemplatePath($strTemplate) {
                                                                                                      // If no path is specified, or a relative path, use the path of the child control's file as the starting point.
                                                                                                      if (strpos($strTemplate, DIRECTORY_SEPARATOR) !== 0) {
                                                                                                          $strOriginalPath = $strTemplate;
                                                                                          
                                                                                          

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

                                                                                                  public function Wakeup(QForm $objForm) {
                                                                                                      $this->objForm = $objForm;
                                                                                                  }

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

                                                                                                  public function EvaluateTemplate($strTemplate) {
                                                                                                      global $_ITEM;        // used by data repeater
                                                                                                      global $_CONTROL;
                                                                                                      global $_FORM;
                                                                                          
                                                                                          

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

                                                                                                  public static function _ProcessActionParams(QControl $objSourceControl, QAction $objAction, $mixParameter) {
                                                                                                      $mixParameters['param'] = null;
                                                                                                      $mixParameters = $objSourceControl->ProcessActionParameters($objAction, $mixParameter);
                                                                                                      return $mixParameters;
                                                                                                  }

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

                                                                                                  protected function ProcessActionParameters(QAction $objAction, $mixParameter) {
                                                                                                      $params['param'] = $mixParameter;    // this value can be modified by subclass if needed
                                                                                                      $params['originalParam'] = $mixParameter;
                                                                                                      $params['action'] = $objAction;
                                                                                                      $params['controlId'] = $this->strControlId;

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

                                                                                                  public function ForgetState() {
                                                                                                      if (defined ('__SESSION_SAVED_STATE__')) {
                                                                                                          $formName = get_class($this->objForm);
                                                                                                          unset($_SESSION[__SESSION_SAVED_STATE__][$formName][$this->ControlId]);
                                                                                                      }

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

                                                                                                  protected function RenderHelper($mixParameterArray, $strRenderMethod) {
                                                                                                      // Make sure the form is already "RenderBegun"
                                                                                                      if ((!$this->objForm) || ($this->objForm->FormStatus != QForm::FormStatusRenderBegun)) {
                                                                                                          if (!$this->objForm)
                                                                                                              $objExc = new QCallerException('Control\'s form does not exist.  It could be that you are attempting to render after RenderEnd() has been called on the form.');

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

                                                                                                  public function IsModified() {
                                                                                                      return ($this->blnModified ||
                                                                                                          ($this->objWatcher && !$this->objWatcher->IsCurrent()));
                                                                                                  }

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

                                                                                                  public function RemoveAllActions($strEventName = null) {
                                                                                                      // Modified
                                                                                                      $this->blnModified = true;
                                                                                          
                                                                                                      if ($strEventName) {

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

                                                                                                  abstract protected function GetControlHtml();

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

                                                                                                  public function RenderComment($strType) {
                                                                                                      return  QHtml::Comment( $strType . ' ' . get_class($this) . ' ' . $this->strName . ' id:' . $this->strControlId);
                                                                                                  }

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

                                                                                                  public function RenderExtensionRenderer($classname, $methodname, $args=array()){
                                                                                                      $RenderExtensionInstance = new $classname;
                                                                                                      return $RenderExtensionInstance->{$methodname}($args);
                                                                                                  }

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

                                                                                                  public function RemoveCustomAttribute($strName) {
                                                                                                      $this->RemoveHtmlAttribute($strName);
                                                                                                  }

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

                                                                                                  public function ResetFlags() {
                                                                                                      $this->blnRendered = false;
                                                                                                      $this->blnModified = false;
                                                                                                      $this->blnWrapperModified = false;
                                                                                                  }

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

                                                                                                  public function AddJavascriptFile($strJsFileName) {
                                                                                                      if($this->strJavaScripts) {
                                                                                                          $this->strJavaScripts .= ','.$strJsFileName;
                                                                                                      } else {
                                                                                                          $this->strJavaScripts = $strJsFileName;

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

                                                                                                  public function GetJqControlId() {
                                                                                                      return $this->ControlId;
                                                                                                  }

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

                                                                                                  public function AddCssFile($strCssFileName) {
                                                                                                      if($this->strStyleSheets) {
                                                                                                          $this->strStyleSheets .= ','.$strCssFileName;
                                                                                                      } else {
                                                                                                          $this->strStyleSheets = $strCssFileName;

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

                                                                                                  public function GetControlFromHierarchyByMethodName($strMethodName, $blnIncludeCurrentControl = true) {
                                                                                                      if ($blnIncludeCurrentControl == true) {
                                                                                                          $ctlDelegatorControl = $this;
                                                                                                      } else {
                                                                                                          if (!$this->ParentControl) {

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

                                                                                                  public function GetForm() {
                                                                                                      return $this->objForm;
                                                                                                  }

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

                                                                                                  public function Blink($strFromColor = '#ffff66', $strToColor = '#ffffff') {
                                                                                                      QApplication::ExecuteJavaScript(sprintf('qc.getW("%s").blink("%s", "%s");', $this->strControlId, $strFromColor, $strToColor));
                                                                                                  }

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

                                                                                                  public function GetCustomStyle($strName) {
                                                                                                      return $this->GetCssStyle($strName);
                                                                                                  }

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

                                                                                                  public function GetWrapperStyler() {
                                                                                                      if (!$this->objWrapperStyler) {
                                                                                                          $this->objWrapperStyler = new QTagStyler();
                                                                                                      }
                                                                                                      return $this->objWrapperStyler;

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

                                                                                                  protected function GetWrapperAttributes($attributeOverrides = null) {
                                                                                                      $styleOverrides = null;
                                                                                                      if (!$this->blnDisplay) {
                                                                                                          $styleOverrides = ['display'=>'none'];
                                                                                                      }

                                                                                          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() {
                                                                                          
                                                                                                      $strToReturn = '';
                                                                                          
                                                                                                      if ($this->objResizable)

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

                                                                                                  public function Render($blnDisplayOutput = true /* ... */) {
                                                                                                      $blnMinimized = QApplication::$Minimize;
                                                                                                      if ($this->blnMinimize) {
                                                                                                          QApplication::$Minimize = true;
                                                                                                      }

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

                                                                                                  public function MarkAsRendered() {
                                                                                                      $this->blnRendered = true;
                                                                                                  }

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

                                                                                                  public function GetCustomAttribute($strName) {
                                                                                                      return $this->GetHtmlAttribute($strName);
                                                                                                  }

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

                                                                                                  public function GetJavaScriptForEvent($strEventName) {
                                                                                                      return QAction::RenderActions($this, $strEventName, $this->objActionArray[$strEventName]);
                                                                                                  }

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

                                                                                                  public function Refresh() {
                                                                                                      if ((!$this->blnRendered) &&
                                                                                                              (!$this->blnRendering))
                                                                                                          $this->MarkAsModified();
                                                                                                  }

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

                                                                                                  public function ValidateControlAndChildren() {
                                                                                                      // Initially Assume Validation is True
                                                                                                      $blnToReturn = true;
                                                                                          
                                                                                                      // Check the Control Itself

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

                                                                                                  public function OnFocus(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QFocusEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  public function SetForm($objForm) {
                                                                                                      $this->objForm = $objForm;
                                                                                                  }

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

                                                                                                  public function Focus() {
                                                                                                      QApplication::ExecuteControlCommand($this->strControlId, 'focus');
                                                                                                  }

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

                                                                                                  public function ValidationReset() {
                                                                                                      if (($this->strValidationError) || ($this->strWarning)) {
                                                                                                          $this->blnModified = true;
                                                                                                      }
                                                                                                      $this->strValidationError = null;

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

                                                                                                  public function GetEndHtml() {}

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

                                                                                                  protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
                                                                                                      if ($blnForceAsBlockElement) {
                                                                                                          $this->blnIsBlockElement = true;    // must be remembered for ajax drawing
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  public function RenderWithError($blnDisplayOutput = true) {
                                                                                                      // Call RenderHelper
                                                                                                      $this->RenderHelper(func_get_args(), __FUNCTION__);
                                                                                          
                                                                                                      /**

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

                                                                                                  public function AddPluginCssFile($strPluginName, $strCssFileName) {
                                                                                                      if (strpos($strCssFileName, "http") === 0) {
                                                                                                          $this->AddCssFile($strCssFileName);    // plugin uses style sheet from some other website
                                                                                                      }
                                                                                                      else {

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

                                                                                                  public function RenderCssStyles($styleOverrides = null) {
                                                                                                      $styles = $this->styles;
                                                                                                      if ($styleOverrides) {
                                                                                                          $styles = array_merge($this->styles, $styleOverrides);
                                                                                                      }

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

                                                                                                  public function GetWrapperId() {
                                                                                                      if ($this->blnUseWrapper) {
                                                                                                          return $this->ControlId . '_ctl';
                                                                                                      } else {
                                                                                                          return $this->ControlId;

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

                                                                                                  public function AddAction($objEvent, $objAction) {
                                                                                                      if (!($objEvent instanceof QEvent)) {
                                                                                                          throw new QCallerException('First parameter of AddAction is expecting an object of type QEvent');
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  public function SetCustomAttribute($strName, $strValue) {
                                                                                                      $this->SetHtmlAttribute($strName, $strValue);
                                                                                                  }

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

                                                                                                  public function SetCustomStyle($strName, $strValue) {
                                                                                                      $this->SetCssStyle($strName, $strValue);
                                                                                                  }

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

                                                                                                  public function RenderHtmlAttributes($attributeOverrides = null, $styleOverrides = null) {
                                                                                                      $attributes['id'] = $this->strControlId;
                                                                                                      if ($attributeOverrides) {
                                                                                                          $attributes = array_merge($attributes, $attributeOverrides);
                                                                                                      }

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

                                                                                                  public function GetStyleAttributes() {
                                                                                                      return $this->RenderCssStyles();
                                                                                                  }

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

                                                                                                  public function RemoveWrapperCssClass($strClass) {
                                                                                                      if ($this->GetWrapperStyler()->RemoveCssClass($strClass)) {
                                                                                                          $this->MarkAsWrapperModified();
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  public function IsDescendantOf ($objControl) {
                                                                                                      $objParent = $this->objParentControl;
                                                                                                      while ($objParent) {
                                                                                                          if ($objParent == $objControl) {
                                                                                                              return true;

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

                                                                                                  public function AddAttributeScript ($strMethod, $args /*, ... */)
                                                                                                  {
                                                                                                      $args = func_get_args();
                                                                                                      $this->strAttributeScripts[] = $args;
                                                                                                  }

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

                                                                                                  protected function RenderChildren($blnDisplayOutput = true) {
                                                                                                      $strToReturn = "";
                                                                                          
                                                                                                      foreach ($this->GetChildControls() as $objControl) {
                                                                                                          if (!$objControl->Rendered) {

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

                                                                                                  public function MarkAsWrapperModified() {
                                                                                                      $this->blnWrapperModified = true;
                                                                                                      $this->blnModified = true;
                                                                                                  }

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

                                                                                                  public function Watch (QQNode $objNode)
                                                                                                  {
                                                                                                      if (!$this->objWatcher) {
                                                                                                          if (defined('WATCHER_CLASS')) {
                                                                                                              $class = WATCHER_CLASS;

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

                                                                                                  public function AddPluginJavascriptFile($strPluginName, $strJsFileName) {
                                                                                                      if (strpos($strJsFileName, "http") === 0) {
                                                                                                          $this->AddJavascriptFile($strJsFileName);    // plugin uses js from some other website
                                                                                                      }
                                                                                                      else {

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

                                                                                                  public function OnChange(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QChangeEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  public function OnKeyUp(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QKeyUpEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  public function GetAttributes() {
                                                                                                      return $this->RenderHtmlAttributes() . ' ';
                                                                                                  }

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

                                                                                                  protected function GetNonWrappedHtml() {}

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

                                                                                                  public function MarkAsModified() {
                                                                                                      $this->blnModified = true;
                                                                                                      /*
                                                                                                       TODO: Implement and test the code below to reduce the amount of redrawing. In particular, the current
                                                                                                          implementation will cause invisible and display:none controls to be redrawn whenever something changes,

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

                                                                                                  public function SetParentControl($objControl) {
                                                                                                      // Mark this object as modified
                                                                                                      $this->MarkAsModified();
                                                                                          
                                                                                                      // Mark the old parent (if applicable) as modified

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

                                                                                                  public function RemoveCustomStyle($strName) {
                                                                                                      $this->RemoveCssStyle($strName);
                                                                                                  }

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

                                                                                                  public function GetCustomAttributes() {
                                                                                                      return $this->RenderHtmlAttributes();
                                                                                                  }

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

                                                                                                  protected function RenderWrappedOutput($strOutput, $blnForceAsBlockElement = false) {
                                                                                                      $strTag = ($this->blnIsBlockElement || $blnForceAsBlockElement) ? 'div' : 'span';
                                                                                                      $overrides = ['id'=>$this->GetWrapperId()];
                                                                                                      $attributes = $this->GetWrapperAttributes($overrides);
                                                                                          
                                                                                          

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

                                                                                                  public function SetFocus() {
                                                                                                      $this->Focus();
                                                                                                  }

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

                                                                                                  public function MakeCurrent() {
                                                                                                      if ($this->objWatcher) {
                                                                                                          $this->objWatcher->MakeCurrent();
                                                                                                      }
                                                                                                  }

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

                                                                                                  public function _GetFormAttributes() {
                                                                                                      if (QApplication::$RequestMode == QRequestMode::Ajax) {
                                                                                                          if ($this->IsModified()) {
                                                                                                              return $this->strFormAttributes;
                                                                                                          }

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

                                                                                                  public function AddWrapperCssClass($strClass) {
                                                                                                      if ($this->GetWrapperStyler()->AddCssClass($strClass)) {
                                                                                                          $this->MarkAsWrapperModified();
                                                                                                      }
                                                                                                      /**

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

                                                                                                  public function RenderAjax() {
                                                                                                      // Only render if this control has been modified at all
                                                                                                      $controls = [];
                                                                                                      if ($this->IsModified()) {
                                                                                                          // Render if (1) object has no parent or (2) parent was not rendered nor currently being rendered

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

                                                                                                  public function OnClick(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QClickEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  public function AddActionArray($objEvent, $objActionArray) {
                                                                                                      if (!($objEvent instanceof QEvent)) {
                                                                                                          throw new QCallerException('First parameter of AddAction is expecting on object of type QEvent');
                                                                                                      }
                                                                                          
                                                                                          

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

                                                                                                  public function ResetOnPageStatus() {
                                                                                                      $this->blnOnPage = false;
                                                                                                  }

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

                                                                                                  public function OnDoubleClick(QAction $objAction, $arrEventOptions=null) {
                                                                                                      $this->AddAction(QClickEvent::CreateWithOptions($arrEventOptions), $objAction);
                                                                                                  }

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

                                                                                                  protected function GetWrapperStyleAttributes($blnIsBlockElement = false) {
                                                                                                      return $this->GetWrapperStyler()->RenderCssStyles();
                                                                                                  }

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

                                                                                                  public function RenderAttributeScripts()
                                                                                                  {
                                                                                                      if ($this->strAttributeScripts) {
                                                                                                          foreach ($this->strAttributeScripts as $scriptArgs) {
                                                                                                              array_unshift($scriptArgs, $this->getJqControlId());

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

                                                                                                  public function RenderWithName($blnDisplayOutput = true) {
                                                                                                      ////////////////////
                                                                                                      // Call RenderHelper
                                                                                                      $this->RenderHelper(func_get_args(), __FUNCTION__);
                                                                                                      ////////////////////

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

                                                                                                  public function GetAllActions($strEventType, $strActionType = null) {
                                                                                                      $objArrayToReturn = array();
                                                                                                      if ($this->objActionArray) foreach ($this->objActionArray as $objActionArray) {
                                                                                                          foreach ($objActionArray as $objAction)
                                                                                                              if (get_class($objAction->Event) == $strEventType) {

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

                                                                                                  public function RenderActionScripts() {
                                                                                                      $strToReturn = '';
                                                                                                      foreach ($this->objActionArray as $strEventName => $objActions) {
                                                                                                          $strToReturn .= $this->GetJavaScriptForEvent($strEventName);
                                                                                                      }

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

                                                                                                  public function VarExport($blnReturn = true) {
                                                                                                      if ($this->objForm)
                                                                                                          $this->objForm = $this->objForm->FormId;
                                                                                                      if ($this->objParentControl)
                                                                                                          $this->objParentControl = $this->objParentControl->ControlId;

                                                                                          CamelCaseMethodName

                                                                                          Since: 0.2

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

                                                                                          Example

                                                                                          class ClassName {
                                                                                              public function get_name() {
                                                                                              }
                                                                                          }

                                                                                          Source

                                                                                          The method GetModelConnectorParams is not named in camelCase.
                                                                                          Open

                                                                                                  public static function GetModelConnectorParams() {
                                                                                                      return array(
                                                                                                          new QModelConnectorParam ('QControl', 'CssClass', 'Css Class assigned to the control', QType::String),
                                                                                                          new QModelConnectorParam ('QControl', 'AccessKey', 'Access Key to focus control', QType::String),
                                                                                                          new QModelConnectorParam ('QControl', 'CausesValidation', 'How and what to validate. Can also be set to a control.', QModelConnectorParam::SelectionList,

                                                                                          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