DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function getResultForAbiturBlockI has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    public function getResultForAbiturBlockI(
        TblPrepareCertificate $tblPrepare,
        TblPerson $tblPerson
    ) {
        $countCourses = 0;
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.php - About 3 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 load has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    public function load()
    {
        $Filter = array();
        if (($tblSubjectGroup = $this->getTblSubjectGroup())) {
            // gespeicherten Filter laden
Severity: Minor
Found in Application/Education/Lesson/Division/Filter/Filter.php - About 3 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 filterPersonListByDivision has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    public function filterPersonListByDivision(
        $tblPersonList,
        TblDivision $tblDivision = null
    ) {

Severity: Minor
Found in Application/Education/Lesson/Subject/Service.php - About 3 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 setForeignLanguagesMatrix has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    private static function setForeignLanguagesMatrix(
        &$Content,
        $countForeignSubjectMatrix
    ) {
        /**
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 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

File Display.php has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Common\Window;

use MOC\V\Component\Template\Component\IBridgeInterface;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Access;
Severity: Minor
Found in Common/Window/Display.php - About 3 hrs to fix

    File ApiAddressToCompany.php has 302 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Created by PhpStorm.
     * User: Kauschke
     * Date: 07.01.2019
    Severity: Minor
    Found in Application/Api/Contact/ApiAddressToCompany.php - About 3 hrs to fix

      File Student.php has 302 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace SPHERE\Application\People\Meta\Student\Service\Data;
      
      use SPHERE\Application\People\Meta\Student\Service\Entity\TblStudent;
      use SPHERE\Application\People\Meta\Student\Service\Entity\TblStudentBaptism;
      Severity: Minor
      Found in Application/People/Meta/Student/Service/Data/Student.php - About 3 hrs to fix

        Method setFieldValue has 81 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function setFieldValue($DataPost)
            {
        
                $tblAccount = false;
                // Common

          Method createMinimumGradeCountFromFile has 81 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method frontendDestroyPerson has 81 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendDestroyPerson($Id = null, $Confirm = false, $Group = null)
                {
            
                    $Stage = new Stage('Person', 'Löschen');
                    if ($Id) {
            Severity: Major
            Found in Application/People/Person/Frontend.php - About 3 hrs to fix

              File ApiMailToCompany.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Created by PhpStorm.
               * User: Kauschke
               * Date: 08.01.2019
              Severity: Minor
              Found in Application/Api/Contact/ApiMailToCompany.php - About 3 hrs to fix

                File ApiPhoneToCompany.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /**
                 * Created by PhpStorm.
                 * User: Kauschke
                 * Date: 08.01.2019
                Severity: Minor
                Found in Application/Api/Contact/ApiPhoneToCompany.php - About 3 hrs to fix

                  File ApiWebToCompany.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 08.01.2019
                  Severity: Minor
                  Found in Application/Api/Contact/ApiWebToCompany.php - About 3 hrs to fix

                    File ApiPhoneToPerson.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * Created by PhpStorm.
                     * User: Kauschke
                     * Date: 08.01.2019
                    Severity: Minor
                    Found in Application/Api/Contact/ApiPhoneToPerson.php - About 3 hrs to fix

                      File ApiMailToPerson.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Created by PhpStorm.
                       * User: Kauschke
                       * Date: 08.01.2019
                      Severity: Minor
                      Found in Application/Api/Contact/ApiMailToPerson.php - About 3 hrs to fix

                        Method getFormField has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getFormField( $PropertyName, $Placeholder = null, $Label = null, IIconInterface $Icon = null,
                                $doResetCount = false, $ViewType = TblWorkSpace::VIEW_TYPE_ALL  )
                            {
                        
                                switch ($PropertyName) {
                        Severity: Major
                        Found in Application/Reporting/Individual/Service/Entity/ViewPersonContact.php - About 3 hrs to fix

                          Method frontendGroup has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function frontendGroup($Group = null)
                              {
                          
                                  $Stage = new Stage('Gruppen', 'Übersicht');
                                  $Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
                          Severity: Major
                          Found in Application/People/Group/Frontend.php - About 3 hrs to fix

                            Method frontendDashboard has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendDashboard()
                                {
                            
                                    $Stage = new Stage('Zensuren', 'Überblick');
                            
                            
                            Severity: Major
                            Found in Application/Education/Graduation/Graduation.php - About 3 hrs to fix

                              Method frontendGradeType has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendGradeType($GradeType = null)
                                  {
                              
                                      $Stage = new Stage('Zensuren-Typ', 'Übersicht');
                                      $Stage->setMessage('Hier werden die Zensuren-Typen verwaltet. Bei den Zensuren-Typen wird zwischen den beiden
                              Severity: Major
                              Found in Application/Education/Graduation/Gradebook/Frontend.php - About 3 hrs to fix

                                Method frontendSigner has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendSigner($PrepareId = null, $GroupId = null, $Route = null, $Data = null)
                                    {
                                
                                        $Stage = new Stage('Unterzeichner', 'Auswählen');
                                        $Stage->addButton(new Standard(
                                Severity: Major
                                Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language