DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

<?php

namespace SPHERE\Application\Transfer\Import\Herrnhut;

use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
Severity: Major
Found in Application/Transfer/Import/Herrnhut/Service.php - About 2 days to fix

    Function createPhoneList has a Cognitive Complexity of 144 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createPhoneList(TblGroup $tblGroup)
        {
    
            $TableContent = array();
    
    
    Severity: Minor
    Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 2 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 frontendSelectDivision has a Cognitive Complexity of 144 (exceeds 5 allowed). Consider refactoring.
    Open

        public function frontendSelectDivision($GenerateCertificateId = null, $Data = null)
        {
    
            $Stage = new Stage('Zeugnis generieren', 'Klassen zuordnen');
            $Stage->addButton(new Standard('Zurück', '/Education/Certificate/Generate', new ChevronLeft()));
    Severity: Minor
    Found in Application/Education/Certificate/Generate/Frontend.php - About 2 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 582 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/Tharandt/Service.php - About 2 days to fix

      Function allocatePersonParentsContact has a Cognitive Complexity of 143 (exceeds 5 allowed). Consider refactoring.
      Open

          private function allocatePersonParentsContact(&$Data)
          {
      
              $Data['Person']['Contact']['All']['Mail'] = '';
              $Data['Person']['Contact']['All']['Person']['Mail'] = '';
      Severity: Minor
      Found in Application/Api/Document/AbstractDocument.php - About 2 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 getContent has 576 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/KamenzReportGym/B01_1.php - About 2 days to fix

        Method getContent has 575 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/KamenzReportGym/B01.php - About 2 days to fix

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

          <?php
          /**
           * Created by PhpStorm.
           * User: Kauschke
           * Date: 23.11.2016
          Severity: Major
          Found in Application/Education/Certificate/Generate/Frontend.php - About 2 days to fix

            Function createPrintClassListExcel has a Cognitive Complexity of 141 (exceeds 5 allowed). Consider refactoring.
            Open

                public function createPrintClassListExcel($PersonList, $tblPersonList, $DivisionId)
                {
            
                    // get PersonList sorted by GradeBook
                    if (!empty($PersonList)) {
            Severity: Minor
            Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 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 createStaffsFromFile has a Cognitive Complexity of 140 (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/Muldental/Service.php - About 2 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 updateRemarkFromFile has a Cognitive Complexity of 140 (exceeds 5 allowed). Consider refactoring.
            Open

                public function updateRemarkFromFile(
                    IFormInterface $Form = null,
                    UploadedFile $File = null
                ) {
            
            
            Severity: Minor
            Found in Application/Transfer/Import/Dresden/Service.php - About 2 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 createStaffsFromFile has a Cognitive Complexity of 139 (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/Schneeberg/Service.php - About 2 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 1100 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * Created by PhpStorm.
             * User: Kauschke
             * Date: 04.03.2019
            Severity: Major
            Found in Application/Transfer/Import/Naundorf/Service.php - About 2 days to fix

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

              <?php
              namespace SPHERE\Application\Reporting\Custom\Chemnitz\Person;
              
              use SPHERE\Application\Education\Lesson\Division\Division;
              use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivision;
              Severity: Major
              Found in Application/Reporting/Custom/Chemnitz/Person/Frontend.php - About 2 days to fix

                Method getContent has 548 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/E08.php - About 2 days to fix

                  Function copySubjectGradesByPrepare has a Cognitive Complexity of 134 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function copySubjectGradesByPrepare(TblPrepareCertificate $tblPrepare, $isDiploma = false)
                      {
                  
                          $Manager = $this->getConnection()->getEntityManager();
                  
                  
                  Severity: Minor
                  Found in Application/Education/Certificate/Prepare/Service/Data.php - About 2 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 createCustodiesFromFile has a Cognitive Complexity of 133 (exceeds 5 allowed). Consider refactoring.
                  Open

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

                      public function frontendTeacherGradebook($IsAllYears = false, $YearId = null)
                      {
                  
                          $Stage = new Stage('Notenbuch', 'Auswahl');
                          $Stage->setMessage(
                  Severity: Minor
                  Found in Application/Education/Graduation/Gradebook/Frontend.php - About 2 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 buildPages has 538 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

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

                    <?php
                    
                    namespace SPHERE\Application\Billing\Bookkeeping\Balance;
                    
                    use Digitick\Sepa\GroupHeader;
                    Severity: Major
                    Found in Application/Billing/Bookkeeping/Balance/Service.php - About 2 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language