DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method buildPages has 342 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function buildPages(TblPerson $tblPerson = null)
    {

        $personId = $tblPerson ? $tblPerson->getId() : 0;

    Method frontendDivision has 342 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendDivision(
            $PrepareId = null,
            $DivisionId = null,
            $IsLeave = false,
            $IsAllYears = false
    Severity: Major
    Found in Application/Education/Certificate/Approve/Frontend.php - About 1 day to fix

      File Frontend.php has 736 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace SPHERE\Application\Reporting\Dynamic;
      
      use SPHERE\Application\Corporation\Group\Service\Entity\ViewCompanyGroupMember;
      use SPHERE\Application\Education\Lesson\Term\Service\Entity\ViewYear;
      Severity: Major
      Found in Application/Reporting/Dynamic/Frontend.php - About 1 day to fix

        File Frontend.php has 733 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 26.07.2016
        Severity: Major
        Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 1 day to fix

          Function formFilterPdf has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring.
          Open

              private function formFilterPdf($GroupByTime, $IsParent = false, $Data = null)
              {
          
                  $SelectBoxContent = array();
          
          
          Severity: Minor
          Found in Application/Api/Setting/UserAccount/ApiUserAccount.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

          Function frontendDashboard has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendDashboard()
              {
          
                  $Stage = new Stage('Schulsoftware','Roadmap');
          
          
          Severity: Minor
          Found in Application/Platform/Roadmap/Roadmap.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

          Function updateAbiturExamGrades has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring.
          Open

              public function updateAbiturExamGrades(
                  IFormInterface $form,
                  TblPrepareCertificate $tblPrepare,
                  TblPerson $tblPerson,
                  $Data,
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Service.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

          File Data.php has 732 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\Education\Graduation\Evaluation\Service;
          
          use SPHERE\Application\Education\Graduation\Evaluation\Service\Entity\TblTask;
          use SPHERE\Application\Education\Graduation\Evaluation\Service\Entity\TblTest;
          Severity: Major
          Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 1 day to fix

            Method buildPages has 338 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function buildPages(TblPerson $tblPerson = null)
                {
            
                    $personId = $tblPerson ? $tblPerson->getId() : 0;
            
            

              Method buildPages has 338 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function buildPages(TblPerson $tblPerson = null)
                  {
              
                      $personId = $tblPerson ? $tblPerson->getId() : 0;
              
              

                File Frontend.php has 729 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace SPHERE\Application\Billing\Bookkeeping\Balance;
                
                use SPHERE\Application\Api\Billing\Inventory\ApiDocument;
                Severity: Major
                Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 1 day to fix

                  File FrontendStudentTransfer.php has 729 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 14.12.2018
                  Severity: Major
                  Found in Application/People/Person/Frontend/FrontendStudentTransfer.php - About 1 day to fix

                    Method createInterestedPersonsFromFile has 336 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createInterestedPersonsFromFile(
                            IFormInterface $Form = null,
                            UploadedFile $File = null
                        ) {
                    
                    
                    Severity: Major
                    Found in Application/Transfer/Import/Schneeberg/Service.php - About 1 day to fix

                      Function frontendLayoutPersonNew has a Cognitive Complexity of 84 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function frontendLayoutPersonNew(TblPerson $tblPerson)
                          {
                      
                              $addressList = array();
                              if (($tblAddressList = Address::useService()->getAddressAllByPerson($tblPerson))){
                      Severity: Minor
                      Found in Application/Contact/Address/Frontend.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

                      Function setKamenzReportOsContent has a Cognitive Complexity of 84 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public static function setKamenzReportOsContent(
                              $Content
                          ) {
                      
                              $tblCurrentYearList = false;
                      Severity: Minor
                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.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

                      File Data.php has 719 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Created by PhpStorm.
                       * User: Kauschke
                       * Date: 21.09.2016
                      Severity: Major
                      Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 1 day to fix

                        Function saveAddBasket has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function saveAddBasket($Identifier = '', $Basket = array())
                            {
                        
                                // Handle error's
                                if($form = $this->checkInputBasket($Identifier, '', $Basket)){
                        Severity: Minor
                        Found in Application/Api/Billing/Bookkeeping/ApiBasket.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

                        Function createDonorsFromFile has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function createDonorsFromFile(
                                IFormInterface $Form = null,
                                UploadedFile $File = null
                            ) {
                                /**
                        Severity: Minor
                        Found in Application/Transfer/Import/Hormersdorf/Service.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

                        Function createClubMembersFromFile has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function createClubMembersFromFile(
                                IFormInterface $Form = null,
                                UploadedFile $File = null
                            ) {
                        
                        
                        Severity: Minor
                        Found in Application/Transfer/Import/Muldental/Service.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

                        Function createPersonsFromFile has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function createPersonsFromFile(
                                IFormInterface $Form = null,
                                UploadedFile $File = null
                            ) {
                        
                        
                        Severity: Minor
                        Found in Application/Transfer/Import/Herrnhut/Service.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

                        Severity
                        Category
                        Status
                        Source
                        Language