DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function createCertificateContent has a Cognitive Complexity of 434 (exceeds 5 allowed). Consider refactoring.
Open

    private function createCertificateContent(
        TblPrepareCertificate $tblPrepare = null,
        TblLeaveStudent $tblLeaveStudent = null,
        TblPerson $tblPerson,
        $Content = array()
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.php - About 1 wk 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 frontendListObjectElementShow has a Cognitive Complexity of 421 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendListObjectElementShow
    (
        $Id = null,
        $Filter = null,
//        $Data = null,
Severity: Minor
Found in Application/Reporting/CheckList/Frontend.php - About 1 wk 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 2866 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace SPHERE\Application\Education\Graduation\Gradebook;

use SPHERE\Application\Api\Education\Graduation\Gradebook\ApiGradebook;
Severity: Major
Found in Application/Education/Graduation/Gradebook/Frontend.php - About 1 wk to fix

    Function setGraduate has a Cognitive Complexity of 371 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function setGraduate(
            $tblPastYearList,
            &$Content,
            TblType $tblKamenzSchoolType
        ) {

    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 2714 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      Function contentEditTestGrade has a Cognitive Complexity of 369 (exceeds 5 allowed). Consider refactoring.
      Open

          private function contentEditTestGrade(Stage $Stage, TblTest $tblTest, $Grade, $BasicRoute, $IsEdit = false)
          {
      
              if (!$tblTest->getServiceTblDivision()) {
                  return new Danger(new Ban() . ' Klasse nicht gefunden')
      Severity: Minor
      Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 wk 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 Certificate.php has 2679 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      namespace SPHERE\Application\Api\Education\Certificate\Generator;
      
      use MOC\V\Component\Template\Component\IBridgeInterface;
      Severity: Major
      Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 1 wk to fix

        Function createSerialLetterExcel has a Cognitive Complexity of 365 (exceeds 5 allowed). Consider refactoring.
        Open

            public function createSerialLetterExcel(TblSerialLetter $tblSerialLetter)
            {
        
                $tblPersonList = $this->getPersonAllBySerialLetter($tblSerialLetter);
                $ExportData = array();
        Severity: Minor
        Found in Application/Reporting/SerialLetter/Service.php - About 1 wk 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 createDivisionReportExcel has a Cognitive Complexity of 364 (exceeds 5 allowed). Consider refactoring.
        Open

            public function createDivisionReportExcel()
            {
        
                $tblYearList = false;
                $DataContent = array();
        Severity: Minor
        Found in Application/Reporting/DeclarationBasis/Service.php - About 1 wk 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 2670 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        namespace SPHERE\Application\Reporting\SerialLetter;
        
        use SPHERE\Application\Api\Reporting\SerialLetter\ApiSerialLetter;
        use SPHERE\Application\Contact\Address\Address;
        Severity: Major
        Found in Application/Reporting/SerialLetter/Frontend.php - About 1 wk to fix

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

              public function createStudentsFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Seelitz/Service.php - About 1 wk 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 351 (exceeds 5 allowed). Consider refactoring.
          Open

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

              private function setGradeOverviewForTask(
                  TblTask $tblTask,
                  $divisionList,
                  $tableHeaderList,
                  $studentList,
          Severity: Minor
          Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 wk 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 createStudentsFromFile has a Cognitive Complexity of 348 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createStudentsFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Schulstiftung/Service.php - About 1 wk 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 1399 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/E07.php - About 6 days to fix

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

                public function createStudentsFromFile(
                    IFormInterface $Form = null,
                    UploadedFile $File = null,
                    $TypeId = null,
                    $YearId = null
            Severity: Minor
            Found in Application/Transfer/Import/FuxMedia/Service.php - About 6 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 frontendDivisionShow has a Cognitive Complexity of 324 (exceeds 5 allowed). Consider refactoring.
            Open

                public function frontendDivisionShow($Id = null)
                {
            
                    $Stage = new Stage('Klassenansicht', 'Übersicht');
                    $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
            Severity: Minor
            Found in Application/Education/Lesson/Division/Frontend.php - About 6 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 frontendPreparePreview has a Cognitive Complexity of 321 (exceeds 5 allowed). Consider refactoring.
            Open

                public function frontendPreparePreview(
                    $PrepareId = null,
                    $Route = 'Teacher',
                    $GroupId = false
                ) {
            Severity: Minor
            Found in Application/Education/Certificate/Prepare/Frontend.php - About 6 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 contentSelectedGradeBook has a Cognitive Complexity of 318 (exceeds 5 allowed). Consider refactoring.
            Open

                private function contentSelectedGradeBook(
                    Stage $Stage,
                    TblDivisionSubject $tblDivisionSubject,
                    $BasicRoute
                ) {
            Severity: Minor
            Found in Application/Education/Graduation/Gradebook/Frontend.php - About 6 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 frontendListObjectSelect has a Cognitive Complexity of 313 (exceeds 5 allowed). Consider refactoring.
            Open

                public function frontendListObjectSelect(
                    $ListId = null,
                    $ObjectTypeId = null,
                    $ObjectTypeSelect = null
                ) {
            Severity: Minor
            Found in Application/Reporting/CheckList/Frontend.php - About 6 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

            Severity
            Category
            Status
            Source
            Language