DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendListObjectElementShow has 403 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendListObjectElementShow
    (
        $Id = null,
        $Filter = null,
//        $Data = null,
Severity: Major
Found in Application/Reporting/CheckList/Frontend.php - About 2 days to fix

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

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

      Method getEZSHObligation has 399 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getEZSHObligation($personId, $TextSize = '14px', $isProfile = false)
          {
      
              $tblPerson = Person::useService()->getPersonById($personId);
      
      

        Function parseScript has a Cognitive Complexity of 99 (exceeds 5 allowed). Consider refactoring.
        Open

            public function parseScript($FrontendElement = null)
            {
                foreach ($this->Emitter as $Index => $Emitter) {
                    $Method = 'GET';
                    $Data = array();
        Severity: Minor
        Found in Common/Frontend/Ajax/Pipeline.php - About 1 day 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 checkInputCalculation has a Cognitive Complexity of 99 (exceeds 5 allowed). Consider refactoring.
        Open

            private function checkInputCalculation($Identifier, $VariantId, $CalculationId, $Calculation = array())
            {
                $Error = false;
                $form = $this->formCalculation($Identifier, $VariantId, $CalculationId);
        
        
        Severity: Minor
        Found in Application/Api/Billing/Inventory/ItemCalculation.php - About 1 day 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 ApiSupport.php has 826 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace SPHERE\Application\Api\People\Meta\Support;
        
        
        
        Severity: Major
        Found in Application/Api/People/Meta/Support/ApiSupport.php - About 1 day to fix

          Function getRestoreDetailList has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getRestoreDetailList(TblPerson $tblPerson, $isRestore)
              {
          
                  $count = 1;
                  $result[] = array(
          Severity: Minor
          Found in Application/People/Person/Service.php - About 1 day 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 countForeignLanguages has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring.
          Open

              private static function countForeignLanguages(
                  TblStudent $tblStudent,
                  TblLevel $tblLevel,
                  TblType $tblType,
                  &$Content,
          Severity: Minor
          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 setKamenzReportGymContent has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring.
          Open

              public static function setKamenzReportGymContent(
                  $Content
              ) {
          
                  $tblCurrentYearList = false;
          Severity: Minor
          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 392 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

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

            <?php
            /**
             * Created by PhpStorm.
             * User: Kauschke
             * Date: 12.09.2016
            Severity: Major
            Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 1 day to fix

              Method buildContentPage has 390 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function buildContentPage(
                      $personId,
                      $isSample,
                      $title = 'Halbjahresinformation der Schule (Sekundarstufe)',
                      $term,

                Method getEditStudentTransferForm has 389 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function getEditStudentTransferForm(TblPerson $tblPerson = null)
                    {
                
                        FrontendStudent::setYearAndDivisionForMassReplace($tblPerson, $Year, $Division);
                
                
                Severity: Major
                Found in Application/People/Person/Frontend/FrontendStudentTransfer.php - About 1 day to fix

                  File Filter.php has 813 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 08.06.2018
                  Severity: Major
                  Found in Application/Education/Lesson/Division/Filter/Filter.php - About 1 day to fix

                    File Gradebook.php has 811 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    namespace SPHERE\Application\Api\Document\Standard\Repository\Gradebook;
                    
                    use SPHERE\Application\Document\Generator\Repository\Document;
                    use SPHERE\Application\Document\Generator\Repository\Element;
                    Severity: Major
                    Found in Application/Api/Document/Standard/Repository/Gradebook/Gradebook.php - About 1 day to fix

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

                      <?php
                      
                      namespace SPHERE\Application\Reporting\Custom\Herrnhut\Person;
                      
                      use SPHERE\Application\Education\Lesson\Division\Division;
                      Severity: Major
                      Found in Application/Reporting/Custom/Herrnhut/Person/Frontend.php - About 1 day to fix

                        Function __construct has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function __construct(
                                $Name,
                                $Label = '',
                                $Data = array(),
                                IIconInterface $Icon = null,
                        Severity: Minor
                        Found in Common/Frontend/Form/Repository/Field/SelectBox.php - About 1 day 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 ApiDebtorSelection.php has 803 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        namespace SPHERE\Application\Api\Billing\Accounting;
                        
                        use SPHERE\Application\Api\ApiTrait;
                        Severity: Major
                        Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 1 day to fix

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

                          <?php
                          namespace SPHERE\Application\People\Meta\Student;
                          
                          use SPHERE\Application\Corporation\Company\Company;
                          use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
                          Severity: Major
                          Found in Application/People/Meta/Student/Service.php - About 1 day to fix

                            Function getLayoutRowsForTestPlanning has a Cognitive Complexity of 95 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function getLayoutRowsForTestPlanning($testArray)
                                {
                                    $preview = array();
                                    if (!empty($testArray)) {
                                        $trans = array(
                            Severity: Minor
                            Found in Application/Education/Graduation/Evaluation/Service.php - About 1 day 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