DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method filterObjectList has 116 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function filterObjectList($objectList, $filterYear, $filterLevel, $filterSchoolOption1, $filterSchoolOption2)
    {

        $resultList = array();

Severity: Major
Found in Application/Reporting/CheckList/Service.php - About 4 hrs to fix

    Method updateStudentTransfer has 116 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function updateStudentTransfer(TblPerson $tblPerson, $Meta)
        {
    
            // Student mit Automatischer Schülernummer anlegen falls noch nicht vorhanden
            $tblStudent = $tblPerson->getStudent(true);
    Severity: Major
    Found in Application/People/Meta/Student/Service.php - About 4 hrs to fix

      Method frontendPreview has 116 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendPreview($PrepareId = null, $Route = 'Teacher')
          {
      
              $Stage = new Stage('Noteninformation', 'Klassenübersicht');
      
      
      Severity: Major
      Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 4 hrs to fix

        File FrontendReadOnly.php has 359 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 17.12.2018
        Severity: Minor
        Found in Application/Corporation/Company/FrontendReadOnly.php - About 4 hrs to fix

          File RadebeulHalbjahresinformation.php has 359 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

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

            Method getForeignLanguages has 115 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function getForeignLanguages(TblPerson $tblPerson = null)
                {
            
                    $slice = new Slice();
                    $slice

              Method frontendSetup has 115 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendSetup($Simulation = true, $Heal = false)
                  {
              
                      $ClassList = get_declared_classes();
                      self::$ServiceRegister = array_merge(
              Severity: Major
              Found in Application/Platform/System/Database/Database.php - About 4 hrs to fix

                Method __construct has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function __construct($File, TblYear $tblYear, $Level = null, StudentCourseControl $Control)
                    {
                        $this->loadFile($File);
                        $this->Year = $tblYear;
                        $this->Level = $Level;
                Severity: Major
                Found in Application/Transfer/Indiware/Import/StudentCourseGateway.php - About 4 hrs to fix

                  Method createCompaniesNurseryFromFile has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Method updateStudentGeneral has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function updateStudentGeneral(TblPerson $tblPerson, $Meta)
                        {
                    
                            // Student mit Automatischer Schülernummer anlegen falls noch nicht vorhanden
                            $tblStudent = $tblPerson->getStudent(true);
                    Severity: Major
                    Found in Application/People/Meta/Student/Service.php - About 4 hrs to fix

                      Method checkCertificateSubjectsForStudents has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function checkCertificateSubjectsForStudents(TblPrepareCertificate $tblPrepare)
                          {
                      
                              $subjectList = array();
                              $resultList = array();
                      Severity: Major
                      Found in Application/Education/Certificate/Prepare/Service.php - About 4 hrs to fix

                        Method getIsFulfilledButNotInGroupByPerson has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getIsFulfilledButNotInGroupByPerson(
                                TblPerson $tblPerson,
                                TblSubject $tblSubject,
                                TblSubjectGroup $tblSubjectGroup,
                                TblDivisionSubject $tblDivisionSubject,
                        Severity: Major
                        Found in Application/Education/Lesson/Division/Filter/Filter.php - About 4 hrs to fix

                          Function getSelectBoxDebtor has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public static function getSelectBoxDebtor(TblPerson $tblPerson)
                              {
                          
                                  if(($tblRelationshipType = Relationship::useService()->getTypeByName('Beitragszahler'))){
                                      if(($tblRelationshipList = Relationship::useService()->getPersonRelationshipAllByPerson($tblPerson,
                          Severity: Minor
                          Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 4 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 checkInputDebtorSelection has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function checkInputDebtorSelection(
                                  $Identifier = '',
                                  $PersonId = '',
                                  $ItemId = '',
                                  $DebtorSelectionId = '',
                          Severity: Minor
                          Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 4 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 getStudentFilterResultListBySerialLetter has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function getStudentFilterResultListBySerialLetter(
                                  TblSerialLetter $tblSerialLetter = null,
                                  $FilterGroupList = array(),
                                  $FilterStudentList = array(),
                                  $FilterYearList = array(),
                          Severity: Minor
                          Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 4 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 formCheckListFilter has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function formCheckListFilter(
                                  $filterPersonObjectList
                              ) {
                          
                                  $yearAll = array();
                          Severity: Minor
                          Found in Application/Reporting/CheckList/Frontend.php - About 4 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 updateDivisionAppointedDateTaskAsBulk has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function updateDivisionAppointedDateTaskAsBulk(
                                  $addList,
                                  $removeList
                              ) {
                          
                          
                          Severity: Minor
                          Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 4 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 contentEditTest has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function contentEditTest(Stage $Stage, $Id, $Test, $BasicRoute)
                              {
                          
                                  $tblTest = Evaluation::useService()->getTestById($Id);
                                  if ($tblTest) {
                          Severity: Minor
                          Found in Application/Education/Graduation/Evaluation/Frontend.php - About 4 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 updatePrepareSetSigner has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function updatePrepareSetSigner(
                                  IFormInterface $Stage,
                                  TblPrepareCertificate $tblPrepare,
                                  TblGroup $tblGroup = null,
                                  $Data,
                          Severity: Minor
                          Found in Application/Education/Certificate/Prepare/Service.php - About 4 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 __toView has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function __toView()
                              {
                          
                                  if (method_exists($this, 'getNameDefinition')) {
                                      $Object = new \ReflectionObject($this);
                          Severity: Minor
                          Found in System/Database/Binding/AbstractView.php - About 4 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

                          Severity
                          Category
                          Status
                          Source
                          Language