DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendParentTeacherConferenceList has 145 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendParentTeacherConferenceList($DivisionId = null)
    {

        $Stage = new Stage('Individuelle Auswertung', 'Anwesenheitsliste Elternabende');
        if (null !== $DivisionId) {
Severity: Major
Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 5 hrs to fix

    Method createCompaniesFromFile has 145 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method getPdfForm has 145 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getPdfForm(TblItem $tblItem, $tblDocumentList, $countPdfs, $Balance = null, $Data = null)
          {
      
              $Location = '';
              $Date = '';
      Severity: Major
      Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 5 hrs to fix

        File GradebookOverview.php has 408 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace SPHERE\Application\Api\Document\Standard\Repository\GradebookOverview;
        
        use SPHERE\Application\Api\Document\AbstractDocument;

          File HorHj.php has 407 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\FESH;
          
          use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
          use SPHERE\Application\Education\Certificate\Generator\Repository\Element;

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

            <?php
            
            namespace SPHERE\Application\Billing\Accounting\Debtor\Service;
            
            use SPHERE\Application\Billing\Accounting\Debtor\Service\Entity\TblBankAccount;
            Severity: Minor
            Found in Application/Billing/Accounting/Debtor/Service/Data.php - About 5 hrs to fix

              Method updateSerialLetter has 144 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function updateSerialLetter(
                      IFormInterface $Stage = null,
                      TblSerialLetter $tblSerialLetter,
                      $SerialLetter = null,
                      $FilterGroup = null,
              Severity: Major
              Found in Application/Reporting/SerialLetter/Service.php - About 5 hrs to fix

                Function getCompanySchoolByPerson has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getCompanySchoolByPerson(TblPerson $tblPerson, $IsParent = false)
                    {
                
                        $tblCompany = false;
                        if($IsParent){
                Severity: Minor
                Found in Application/Setting/User/Account/Service.php - About 5 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 frontendSettingAllConsumers has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function frontendSettingAllConsumers($SettingId = null)
                    {
                        $stage = new Stage('Mandant' , 'Einstellungen');
                        $stage->addButton(new Standard('Zurück', '/Setting/Consumer/Setting', new ChevronLeft()));
                        if (($tblSetting = Consumer::useService()->getSettingById($SettingId))) {
                Severity: Minor
                Found in Application/Setting/Consumer/Setting/Frontend.php - About 5 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 setSubjectRow has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                Open

                    private function setSubjectRow($personId, $subjectName = '&nbsp;', $isForeignLanguage = false, $isLastRow = false)
                    {
                
                        $textSize = '13px';
                        $colorPoints = '#BBB';

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

                    public function createAddressPersonSelf(TblSerialLetter $tblSerialLetter)
                    {
                        $tblSerialPersonList = SerialLetter::useService()->getSerialPersonBySerialLetter($tblSerialLetter);
                        if ($tblSerialPersonList) {
                            $CreateArray = array();
                Severity: Minor
                Found in Application/Reporting/SerialLetter/Service.php - About 5 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 destroyAccount has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function destroyAccount(TblAccount $tblAccount)
                    {
                
                        $Manager = $this->getConnection()->getEntityManager();
                        /** @var TblAccount $Entity */

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

                    public function frontendLeaveStudentAbiturInformation($Id = null, $Data = null)
                    {
                
                        if (($tblLeaveStudent = Prepare::useService()->getLeaveStudentById($Id))
                            && ($tblPerson = $tblLeaveStudent->getServiceTblPerson())
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Frontend.php - About 5 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 updateAbsence has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function updateAbsence(IFormInterface $Stage = null, TblAbsence $tblAbsence, $BasicRoute = '', $Data)
                    {
                
                        /**
                         * Skip to Frontend
                Severity: Minor
                Found in Application/Education/ClassRegister/Absence/Service.php - About 5 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 getGradeLanesForGradeInformation has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method getContent has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function getContent()
                      {
                          $sliceList = array();
                  
                          $sliceList[] = (new Slice())
                  Severity: Major
                  Found in Application/Api/Document/Standard/Repository/KamenzReportGym/E05.php - About 5 hrs to fix

                    Method createExtendedClassList has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createExtendedClassList(TblDivision $tblDivision)
                        {
                    
                            $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                    
                    
                    Severity: Major
                    Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 5 hrs to fix

                      Method createSerialLetter has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createSerialLetter(
                              IFormInterface $Stage = null,
                              $SerialLetter,
                              $FilterGroup = null,
                              $FilterPerson = null,
                      Severity: Major
                      Found in Application/Reporting/SerialLetter/Service.php - About 5 hrs to fix

                        Method createStaffsFromFile has 143 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/Chemnitz/Service.php - About 5 hrs to fix

                          Method loadMinimumGradeCountReporting has 142 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function loadMinimumGradeCountReporting($Data = null, $IsDivisionTeacher = null, $PersonId = null)
                              {
                                  ini_set('memory_limit', '2G');
                          
                                  $IsDivisionTeacher = $IsDivisionTeacher === 'true';
                            Severity
                            Category
                            Status
                            Source
                            Language