DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

<?php
/**
 * Created by PhpStorm.
 * User: Kauschke
 * Date: 20.09.2016

    Method setSubjectRow has 189 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function setSubjectRow($personId, $subjectName = '&nbsp;', $hasAdvancedCourse = true, $isLastRow = false)
        {
    
            $color = '#BBB';
            $isAdvancedSubject = false;

      Method createContactsFromFile has 189 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method frontendSearch has 189 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendSearch($Id = false)
            {
        
                $Stage = new Stage('Suche', 'nach Gruppe');
                $Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
        Severity: Major
        Found in Application/People/Search/Group/Frontend.php - About 7 hrs to fix

          Method frontendFillStudentTransfer has 189 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendFillStudentTransfer($Id = null)
              {
          
                  $Stage = new Stage('Schülerüberweisung', 'Erstellen');
                  $Stage->addButton(new Standard('Zurück', '/Document/Standard/StudentTransfer', new ChevronLeft()));
          Severity: Major
          Found in Application/Document/Standard/StudentTransfer/StudentTransfer.php - About 7 hrs to fix

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

            <?php
            namespace SPHERE\Application\People\Meta\Student\Service;
            
            use SPHERE\Application\People\Meta\Student\Service\Data\Support;
            use SPHERE\Application\People\Meta\Student\Service\Entity\TblStudent;
            Severity: Minor
            Found in Application/People/Meta/Student/Service/Data.php - About 7 hrs to fix

              File E07.php has 480 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Created by PhpStorm.
               * User: lehmann
               * Date: 23.06.2017
              Severity: Minor
              Found in Application/Api/Document/Standard/Repository/KamenzReportGS/E07.php - About 7 hrs to fix

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

                <?php
                namespace SPHERE\Application\Platform\System\Test;
                
                use MOC\V\Core\FileSystem\FileSystem;
                use SPHERE\Application\Api\Platform\Test\ApiSystemTest;
                Severity: Minor
                Found in Application/Platform/System/Test/Frontend.php - About 7 hrs to fix

                  Method getObligationToVotePartCustomForCoswig has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function getObligationToVotePartCustomForCoswig($personId, $TextSize = '14px', $IsGradeUnderlined = false)
                      {
                  
                          $tblPerson = Person::useService()->getPersonById($personId);
                  
                  
                  Severity: Major
                  Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 7 hrs to fix

                    Method buildPage has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function buildPage()
                        {
                    
                            $SmallTextSize = '7px';
                            $InputText = '12px';

                      Method frontendTransferOltIntegration has 186 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendTransferOltIntegration()
                          {
                      
                              $Stage = new Stage('Integartion', 'Übernehmen');
                              $Stage->addButton(new Standard('Zurück', __NAMESPACE__, new ChevronLeft()));
                      Severity: Major
                      Found in Application/Platform/System/DataMaintenance/DataMaintenance.php - About 7 hrs to fix

                        Function getPdfForm has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function getPdfForm(TblPerson $tblPerson, TblUserAccount $tblUserAccount, $IsParent = false)
                            {
                        
                        //        $tblStudentCompanyId = false;
                                $tblSchoolAll = School::useService()->getSchoolAll();
                        Severity: Minor
                        Found in Application/Setting/User/Account/Frontend.php - About 7 hrs to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Function downloadMultiLeavePdf has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public static function downloadMultiLeavePdf($DivisionId = null, $Name = 'Abgangszeugnis', $Redirect = true)
                            {
                        
                                if ($Redirect) {
                                    return self::displayWaitingPage('/Api/Education/Certificate/Generator/DownLoadMultiLeavePdf', array(
                        Severity: Minor
                        Found in Application/Api/Education/Certificate/Generator/Creator.php - About 7 hrs to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Function setFieldValue has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function setFieldValue($DataPost)
                            {
                        
                                $tblAccount = false;
                                // Common

                        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 getItemContent has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function getItemContent($PersonId = '', $ItemId = '', $IsOpen = false)
                            {
                        
                                $PanelContent = array();
                                $Accordion = '';
                        Severity: Minor
                        Found in Application/Billing/Accounting/Causer/Frontend.php - About 7 hrs to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Function updatePrepareInformationList has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function updatePrepareInformationList(
                                IFormInterface $Stage = null,
                                TblPrepareCertificate $tblPrepare,
                                TblGroup $tblGroup = null,
                                $Route,
                        Severity: Minor
                        Found in Application/Education/Certificate/Prepare/Service.php - About 7 hrs to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Method createStaffsFromFile has 185 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                            {
                        
                                /**
                                 * Skip to Frontend
                        Severity: Major
                        Found in Application/Transfer/Import/Annaberg/Service.php - About 7 hrs to fix

                          Data has 52 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Data extends AbstractData
                          {
                          
                              public function setupDatabaseContent()
                              {
                          Severity: Major
                          Found in Application/Education/Certificate/Generator/Service/Data.php - About 7 hrs to fix

                            Method frontendRunFilter has 183 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendRunFilter($DynamicFilter = 0, $SearchFieldName = array())
                                {
                                    // BlackFire.io
                            //        $DynamicFilter = 2;
                            
                            
                            Severity: Major
                            Found in Application/Reporting/Dynamic/Frontend.php - About 7 hrs to fix

                              Method createStaffsFromFile has 183 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                                  {
                              
                                      /**
                                       * Skip to Frontend
                              Severity: Major
                              Found in Application/Transfer/Import/Schneeberg/Service.php - About 7 hrs to fix
                                Severity
                                Category
                                Status
                                Source
                                Language