DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File Frontend.php has 1836 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Created by PhpStorm.
 * User: Kauschke
 * Date: 21.09.2016
Severity: Major
Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 5 days to fix

    File GymAbitur.php has 1804 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      Method createStudentsFromFile has 971 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        File ApiIndividual.php has 1783 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace SPHERE\Application\Api\Reporting\Individual;
        
        use Doctrine\ORM\Query\Expr\Join;
        Severity: Major
        Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 4 days to fix

          Function createKindergartenFromFile has a Cognitive Complexity of 236 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createKindergartenFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Seelitz/Service.php - About 4 days 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 createStudentsPrimarySchoolFromFile has a Cognitive Complexity of 233 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createStudentsPrimarySchoolFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Schneeberg/Service.php - About 4 days 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 tablePerson has a Cognitive Complexity of 228 (exceeds 5 allowed). Consider refactoring.
          Open

              public static function tablePerson($DivisionSubjectId = null)
              {
          
                  // get Content
                  $tblDivisionSubject = DivisionApplication::useService()->getDivisionSubjectById($DivisionSubjectId);
          Severity: Minor
          Found in Application/Api/Education/Division/StudentGroupSelect.php - About 4 days 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 setStudentCardContent has a Cognitive Complexity of 228 (exceeds 5 allowed). Consider refactoring.
          Open

              public function setStudentCardContent(
                  $Data,
                  TblPerson $tblPerson,
                  AbstractDocument $documentClass,
                  TblType $tblType = null
          Severity: Minor
          Found in Application/Document/Generator/Service.php - About 4 days 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 createCompaniesFromFile has a Cognitive Complexity of 222 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createCompaniesFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Herrnhut/Service.php - About 4 days 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 createInterestedPersonsFromFile has a Cognitive Complexity of 222 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createInterestedPersonsFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Seelitz/Service.php - About 4 days 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 createStudentsFromFile has 906 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Function createStaffsFromFile has a Cognitive Complexity of 217 (exceeds 5 allowed). Consider refactoring.
            Open

                public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                {
            
                    /**
                     * Skip to Frontend
            Severity: Minor
            Found in Application/Transfer/Import/BadDueben/Service.php - About 4 days 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 1648 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            namespace SPHERE\Application\Education\Lesson\Division;
            
            use SPHERE\Application\Education\Graduation\Evaluation\Evaluation;
            use SPHERE\Application\Education\Graduation\Gradebook\Gradebook;
            Severity: Major
            Found in Application/Education/Lesson/Division/Service.php - About 4 days to fix

              Function createStudentsFromFile has a Cognitive Complexity of 216 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function createStudentsFromFile(
                      IFormInterface $Form = null,
                      UploadedFile $File = null
                  ) {
              
              
              Severity: Minor
              Found in Application/Transfer/Import/Meerane/Service.php - About 4 days 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 1623 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace SPHERE\Application\Reporting\CheckList;
              
              use SPHERE\Application\Contact\Address\Address;
              Severity: Major
              Found in Application/Reporting/CheckList/Frontend.php - About 4 days to fix

                Method createStudentsFromFile has 864 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function frontendStudentGradebook has a Cognitive Complexity of 207 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function frontendStudentGradebook($YearId = null, $ParentAccount = null)
                      {
                  
                          $Stage = new Stage('Notenübersicht', 'Schüler/Eltern');
                          $Stage->setMessage(
                  Severity: Minor
                  Found in Application/Education/Graduation/Gradebook/Frontend.php - About 4 days 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 1538 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  namespace SPHERE\Application\Transfer\Import\Muldental;
                  
                  use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
                  Severity: Major
                  Found in Application/Transfer/Import/Muldental/Service.php - About 4 days to fix

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

                    <?php
                    namespace SPHERE\Application\Education\Lesson\Division\Service;
                    
                    use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivision;
                    use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivisionCustody;
                    Severity: Major
                    Found in Application/Education/Lesson/Division/Service/Data.php - About 4 days to fix

                      Method createStudentsFromFile has 820 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createStudentsFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Major
                      Found in Application/Transfer/Import/Muldental/Service.php - About 4 days to fix
                        Severity
                        Category
                        Status
                        Source
                        Language