DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function setupDatabaseContent has a Cognitive Complexity of 2581 (exceeds 5 allowed). Consider refactoring.
Open

    public function setupDatabaseContent()
    {

        $tblCertificateTypeHalfYear = $this->createCertificateType('Halbjahresinformation/Halbjahreszeugnis', 'HALF_YEAR');
        $tblCertificateTypeYear = $this->createCertificateType('Jahreszeugnis', 'YEAR');
Severity: Minor
Found in Application/Education/Certificate/Generator/Service/Data.php - About 1 mo 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 879 (exceeds 5 allowed). Consider refactoring.
Open

    public function createStudentsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Annaberg/Service.php - About 2 wks 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 819 (exceeds 5 allowed). Consider refactoring.
Open

    public function createStudentsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Radebeul/Service.php - About 2 wks 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 803 (exceeds 5 allowed). Consider refactoring.
Open

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

    public function createStudentsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Muldental/Service.php - About 2 wks 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 frontendPrepareSetting has a Cognitive Complexity of 703 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendPrepareSetting(
        $PrepareId = null,
        $GroupId = null,
        $Route = 'Teacher',
        $GradeTypeId = null,
Severity: Minor
Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 wks 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 setupDatabaseContent has 2883 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setupDatabaseContent()
    {

        $tblCertificateTypeHalfYear = $this->createCertificateType('Halbjahresinformation/Halbjahreszeugnis', 'HALF_YEAR');
        $tblCertificateTypeYear = $this->createCertificateType('Jahreszeugnis', 'YEAR');
Severity: Major
Found in Application/Education/Certificate/Generator/Service/Data.php - About 2 wks to fix

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

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

    <?php
    /**
     * Created by PhpStorm.
     * User: Kauschke
     * Date: 12.07.2016
    Severity: Major
    Found in Application/Education/Certificate/Prepare/Frontend.php - About 1 wk to fix

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

          public function createStudentsFromFile(
              IFormInterface $Form = null,
              UploadedFile $File = null
          ) {
      
      
      Severity: Minor
      Found in Application/Transfer/Import/Schneeberg/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 setGradeOverview has a Cognitive Complexity of 571 (exceeds 5 allowed). Consider refactoring.
      Open

          private function setGradeOverview(
              TblYear $tblYear,
              TblPerson $tblPerson,
              $divisionList,
              &$rowList,
      Severity: Minor
      Found in Application/Education/Graduation/Gradebook/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 3951 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace SPHERE\Application\Education\Graduation\Evaluation;
      
      use DateTime;
      use SPHERE\Application\Api\Education\Graduation\Evaluation\ApiEvaluation;
      Severity: Major
      Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 wk to fix

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

            public function createStudentsFromFile(
                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 createExamsContent has a Cognitive Complexity of 500 (exceeds 5 allowed). Consider refactoring.
        Open

            private function createExamsContent(
                $tblTestList,
                $IsFinalGrade,
                $studentTable,
                $tblCurrentSubject,
        Severity: Minor
        Found in Application/Education/Certificate/Prepare/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 Data.php has 3568 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        namespace SPHERE\Application\Education\Certificate\Generator\Service;
        
        use SPHERE\Application\Education\Certificate\Generator\Service\Entity\TblCertificate;
        use SPHERE\Application\Education\Certificate\Generator\Service\Entity\TblCertificateField;
        Severity: Major
        Found in Application/Education/Certificate/Generator/Service/Data.php - About 1 wk to fix

          Function createCheckListExcel has a Cognitive Complexity of 486 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createCheckListExcel(
                  TblList $tblList,
                  $YearPersonId = null,
                  $LevelPersonId = null,
                  $SchoolOption1Id = null,
          Severity: Minor
          Found in Application/Reporting/CheckList/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 getStudentTableContent has a Cognitive Complexity of 482 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getStudentTableContent($Result, $Option = null, $PersonGroup = null)
              {
          
                  $SearchResult = array();
                  if (!empty($Result)) {
          Severity: Minor
          Found in Application/Reporting/Standard/Person/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 updateGroupFromFile has a Cognitive Complexity of 462 (exceeds 5 allowed). Consider refactoring.
          Open

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

          <?php
          /**
           * Created by PhpStorm.
           * User: Kauschke
           * Date: 12.07.2016
          Severity: Major
          Found in Application/Education/Certificate/Prepare/Service.php - About 1 wk to fix

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

                public function createStudentsFromFile(
                    IFormInterface $Form = null,
                    UploadedFile $File = null
                ) {
            
            
            Severity: Minor
            Found in Application/Transfer/Import/Coswig/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

            Severity
            Category
            Status
            Source
            Language