DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

ApiSupport has 45 functions (exceeds 20 allowed). Consider refactoring.
Open

class ApiSupport extends Extension implements IApiInterface
{

    use ApiTrait;

Severity: Minor
Found in Application/Api/People/Meta/Support/ApiSupport.php - About 6 hrs to fix

    Service has 45 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Service extends AbstractService
    {
    
        /**
         * @param bool $doSimulation
    Severity: Minor
    Found in Application/Education/Graduation/Evaluation/Service.php - About 6 hrs to fix

      Method getContent has 154 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/F01.php - About 6 hrs to fix

        Method frontendClassList has 154 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendClassList($DivisionId = null)
            {
        
                $Stage = new Stage('EZSH Auswertung', 'Klassenliste');
                if (null !== $DivisionId) {
        Severity: Major
        Found in Application/Reporting/Custom/Herrnhut/Person/Frontend.php - About 6 hrs to fix

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

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

            Method createClassList has 153 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method frontendExtendedClassList has 153 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendExtendedClassList($DivisionId = null)
                  {
              
                      $Stage = new Stage('EZSH Auswertung', 'Erweiterte Klassenliste');
                      if (null !== $DivisionId) {
              Severity: Major
              Found in Application/Reporting/Custom/Herrnhut/Person/Frontend.php - About 6 hrs to fix

                Method frontendBirthdayClassList has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendBirthdayClassList($DivisionId = null)
                    {
                
                        $Stage = new Stage('Auswertung', 'Klassenlisten Geburtstag');
                        if (null !== $DivisionId) {
                Severity: Major
                Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

                  Method frontendBalanceExcel has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendBalanceExcel($Balance = array())
                      {
                  
                          $Stage = new Stage('Belegdruck', 'Serienbrief');
                  
                  
                  Severity: Major
                  Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 6 hrs to fix

                    Method frontendSetting has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Function setCourses has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private function setCourses(TblPerson $tblPerson = null)
                          {
                      
                              $advancedCourses = array();
                              if ($tblPerson && ($tblDivision = $this->getTblDivision())

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

                          public function createClassList($tblDivisionList)
                          {
                      
                              $tblPersonList = false;
                              $tblYear = false;
                      Severity: Minor
                      Found in Application/Reporting/Custom/BadDueben/Person/Service.php - About 6 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 assign has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function assign($genderSetting)
                          {
                              $unAssigned = array();
                              $assignedCount = 0;
                              $unAssignedCount = 0;
                      Severity: Minor
                      Found in Application/People/Group/CustodySorter.php - About 6 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 getAverageByTest has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function getAverageByTest(TblTest $tblTest, &$gradeMirror = array())
                          {
                      
                              $tblDivision = $tblTest->getServiceTblDivision();
                              $tblSubject = $tblTest->getServiceTblSubject();
                      Severity: Minor
                      Found in Application/Education/Graduation/Gradebook/Service.php - About 6 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 frontendScoreGroupGradeTypeSelect has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function frontendScoreGroupGradeTypeSelect(
                              $Id = null
                          ) {
                      
                              $Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
                      Severity: Minor
                      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 6 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 getCourses has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private function getCourses(TblPerson $tblPerson, TblDivision $tblDivision, $advancedCourses, $basicCourses)
                          {
                      
                              if (($tblDivisionSubjectList = Division::useService()->getDivisionSubjectByDivision($tblDivision))) {
                                  foreach ($tblDivisionSubjectList as $tblDivisionSubjectItem) {
                      Severity: Minor
                      Found in Application/Document/Generator/Service.php - About 6 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 getSignOut has 152 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private function getSignOut()
                          {
                      
                              $Slice = new Slice();
                              $Slice->addSection((new Section())

                        Method frontendElectiveClassList has 152 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendElectiveClassList($DivisionId = null)
                            {
                        
                                $Stage = new Stage('Auswertung', 'Wahlfächer in Klassenlisten');
                                if (null !== $DivisionId) {
                        Severity: Major
                        Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

                          Method getItemTable has 152 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getItemTable()
                              {
                          
                                  $tblItemAll = Item::useService()->getItemAll();
                                  $TableContent = array();
                          Severity: Major
                          Found in Application/Billing/Inventory/Item/Frontend.php - About 6 hrs to fix

                            Method getBody has 151 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getBody($personId, $hasTransfer)
                                {
                                    // zusammen 100%
                                    $width1 = '20%';
                                    $width2 = '45%';
                              Severity
                              Category
                              Status
                              Source
                              Language