DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getFirstLetterContent has 252 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getFirstLetterContent($Height = '500px')
    {

        $Slice = new Slice();
        if ($this->FieldValue['IsParent']) {

    Method createStudentsPrimarySchoolFromFile has 252 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      File B01.php has 586 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Created by PhpStorm.
       * User: lehmann
       * Date: 27.06.2017
      Severity: Major
      Found in Application/Api/Document/Standard/Repository/KamenzReportGym/B01.php - About 1 day to fix

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

            public static function getContent()
            {
                $sliceList = array();
        
                $left = '50%';
        Severity: Major
        Found in Application/Api/Document/Standard/Repository/KamenzReportGS/E02_1.php - About 1 day to fix

          Method buildDocument has 250 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function buildDocument($pageList = array())
              {
                  return (new Frame())->addDocument((new Document())
                      ->addPage((new Page())
                          ->addSlice((new Slice())
          Severity: Major
          Found in Application/Api/Document/Custom/Zwickau/Repository/SchoolContract.php - About 1 day to fix

            Method frontendPlatform has 250 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendPlatform()
                {
                    $Global = $this->getGlobal();
                    $this->getDebugger()->screenDump($Global);
                    $this->getDebugger()->screenDump($_REQUEST);
            Severity: Major
            Found in Application/Platform/System/Test/Frontend.php - About 1 day to fix

              Method frontendLectureshipShow has 250 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/Untis/Import', new ChevronLeft()));
                      $tblUntisImportLectureshipList = Import::useService()->getUntisImportLectureshipAll(true);
              Severity: Major
              Found in Application/Transfer/Untis/Import/Lectureship.php - About 1 day to fix

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

                    public static function getContent()
                    {
                        $sliceList = array();
                
                        $left = '50%';
                Severity: Major
                Found in Application/Api/Document/Standard/Repository/KamenzReportGS/E02.php - About 1 day to fix

                  Method createGroupList has 249 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createGroupList(TblGroup $tblGroup)
                      {
                  
                          $tblPersonList = Group::useService()->getPersonAllByGroup($tblGroup);
                          $TableContent = array();
                  Severity: Major
                  Found in Application/Reporting/Standard/Person/Service.php - About 1 day to fix

                    Method frontendPersonAddressContent has 249 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private function frontendPersonAddressContent($Id = null)
                        {
                    
                            $Stage = new Stage('Adresslisten für Serienbriefe', 'Person mit Adressen auswählen');
                            $Stage->addButton(new Standard('Zurück', '/Reporting/SerialLetter', new ChevronLeft()));
                    Severity: Major
                    Found in Application/Reporting/SerialLetter/Frontend.php - About 1 day to fix

                      Function getBasicCourses has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private function getBasicCourses(TblPerson $tblPerson = null, $IsGradeUnderlined = true)
                          {
                      
                              $slice = new Slice();
                              $personId = $tblPerson ? $tblPerson->getId() : 0;

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

                          private function getBasicCourses(TblPerson $tblPerson = null, $IsGradeUnderlined = true)
                          {
                      
                              $slice = new Slice();
                              $personId = $tblPerson ? $tblPerson->getId() : 0;

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

                          public function getDivisionSelectedStage(Stage $Stage, $DivisionId, $isTeacher = false)
                          {
                      
                              $tblDivision = Division::useService()->getDivisionById($DivisionId);
                              if ($tblDivision) {
                      Severity: Minor
                      Found in Application/Education/ClassRegister/ClassRegister.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 Frontend.php has 578 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

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

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

                        <?php
                        namespace SPHERE\Application\People\Person;
                        
                        use SPHERE\Application\Contact\Address\Address;
                        use SPHERE\Application\Contact\Mail\Mail;
                        Severity: Major
                        Found in Application/People/Person/Service.php - About 1 day to fix

                          File StudentTransfer.php has 575 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

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

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

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

                                Method frontendEditAbsenceMonth has 244 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendEditAbsenceMonth(
                                        $DivisionId = null,
                                        $Month = null,
                                        $Year = null,
                                        $BasicRoute = '',
                                Severity: Major
                                Found in Application/Education/ClassRegister/Absence/Frontend.php - About 1 day to fix

                                  Function createBillingDocumentPdf has a Cognitive Complexity of 62 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public static function createBillingDocumentPdf($Data = array(), $Redirect = true)
                                      {
                                  
                                          if ($Redirect) {
                                              return \SPHERE\Application\Api\Education\Certificate\Generator\Creator::displayWaitingPage(
                                  Severity: Minor
                                  Found in Application/Api/Document/Creator.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