DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

    public static function createModule( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Severity: Minor
Found in Application/AppTrait.php - About 45 mins to fix

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

        public static function createFooter( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
    Severity: Minor
    Found in Application/AppTrait.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                              if (is_object($Frontend)) {
                                                  $HashList[] = get_class($Frontend);
                                              }
      Severity: Major
      Found in Common/Frontend/Form/Structure/Form.php - About 45 mins to fix

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

            public static function createService( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
        Severity: Minor
        Found in Application/AppTrait.php - About 45 mins to fix

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

              public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false, $Anchor = null)
          Severity: Minor
          Found in Common/Frontend/Link/Repository/Link.php - About 45 mins to fix

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

                    $Name,
                    $Label = '',
                    $Data = array(),
                    IIconInterface $Icon = null,
                    $useAutoValue = true,
            Severity: Minor
            Found in Common/Frontend/Form/Repository/Field/SelectBox.php - About 45 mins to fix

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

                  public static function createCluster( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
              Severity: Minor
              Found in Application/AppTrait.php - About 45 mins to fix

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

                        $Source,
                        $Header = '',
                        ILinkInterface $Link = null,
                        $Description = '',
                        $Title = '',
                Severity: Minor
                Found in Common/Frontend/Layout/Structure/Teaser.php - About 45 mins to fix

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

                          $Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = true, $Style = self::STYLE_BUTTON_DEFAULT
                  Severity: Minor
                  Found in Common/Frontend/Link/Repository/External.php - About 45 mins to fix

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

                        public static function createApplication( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
                    Severity: Minor
                    Found in Application/AppTrait.php - About 45 mins to fix

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

                          public function frontendMyAccount($Setting = array())
                          {
                      
                              $Stage = new Stage('Mein Benutzerkonto', 'Profil');
                      
                      
                      Severity: Minor
                      Found in Application/Setting/MyAccount/Frontend.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 getContent has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function getContent()
                          {
                      
                              if (empty( $this->Menu )) {
                                  if (empty( $this->Description )) {
                      Severity: Minor
                      Found in Common/Frontend/Layout/Repository/Title.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

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

                          public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false, $Anchor = null)
                      Severity: Minor
                      Found in Common/Frontend/Link/Repository/Standard.php - About 45 mins to fix

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

                                $Cluster,
                                $Application,
                                $Module = null,
                                $Identifier,
                                $Type = TblSetting::TYPE_BOOLEAN,
                        Severity: Minor
                        Found in Application/Setting/Consumer/Service.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      if ($countRow >= $MaxResult) {
                                                          break;
                                                      }
                          Severity: Major
                          Found in Application/Setting/User/Account/Frontend.php - About 45 mins to fix

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

                                public static function widgetSponsorAssociation()
                                {
                                    $tblSponsorAssociationAll = SponsorAssociation::useService()->getSponsorAssociationAll();
                                    if ($tblSponsorAssociationAll) {
                                        /** @var TblSponsorAssociation $tblSponsorAssociation */
                            Severity: Minor
                            Found in Application/Setting/Consumer/Consumer.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 generateUserName has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function generateUserName(TblPerson $tblPerson = null, TblConsumer $tblConsumer = null)
                                {
                                    $UserName = '';
                            
                                    if ($tblConsumer) {
                            Severity: Minor
                            Found in Application/Setting/User/Account/Service.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

                            Avoid deeply nested control flow statements.
                            Open

                                                            if ($tblPersonCustody && $tblPersonCustody->getId() != $tblPerson->getId()) {
                                                                $CustodyList[] = new Container($tblPersonCustody->getLastFirstName());
                                                            }
                            Severity: Major
                            Found in Application/Setting/User/Account/Frontend.php - About 45 mins to fix

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

                                  public function frontendPasswordGeneration($Id = null, $Path = '/Setting/User', $IsParent = false, $Data = null)
                                  {
                              
                                      $Stage = new Stage('Account Passwort', 'neu generieren');
                                      if ($Id) {
                              Severity: Minor
                              Found in Application/Setting/User/Account/Frontend.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 widgetResponsibility has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public static function widgetResponsibility()
                                  {
                                      $tblResponsibilityAll = Responsibility::useService()->getResponsibilityAll();
                                      if ($tblResponsibilityAll) {
                                          /** @var TblResponsibility $tblResponsibility */
                              Severity: Minor
                              Found in Application/Setting/Consumer/Consumer.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

                              Severity
                              Category
                              Status
                              Source
                              Language