DerDu/SPHERE-Framework

View on GitHub
Application/Document/Generator/Service/Kamenz/KamenzReportService.php

Summary

Maintainability
F
2 mos
Test Coverage

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

<?php

namespace SPHERE\Application\Document\Generator\Service\Kamenz;

use SPHERE\Application\Corporation\Group\Group;
Severity: Major
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 5 days to fix

    Function setRepeatersFromCertificates has a Cognitive Complexity of 171 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function setRepeatersFromCertificates(&$Content, $tblPastYearList, TblType $tblKamenzSchoolType)
        {
    
            if ($tblPastYearList) {
                foreach ($tblPastYearList as $tblPastYear) {
    Severity: Minor
    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 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 setSchoolTypeLastYear has a Cognitive Complexity of 108 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function setSchoolTypeLastYear(
            &$Content,
            $tblPastYearList,
            TblPerson $tblPerson,
            $tblCourse,
    Severity: Minor
    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.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 countCourses has a Cognitive Complexity of 106 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function countCourses(
            TblLevel $tblLevel,
            TblDivision $tblDivision,
            &$countAdvancedCourseArray,
            &$countBasicCourseArray,
    Severity: Minor
    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.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 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

    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 setNewSchoolStarter has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function setNewSchoolStarter(
            &$Content,
            TblPerson $tblPerson,
            TblStudent $tblStudent,
            TblLevel $tblLevel,
    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 setStudentFocus has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function setStudentFocus(
            TblPerson $tblPerson,
            TblLevel $tblLevel,
            &$Content,
            $gender,
    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 countStudentLevels has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
    Open

        private static function countStudentLevels(
            TblPerson $tblPerson,
            TblLevel $tblLevel,
            &$gender,
            $hasMigrationBackground,
    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 setKamenzReportOsContent has a Cognitive Complexity of 84 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function setKamenzReportOsContent(
            $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

    Function setKamenzReportGsContent has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function setKamenzReportGsContent(
            $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 setGraduate has 227 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static function setGraduate(
            $tblPastYearList,
            &$Content,
            TblType $tblKamenzSchoolType
        ) {
    Severity: Major
    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day to fix

      Function setCoursesMatrix has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setCoursesMatrix(
              &$Content,
              $personAdvancedCourseList
          ) {
      
      
      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 setDivisionStudents has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setDivisionStudents(
              &$Content,
              TblPerson $tblPerson,
              TblLevel $tblLevel,
              TblDivision $tblDivision,
      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 setDivisionStudentsForSecondarySchool has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setDivisionStudentsForSecondarySchool(
              &$Content,
              $countDivisionStudents
          ) {
      
      
      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 setStudentLevels has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setStudentLevels(
              &$Content,
              $countArray,
              $countMigrantsArray,
              $countMigrantsNationalityArray
      Severity: Minor
      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs 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 setSchoolTypeLastYear has 120 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private static function setSchoolTypeLastYear(
              &$Content,
              $tblPastYearList,
              TblPerson $tblPerson,
              $tblCourse,
      Severity: Major
      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs to fix

        Method setKamenzReportGymContent has 108 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function setKamenzReportGymContent(
                $Content
            ) {
        
                $tblCurrentYearList = false;
        Severity: Major
        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs to fix

          KamenzReportService has 33 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class KamenzReportService
          {
          
              /**
               * @param array $Content
          Severity: Minor
          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs to fix

            Function setCourses has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
            Open

                private static function setCourses(
                    &$Content,
                    $countAdvancedCourseArray,
                    $countBasisCourseArray
                ) {
            Severity: Minor
            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs 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 setKamenzReportGsContent has 96 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function setKamenzReportGsContent(
                    $Content
                ) {
            
                    $tblCurrentYearList = false;
            Severity: Major
            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

              Method setKamenzReportOsContent has 94 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function setKamenzReportOsContent(
                      $Content
                  ) {
              
                      $tblCurrentYearList = false;
              Severity: Major
              Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                Function setProfile has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
                Open

                    private static function setProfile(
                        &$Content,
                        $countProfileArray
                    ) {
                
                
                Severity: Minor
                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs 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 setStudentFocus has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private static function setStudentFocus(
                        TblPerson $tblPerson,
                        TblLevel $tblLevel,
                        &$Content,
                        $gender,
                Severity: Major
                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                  Function setForeignLanguages has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                  Open

                      private static function setForeignLanguages(
                          &$Content,
                          $countForeignSubjectArray,
                          $countSecondForeignSubjectArray,
                          TblType $tblSchoolType
                  Severity: Minor
                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs 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 setRepeatersFromCertificates has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private static function setRepeatersFromCertificates(&$Content, $tblPastYearList, TblType $tblKamenzSchoolType)
                      {
                  
                          if ($tblPastYearList) {
                              foreach ($tblPastYearList as $tblPastYear) {
                  Severity: Major
                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                    Function setRepeatersOs has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private static function setRepeatersOs(
                            TblPerson $tblPerson,
                            TblLevel $tblLevel,
                            TblDivision $tblDivision,
                            &$Content,
                    Severity: Minor
                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs 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 setRepeatersGym has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private static function setRepeatersGym(
                            TblPerson $tblPerson,
                            TblLevel $tblLevel,
                            TblDivision $tblDivision,
                            &$Content,
                    Severity: Minor
                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs 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 countForeignLanguages has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private static function countForeignLanguages(
                            TblStudent $tblStudent,
                            TblLevel $tblLevel,
                            TblType $tblType,
                            &$Content,
                    Severity: Major
                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                      Function setForeignLanguagesMatrix has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private static function setForeignLanguagesMatrix(
                              &$Content,
                              $countForeignSubjectMatrix
                          ) {
                              /**
                      Severity: Minor
                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs 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 setNewSchoolStarter has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private static function setNewSchoolStarter(
                              &$Content,
                              TblPerson $tblPerson,
                              TblStudent $tblStudent,
                              TblLevel $tblLevel,
                      Severity: Major
                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                        Function countOrientation has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private static function countOrientation(
                                TblStudent $tblStudent,
                                TblLevel $tblLevel,
                                $gender,
                                $countOrientationArray
                        Severity: Minor
                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs 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 setStudentLevels has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private static function setStudentLevels(
                                &$Content,
                                $countArray,
                                $countMigrantsArray,
                                $countMigrantsNationalityArray
                        Severity: Major
                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                          Method countStudentLevels has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private static function countStudentLevels(
                                  TblPerson $tblPerson,
                                  TblLevel $tblLevel,
                                  &$gender,
                                  $hasMigrationBackground,
                          Severity: Major
                          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                            Method setDivisionStudents has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private static function setDivisionStudents(
                                    &$Content,
                                    TblPerson $tblPerson,
                                    TblLevel $tblLevel,
                                    TblDivision $tblDivision,
                            Severity: Major
                            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                              Method countCourses has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private static function countCourses(
                                      TblLevel $tblLevel,
                                      TblDivision $tblDivision,
                                      &$countAdvancedCourseArray,
                                      &$countBasicCourseArray,
                              Severity: Major
                              Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                                Method setCoursesMatrix has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    private static function setCoursesMatrix(
                                        &$Content,
                                        $personAdvancedCourseList
                                    ) {
                                
                                
                                Severity: Major
                                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                                  Function countDivisionStudentsForSecondarySchool has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      private static function countDivisionStudentsForSecondarySchool(
                                          &$countDivisionStudents,
                                          TblDivision $tblDivision,
                                          TblLevel $tblLevel,
                                          TblCourse $tblCourse = null,
                                  Severity: Minor
                                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs 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 setOrientation has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      private static function setOrientation(
                                          &$Content,
                                          $countOrientationArray
                                      ) {
                                          /**
                                  Severity: Minor
                                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs 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 setDivisionStudentsForSecondarySchool has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private static function setDivisionStudentsForSecondarySchool(
                                          &$Content,
                                          $countDivisionStudents
                                      ) {
                                  
                                  

                                    Method setCourses has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private static function setCourses(
                                            &$Content,
                                            $countAdvancedCourseArray,
                                            $countBasisCourseArray
                                        ) {

                                      Function countProfile has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          private static function countProfile(
                                              TblStudent $tblStudent,
                                              TblLevel $tblLevel,
                                              $gender,
                                              $countProfileArray

                                      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 setForeignLanguages has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private static function setForeignLanguages(
                                              &$Content,
                                              $countForeignSubjectArray,
                                              $countSecondForeignSubjectArray,
                                              TblType $tblSchoolType

                                        Method setProfile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private static function setProfile(
                                                &$Content,
                                                $countProfileArray
                                            ) {
                                        
                                        

                                          Function setReligion has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              private static function setReligion(
                                                  &$Content,
                                                  $countReligionArray
                                              ) {
                                                  /**

                                          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 setDivisionFrequency has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              private static function setDivisionFrequency(
                                                  &$Content,
                                                  $countDivisionStudentArray
                                              ) {
                                                  /**

                                          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 countForeignLanguagesMatrix has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              private static function countForeignLanguagesMatrix(
                                                  TblPerson $tblPerson,
                                                  TblLevel $tblLevel,
                                                  $countForeignSubjectMatrix
                                              ) {

                                          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 countStudentLevels has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                                  TblPerson $tblPerson,
                                                  TblLevel $tblLevel,
                                                  &$gender,
                                                  $hasMigrationBackground,
                                                  $isInPreparationDivisionForMigrants,

                                            Function countReligion has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                            Open

                                                private static function countReligion(
                                                    TblStudent $tblStudent,
                                                    TblLevel $tblLevel,
                                                    $countReligionArray
                                                ) {

                                            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 countDivisionStudentsForSecondarySchool has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                private static function countDivisionStudentsForSecondarySchool(
                                                    &$countDivisionStudents,
                                                    TblDivision $tblDivision,
                                                    TblLevel $tblLevel,
                                                    TblCourse $tblCourse = null,

                                              Method setForeignLanguagesMatrix has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  private static function setForeignLanguagesMatrix(
                                                      &$Content,
                                                      $countForeignSubjectMatrix
                                                  ) {
                                                      /**

                                                Method countOrientation has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    private static function countOrientation(
                                                        TblStudent $tblStudent,
                                                        TblLevel $tblLevel,
                                                        $gender,
                                                        $countOrientationArray

                                                  Method setSchoolTypeLastYear has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                          &$Content,
                                                          $tblPastYearList,
                                                          TblPerson $tblPerson,
                                                          $tblCourse,
                                                          TblLevel $tblLevel,

                                                    Method setNewSchoolStarter has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                            &$Content,
                                                            TblPerson $tblPerson,
                                                            TblStudent $tblStudent,
                                                            TblLevel $tblLevel,
                                                            TblDivision $tblDivision,

                                                      Method countForeignLanguages has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                              TblStudent $tblStudent,
                                                              TblLevel $tblLevel,
                                                              TblType $tblType,
                                                              &$Content,
                                                              $gender,

                                                        Method setDivisionStudents has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                                &$Content,
                                                                TblPerson $tblPerson,
                                                                TblLevel $tblLevel,
                                                                TblDivision $tblDivision,
                                                                $gender,
                                                        Severity: Major
                                                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 50 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                                      if ($birthYear) {
                                                                                          if (isset($countArray[$birthYear]['Leave'][$gender])) {
                                                                                              $countArray[$birthYear]['Leave'][$gender]++;
                                                                                          } else {
                                                                                              $countArray[$birthYear]['Leave'][$gender] = 1;
                                                          Severity: Major
                                                          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                                        if ($hasMigrationBackground) {
                                                                                            if (isset($Content['B01_1']['Leave']['L' . $certificate][$gender])) {
                                                                                                $Content['B01_1']['Leave']['L' . $certificate][$gender]++;
                                                                                            } else {
                                                                                                $Content['B01_1']['Leave']['L' . $certificate][$gender] = 1;
                                                            Severity: Major
                                                            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                                                  if (($tblPerson = $tblSubjectStudent->getServiceTblPerson())
                                                                                                      && ($tblCommon = Common::useService()->getCommonByPerson($tblPerson))
                                                                                                      && ($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())
                                                                                                      && ($tblCommonGender = $tblCommonBirthDates->getTblCommonGender())
                                                                                                  ) {
                                                              Severity: Major
                                                              Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                                        if ($tblSchoolEnrollmentType->getIdentifier() == 'PREMATURE') {
                                                                                            if (isset($Content['D01']['Premature'][$gender])) {
                                                                                                $Content['D01']['Premature'][$gender]++;
                                                                                            } else {
                                                                                                $Content['D01']['Premature'][$gender] = 1;
                                                                Severity: Major
                                                                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                                                          if ($tblPrepareStudent->isPrinted()
                                                                                                              && ($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                                                                              && ((($tblPrepareInformationTransfer = Prepare::useService()->getPrepareInformationBy(
                                                                                                                          $tblPrepare, $tblPerson, 'Transfer'
                                                                                                                      ))
                                                                  Severity: Major
                                                                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                                                            if ($tblPrepareStudent->isPrinted()
                                                                                                                && ($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                                                                                && ($tblCertificate = $tblPrepareStudent->getServiceTblCertificate())
                                                                                                            ) {
                                                                    
                                                                    
                                                                    Severity: Major
                                                                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                      Method countDivisionStudentsForSecondarySchool has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                              &$countDivisionStudents,
                                                                              TblDivision $tblDivision,
                                                                              TblLevel $tblLevel,
                                                                              TblCourse $tblCourse = null,
                                                                              $gender,
                                                                      Severity: Minor
                                                                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                        Avoid deeply nested control flow statements.
                                                                        Open

                                                                                                if ($isInPreparationDivisionForMigrants) {
                                                                                                    if (isset($countArray[$birthYear]['Migration'][$gender])) {
                                                                                                        $countArray[$birthYear]['Migration'][$gender]++;
                                                                                                    } else {
                                                                                                        $countArray[$birthYear]['Migration'][$gender] = 1;
                                                                        Severity: Major
                                                                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                          Avoid deeply nested control flow statements.
                                                                          Open

                                                                                                  if ($hasMigrationBackground) {
                                                                                                      if (isset($countMigrantsArray[$birthYear][$tblLevel->getName()][$gender])) {
                                                                                                          $countMigrantsArray[$birthYear][$tblLevel->getName()][$gender]++;
                                                                                                      } else {
                                                                                                          $countMigrantsArray[$birthYear][$tblLevel->getName()][$gender] = 1;
                                                                          Severity: Major
                                                                          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                            Avoid deeply nested control flow statements.
                                                                            Open

                                                                                                        if (($tblCourseTransfer = $tblStudentTransfer->getServiceTblCourse())) {
                                                                                                            if($tblCourseTransfer->getName() == 'Hauptschule') {
                                                                                                                $identifier = 'SecondarySchoolHs';
                                                                                                            } elseif ($tblCourseTransfer->getName() == 'Realschule') {
                                                                                                                $identifier = 'SecondarySchoolRs';
                                                                            Severity: Major
                                                                            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                              Method setStudentFocus has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                                      TblPerson $tblPerson,
                                                                                      TblLevel $tblLevel,
                                                                                      &$Content,
                                                                                      $gender,
                                                                                      $hasMigrationBackground,
                                                                              Severity: Minor
                                                                              Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                                                    if ($tblSubjectStudent->getServiceTblPerson()) {
                                                                                                                        if (($tblPerson = $tblSubjectStudent->getServiceTblPerson())) {
                                                                                
                                                                                                                            if ($tblSubject->getName() == 'Deutsch' || $tblSubject->getName() == 'Mathematik') {
                                                                                                                                $personAdvancedCourseList[$tblLevel->getName()][$tblPerson->getId()][0]
                                                                                Severity: Major
                                                                                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 45 mins to fix

                                                                                  Consider simplifying this complex logical expression.
                                                                                  Open

                                                                                                                          if ($tblPrepareStudent->isPrinted()
                                                                                                                              && ($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                                                                                              && ((($tblPrepareInformationTransfer = Prepare::useService()->getPrepareInformationBy(
                                                                                                                                          $tblPrepare, $tblPerson, 'Transfer'
                                                                                                                                      ))
                                                                                  Severity: Major
                                                                                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 40 mins to fix

                                                                                    Method setRepeatersOs has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                    Open

                                                                                            TblPerson $tblPerson,
                                                                                            TblLevel $tblLevel,
                                                                                            TblDivision $tblDivision,
                                                                                            &$Content,
                                                                                            $gender
                                                                                    Severity: Minor
                                                                                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 35 mins to fix

                                                                                      Method setRepeatersGym has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                              TblPerson $tblPerson,
                                                                                              TblLevel $tblLevel,
                                                                                              TblDivision $tblDivision,
                                                                                              &$Content,
                                                                                              $gender
                                                                                      Severity: Minor
                                                                                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 35 mins to fix

                                                                                        Method countCourses has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                                TblLevel $tblLevel,
                                                                                                TblDivision $tblDivision,
                                                                                                &$countAdvancedCourseArray,
                                                                                                &$countBasicCourseArray,
                                                                                                &$personAdvancedCourseList
                                                                                        Severity: Minor
                                                                                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 35 mins to fix

                                                                                          Function hasRepeaters has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                              private static function hasRepeaters(
                                                                                                  TblPerson $tblPerson,
                                                                                                  TblLevel $tblLevel,
                                                                                                  TblDivision $tblDivision
                                                                                              ) {
                                                                                          Severity: Minor
                                                                                          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 35 mins 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 getForeignLanguages has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                              private static function getForeignLanguages(TblPerson $tblPerson)
                                                                                              {
                                                                                                  $subjects = array();
                                                                                                  if (($tblStudent = $tblPerson->getStudent())
                                                                                                      && ($tblStudentSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('FOREIGN_LANGUAGE'))
                                                                                          Severity: Minor
                                                                                          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 35 mins 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

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                          if ($hasAutism) {
                                                                                                              if (isset($Content['F01'][$name]['Autism']['L' . $tblLevel->getName()][$gender])) {
                                                                                                                  $Content['F01'][$name]['Autism']['L' . $tblLevel->getName()][$gender]++;
                                                                                                              } else {
                                                                                                                  $Content['F01'][$name]['Autism']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 637..660

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 359.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                      if ($hasMigrationBackground) {
                                                                                                          if (isset($Content['F01'][$name]['HasMigrationBackground']['L' . $tblLevel->getName()][$gender])) {
                                                                                                              $Content['F01'][$name]['HasMigrationBackground']['L' . $tblLevel->getName()][$gender]++;
                                                                                                          } else {
                                                                                                              $Content['F01'][$name]['HasMigrationBackground']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 683..706

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 359.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                          Open

                                                                                                  foreach ($countMigrantsNationalityArray as $nation => $levelArray) {
                                                                                                      $Content['E03']['N' . $count]['NationalityName'] = $nation;
                                                                                                      $Content['E03']['N' . $count]['m'] = 0;
                                                                                                      $Content['E03']['N' . $count]['w'] = 0;
                                                                                                      $Content['E03']['N' . $count]['x'] = 0;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1496..1517
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1526..1547

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 278.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                          Open

                                                                                                  foreach ($countArray as $year => $levelArray) {
                                                                                                      $Content['E02']['Y' . $count]['YearName'] = $year;
                                                                                                      $Content['E02']['Y' . $count]['m'] = 0;
                                                                                                      $Content['E02']['Y' . $count]['w'] = 0;
                                                                                                      $Content['E02']['Y' . $count]['x'] = 0;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1526..1547
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1556..1577

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 278.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                          Open

                                                                                                  foreach ($countMigrantsArray as $year => $levelArray) {
                                                                                                      $Content['E02_1']['Y' . $count]['YearName'] = $year;
                                                                                                      $Content['E02_1']['Y' . $count]['m'] = 0;
                                                                                                      $Content['E02_1']['Y' . $count]['w'] = 0;
                                                                                                      $Content['E02_1']['Y' . $count]['x'] = 0;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1496..1517
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1556..1577

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 278.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                          foreach ($levelArray as $level => $genderArray) {
                                                                                                              foreach ($genderArray as $gender => $value) {
                                                                                                                  $Content['E11']['S' . $count]['L' . $level][$gender] = $value;
                                                                                          
                                                                                                                  if (isset($Content['E11']['TotalCount']['L' . $level][$gender])) {
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1300..1317

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 215.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                      foreach ($levelArray as $level => $genderArray) {
                                                                                                          foreach ($genderArray as $gender => $value) {
                                                                                          
                                                                                                              $Content['E12']['S' . $count]['L' . $level][$gender] = $value;
                                                                                          
                                                                                          
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 938..954

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 215.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                                                      } else {
                                                                                                                                          if (isset($Content['C01']['L' . $tblLevel->getName()][$gender])) {
                                                                                                                                              $Content['C01']['L' . $tblLevel->getName()][$gender]++;
                                                                                                                                          } else {
                                                                                                                                              $Content['C01']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1149..1161

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 138.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                              if ($gender) {
                                                                                                                  if (isset($Content['E08']['L' . $tblLevel->getName()][$gender])) {
                                                                                                                      $Content['E08']['L' . $tblLevel->getName()][$gender]++;
                                                                                                                  } else {
                                                                                                                      $Content['E08']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 557..569

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 138.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                      foreach ($levelArray as $level => $valueArray) {
                                                                                                          foreach ($valueArray as $identifier => $value) {
                                                                                                              $Content['E16']['S' . $count]['L' . $level][$identifier] = $value;
                                                                                          
                                                                                                              if (isset($Content['E16']['TotalCount']['L' . $level][$identifier])) {
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2402..2412

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 124.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                              foreach ($array['Levels'] as $level => $genderArray) {
                                                                                                                  foreach ($genderArray as $gender => $value) {
                                                                                                                      $Content['E18']['S' . $count]['L' . $level][$gender] = $value;
                                                                                          
                                                                                                                      if (isset($Content['E18']['TotalCount']['L' . $level][$gender])) {
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2468..2478

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 124.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                              private static function getForeignLanguages(TblPerson $tblPerson)
                                                                                              {
                                                                                                  $subjects = array();
                                                                                                  if (($tblStudent = $tblPerson->getStudent())
                                                                                                      && ($tblStudentSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('FOREIGN_LANGUAGE'))
                                                                                          Application/Reporting/KamenzReport/KamenzService.php on lines 298..319

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 119.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                          Open

                                                                                                          if (isset($Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender])) {
                                                                                                              $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender]++;
                                                                                                          } else {
                                                                                                              $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                          }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 545..549
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1785..1789
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2633..2637
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2655..2659

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                          Open

                                                                                                      if (isset($Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender])) {
                                                                                                          $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender]++;
                                                                                                      } else {
                                                                                                          $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                      }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 545..549
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1761..1765
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1785..1789
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2633..2637

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                          Open

                                                                                                          if (isset($Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender])) {
                                                                                                              $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender]++;
                                                                                                          } else {
                                                                                                              $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                          }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 545..549
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1761..1765
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2633..2637
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2655..2659

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                          Open

                                                                                                                                          if (isset($Content['C01'][$course]['L' . $tblLevel->getName()][$gender])) {
                                                                                                                                              $Content['C01'][$course]['L' . $tblLevel->getName()][$gender]++;
                                                                                                                                          } else {
                                                                                                                                              $Content['C01'][$course]['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                                                          }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1761..1765
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1785..1789
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2633..2637
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2655..2659

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                          Open

                                                                                                      if (isset($Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender])) {
                                                                                                          $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender]++;
                                                                                                      } else {
                                                                                                          $Content['E07'][$identifier]['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                      }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 545..549
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1761..1765
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1785..1789
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2655..2659

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                      if (isset($Content['E01']['Student']['L' . $tblLevel->getName()][$gender])) {
                                                                                                          $Content['E01']['Student']['L' . $tblLevel->getName()][$gender]++;
                                                                                                      } else {
                                                                                                          $Content['E01']['Student']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                      }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1105..1109

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                                  if (isset($Content['E08']['WithoutCourse']['L' . $tblLevel->getName()][$gender])) {
                                                                                                                      $Content['E08']['WithoutCourse']['L' . $tblLevel->getName()][$gender]++;
                                                                                                                  } else {
                                                                                                                      $Content['E08']['WithoutCourse']['L' . $tblLevel->getName()][$gender] = 1;
                                                                                                                  }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 1729..1733

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                                                              if (isset($Content['B01'][$tblCertificate->getCertificate()]['L' . $certificate][$gender])) {
                                                                                                                                                  $Content['B01'][$tblCertificate->getCertificate()]['L' . $certificate][$gender]++;
                                                                                                                                              } else {
                                                                                                                                                  $Content['B01'][$tblCertificate->getCertificate()]['L' . $certificate][$gender] = 1;
                                                                                                                                              }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2192..2196

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                          Open

                                                                                                                                                  if (isset($Content['B01_1'][$tblCertificate->getCertificate()]['L' . $certificate][$gender])) {
                                                                                                                                                      $Content['B01_1'][$tblCertificate->getCertificate()]['L' . $certificate][$gender]++;
                                                                                                                                                  } else {
                                                                                                                                                      $Content['B01_1'][$tblCertificate->getCertificate()]['L' . $certificate][$gender] = 1;
                                                                                                                                                  }
                                                                                          Application/Document/Generator/Service/Kamenz/KamenzReportService.php on lines 2155..2159

                                                                                          Duplicated Code

                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                          Tuning

                                                                                          This issue has a mass of 91.

                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                          Refactorings

                                                                                          Further Reading

                                                                                          There are no issues that match your filters.

                                                                                          Category
                                                                                          Status