DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

    public function buildPages(TblPerson $tblPerson = null)
    {

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

    Function getEZSHObligation has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getEZSHObligation($personId, $TextSize = '14px', $isProfile = false)
        {
    
            $tblPerson = Person::useService()->getPersonById($personId);
    
    

    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 getContent has 278 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/E01.php - About 1 day to fix

      Method frontendLectureshipShow has 278 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendLectureshipShow($Visible = false)
          {
              $Stage = new Stage('Lehraufträge', 'Übersicht');
              $Stage->addButton(new Standard('Zurück', '/Transfer/Indiware/Import', new ChevronLeft()));
              $tblIndiwareImportLectureshipList = Import::useService()->getIndiwareImportLectureshipAll(true);
      Severity: Major
      Found in Application/Transfer/Indiware/Import/Lectureship.php - About 1 day to fix

        File Support.php has 630 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        namespace SPHERE\Application\People\Meta\Student\Service\Service;
        
        use SPHERE\Application\People\Meta\Student\Service\Data;
        use SPHERE\Application\People\Meta\Student\Service\Entity\TblHandyCap;
        Severity: Major
        Found in Application/People/Meta/Student/Service/Service/Support.php - About 1 day to fix

          Method createPrintClassList has 276 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createPrintClassList(TblDivision $tblDivision)
              {
          
                  $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                  $TableContent = array();
          Severity: Major
          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 day to fix

            Method setChapterGrades has 275 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function setChapterGrades($Search)
                {
            
                    $Chapter = $this->Book->createChapter('Zensuren', '', true);
                    if ($Chapter->getHash() == $this->Book->getCurrentChapter()) {
            Severity: Major
            Found in Common/Documentation/Content/Kreda.php - About 1 day to fix

              File MsAbsRs.php has 625 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

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

                Method getContent has 275 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/KamenzReport/B02.php - About 1 day to fix

                  Function countGradesAndStudentsByTest has a Cognitive Complexity of 69 (exceeds 5 allowed). Consider refactoring.
                  Open

                      private function countGradesAndStudentsByTest(TblTest $tblTest, &$countGrades, &$countStudents)
                      {
                          $tblDivision = $tblTest->getServiceTblDivision();
                          $tblSubject = $tblTest->getServiceTblSubject();
                          $tblSubjectGroup = $tblTest->getServiceTblSubjectGroup();
                  Severity: Minor
                  Found in Application/Education/Graduation/Evaluation/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

                  File Service.php has 621 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 01.06.2016
                  Severity: Major
                  Found in Application/Transfer/Import/LebensweltZwenkau/Service.php - About 1 day to fix

                    Method getContent has 272 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/KamenzReport/E12.php - About 1 day to fix

                      Method setupDatabaseContent has 269 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function setupDatabaseContent()
                          {
                      
                              if (($tblSetting = $this->createSetting('People', 'Meta', 'Student', 'Automatic_StudentNumber',
                                  TblSetting::TYPE_BOOLEAN, '0'))) {
                      Severity: Major
                      Found in Application/Setting/Consumer/Service/Data.php - About 1 day to fix

                        Method updateGroupFromFile has 268 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method getStudentFilterResult has 267 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function getStudentFilterResult($Year = null, $Division = null, AbstractField $Field)
                              {
                                  /** @var SelectBox|TextField $Field */
                                  $Label = $Field->getLabel();
                          
                          
                          Severity: Major
                          Found in Application/Api/MassReplace/StudentFilter.php - About 1 day to fix

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

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

                              Method createInterestedPersonsFromFile has 266 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/Hormersdorf/Service.php - About 1 day to fix

                                Method getCMSOrientationStandard has 265 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getCMSOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
                                    {
                                
                                        $tblPerson = Person::useService()->getPersonById($personId);
                                
                                

                                  File DataMaintenance.php has 608 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  namespace SPHERE\Application\Platform\System\DataMaintenance;
                                  
                                  use SPHERE\Application\Contact\Address\Address;
                                  Severity: Major
                                  Found in Application/Platform/System/DataMaintenance/DataMaintenance.php - About 1 day to fix

                                    Function createMinimumGradeCountFromFile has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function createMinimumGradeCountFromFile(
                                            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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language