DerDu/SPHERE-Framework

View on GitHub
Application/Reporting/Custom/Chemnitz/Person/Service.php

Summary

Maintainability
F
1 mo
Test Coverage

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

<?php
namespace SPHERE\Application\Reporting\Custom\Chemnitz\Person;

use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
use MOC\V\Component\Document\Component\Exception\Repository\TypeFileException;
Severity: Major
Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 3 days to fix

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

        public function createPrintClassListExcel($PersonList, $tblPersonList, $DivisionId)
        {
    
            // get PersonList sorted by GradeBook
            if (!empty($PersonList)) {
    Severity: Minor
    Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 days to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method createPrintClassList has 276 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function createPrintClassList(TblDivision $tblDivision)
        {
    
            $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
            $TableContent = array();
    Severity: Major
    Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 day to fix

      Method createPrintClassListExcel has 226 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createPrintClassListExcel($PersonList, $tblPersonList, $DivisionId)
          {
      
              // get PersonList sorted by GradeBook
              if (!empty($PersonList)) {
      Severity: Major
      Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 day to fix

        Method createInterestedPersonList has 162 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function createInterestedPersonList()
            {
        
                $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Interessent'));
                $TableContent = array();
        Severity: Major
        Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 6 hrs to fix

          Function getDivisionDisplayStringByPerson has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              private function getDivisionDisplayStringByPerson(TblPerson $tblPerson, TblDivision $tblDivision)
              {
          
                  $result = '';
                  $YearString = $tblDivision->getServiceTblYear()->getYear();
          Severity: Minor
          Found in Application/Reporting/Custom/Chemnitz/Person/Service.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 createInterestedPersonListExcel has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createInterestedPersonListExcel($PersonList, $tblPersonList)
              {
          
                  if (!empty($PersonList)) {
          
          
          Severity: Major
          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 3 hrs to fix

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

                public function createSchoolFeeListExcel($PersonList, $tblPersonList)
                {
            
                    if (!empty($PersonList)) {
            
            
            Severity: Major
            Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 hrs to fix

              Method createSchoolFeeList has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function createSchoolFeeList()
                  {
              
                      $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Schüler'));
                      $TableContent = array();
              Severity: Major
              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 hrs to fix

                Method createClassList has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function createClassList(TblDivision $tblDivision)
                    {
                
                        $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                        $TableContent = array();
                Severity: Major
                Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 hrs to fix

                  Method createStaffListExcel has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createStaffListExcel($PersonList, $tblPersonList)
                      {
                  
                          if (!empty($PersonList)) {
                  
                  
                  Severity: Minor
                  Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                    Function getPhoneGuardianString has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private function getPhoneGuardianString(TblToPerson $tblToPerson){
                            $typeString = Phone::useService()->getPhoneTypeShort($tblToPerson);
                            $person = '';
                            $tblGuardianPerson = $tblToPerson->getServiceTblPerson();
                            if ($tblGuardianPerson){
                    Severity: Minor
                    Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr 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 createStaffList has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createStaffList()
                        {
                    
                            $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Mitarbeiter'));
                            $TableContent = array();
                    Severity: Minor
                    Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                      Method createClassListExcel has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createClassListExcel($PersonList, $tblPersonList)
                          {
                      
                              if (!empty($PersonList)) {
                      
                      
                      Severity: Minor
                      Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                        Method createClubMemberListExcel has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createClubMemberListExcel($PersonList, $tblPersonList)
                            {
                        
                                if (!empty($PersonList)) {
                        
                        
                        Severity: Minor
                        Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                          Method createClubMemberList has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function createClubMemberList()
                              {
                          
                                  $tblGroup = Group::useService()->getGroupByMetaTable( TblGroup::META_TABLE_CLUB );
                                  $TableContent = array();
                          Severity: Minor
                          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                            Method createMedicListExcel has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function createMedicListExcel($PersonList, $tblPersonList)
                                {
                            
                                    if (!empty($PersonList)) {
                            
                            
                            Severity: Minor
                            Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                              Method createMedicList has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function createMedicList(TblDivision $tblDivision)
                                  {
                              
                                      $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                                      $TableContent = array();
                              Severity: Minor
                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

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

                                    public function createParentTeacherConferenceListExcel($PersonList, $tblPersonList)
                                    {
                                
                                        if (!empty($PersonList)) {
                                
                                
                                Severity: Minor
                                Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 hr to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if ($tblCourse) {
                                                                  if ($tblCourse->getName() == 'Gymnasium') {
                                                                      $Item['Education'] = 'GY';
                                                                  } elseif ($tblCourse->getName() == 'Hauptschule') {
                                                                      $Item['Education'] = 'HS';
                                  Severity: Major
                                  Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    if ($salutation->getId() == 1) {
                                                                        $father = $guardian->getServiceTblPersonFrom();
                                                                    } elseif ($salutation->getId() == 2) {
                                                                        $mother = $guardian->getServiceTblPersonFrom();
                                                                    }
                                    Severity: Major
                                    Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if ($tblToPhoneList) {
                                                                          foreach ($tblToPhoneList as $tblToPhone) {
                                                                              if (( $tblPhone = $tblToPhone->getTblPhone() )) {
                                                                                  if (!isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
                                                                                      $Item['PhoneGuardian'][$tblPersonGuardian->getId()] =
                                      Severity: Major
                                      Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if (isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
                                                                            $Item['PhoneGuardian'][$tblPersonGuardian->getId()] .= ')';
                                                                        }
                                        Severity: Major
                                        Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                                          if ($guardian->getServiceTblPersonTo()->getId() != $tblPerson->getId()) {
                                                                              $DivisionDisplay = $this->getDivisionDisplayStringByPerson($guardian->getServiceTblPersonTo(), $tblDivision);
                                                                              $Sibling[] = '['.$guardian->getServiceTblPersonTo()->getFirstName().$DivisionDisplay.']';
                                                                          }
                                          Severity: Major
                                          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                            if (( $tblStudent = Student::useService()->getStudentByPerson($guardian->getServiceTblPersonFrom()) )) {
                                                                                $DivisionDisplay = $this->getDivisionDisplayStringByPerson($guardian->getServiceTblPersonFrom(), $tblDivision);
                                                                                $Sibling[] = '['.$guardian->getServiceTblPersonFrom()->getFirstName().$DivisionDisplay.']';
                                                                            }
                                            Severity: Major
                                            Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

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

                                                  public function createClubMemberListExcel($PersonList, $tblPersonList)
                                                  {
                                              
                                                      if (!empty($PersonList)) {
                                              
                                              
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 4 days to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 120..176

                                              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 812.

                                              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

                                                  public function createClassListExcel($PersonList, $tblPersonList)
                                                  {
                                              
                                                      if (!empty($PersonList)) {
                                              
                                              
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 4 days to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1038..1093

                                              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 812.

                                              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 ($PersonList as $PersonData) {
                                              
                                                              $export->setValue($export->getCell("0", $Row), $PersonData['DebtorNumber']);
                                              
                                                              $export->setValue($export->getCell("2", $Row), $PersonData['FatherSalutation']);
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 1 day to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 273..290

                                              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 361.

                                              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 ($PersonList as $PersonData) {
                                                              $export->setValue($export->getCell("0", $Row), $PersonData['Salutation']);
                                                              $export->setValue($export->getCell("1", $Row), $PersonData['Title']);
                                                              $export->setValue($export->getCell("2", $Row), $PersonData['FirstName']);
                                                              $export->setValue($export->getCell("3", $Row), $PersonData['LastName']);
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 1 day to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 469..489

                                              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 361.

                                              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

                                                          if (($tblDivision = Division::useService()->getDivisionById($DivisionId))) {
                                                              $tblDivisionCustodyList = Division::useService()->getCustodyAllByDivision($tblDivision);
                                                              if ($tblDivisionCustodyList) {
                                                                  foreach ($tblDivisionCustodyList as $tblPerson) {
                                                                      $custodyList[] = trim($tblPerson->getSalutation() . ' ' . $tblPerson->getLastName());
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 7 hrs to fix
                                              Application/Reporting/Standard/Person/Service.php on lines 2161..2181

                                              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 230.

                                              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 ($mother) {
                                                                  $tblAddressMother = Address::useService()->getAddressByPerson($mother);
                                                                  if ($tblAddressMother && $tblAddressMother->getId() != ( $tblAddress ? $tblAddress->getId() : null )) {
                                                                      if (!empty($Item['ExcelAddress'])) {
                                                                          $Item['ExcelAddress'][] = '- - - - - - -';
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 5 hrs to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1199..1212

                                              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 194.

                                              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 ($father) {
                                                                  $tblAddressFather = Address::useService()->getAddressByPerson($father);
                                                                  if ($tblAddressFather && $tblAddressFather->getId() != ( $tblAddress ? $tblAddress->getId() : null )) {
                                                                      if (!empty($Item['ExcelAddress'])) {
                                                                          $Item['ExcelAddress'][] = '- - - - - - -';
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 5 hrs to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1213..1226

                                              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 194.

                                              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

                                                                              if ($tblToPhoneList) {
                                                                                  foreach ($tblToPhoneList as $tblToPhone) {
                                                                                      if (( $tblPhone = $tblToPhone->getTblPhone() )) {
                                                                                          if (!isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
                                                                                              $Item['PhoneGuardian'][$tblPersonGuardian->getId()] =
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 4 hrs to fix
                                              Application/Reporting/CheckList/Service.php on lines 1034..1050

                                              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 176.

                                              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

                                                  public function createParentTeacherConferenceList(TblDivision $tblDivision)
                                                  {
                                              
                                                      $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                                                      $TableContent = array();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 3 hrs to fix
                                              Application/Reporting/Custom/Radebeul/Person/Service.php on lines 42..61

                                              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 150.

                                              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

                                                                  if ($tblStudentElectiveList) {
                                                                      foreach ($tblStudentElectiveList as $tblStudentElective) {
                                                                          if ($tblStudentElective->getServiceTblSubject()) {
                                                                              $tblSubjectRanking = $tblStudentElective->getTblStudentSubjectRanking();
                                                                              if ($tblSubjectRanking) {
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 3 hrs to fix
                                              Application/Reporting/Standard/Person/Service.php on lines 2109..2131

                                              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 143.

                                              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

                                                                          if ($Item['Phone'] == '') {
                                                                              $Item['Phone'] = $tblPerson->getFirstName().' '.$tblPerson->getLastName().' ('.$tblPhone->getNumber().' '.
                                                                                  // modify TypeShort
                                                                                  str_replace('.', '', Phone::useService()->getPhoneTypeShort($tblToPhone));
                                                                          } else {
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 2 hrs to fix
                                              Application/Reporting/Standard/Person/Service.php on lines 1731..1739

                                              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 132.

                                              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

                                                                  if ($tblTransferType) {
                                                                      $tblStudentTransfer = Student::useService()->getStudentTransferByType($tblStudent,
                                                                          $tblTransferType);
                                                                      if ($tblStudentTransfer) {
                                                                          $tblCourse = $tblStudentTransfer->getServiceTblCourse();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 2 hrs to fix
                                              Application/Reporting/Standard/Person/Service.php on lines 2084..2101

                                              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 129.

                                              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 12 locations. Consider refactoring.
                                              Open

                                                              if ($tblToPersonAddress && ($tblAddress = $tblToPersonAddress->getTblAddress())) {
                                                                  $Item['StreetName'] = $tblAddress->getStreetName();
                                                                  $Item['StreetNumber'] = $tblAddress->getStreetNumber();
                                                                  $Item['Code'] = $tblAddress->getTblCity()->getCode();
                                                                  $Item['City'] = $tblAddress->getTblCity()->getName();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 11 other locations - About 1 hr to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 209..217
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 539..547
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 643..651
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1002..1010
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 360..368
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 618..626
                                              Application/Reporting/Standard/Person/Service.php on lines 523..531
                                              Application/Reporting/Standard/Person/Service.php on lines 792..800
                                              Application/Reporting/Standard/Person/Service.php on lines 944..952
                                              Application/Reporting/Standard/Person/Service.php on lines 1214..1222
                                              Application/Reporting/Standard/Person/Service.php on lines 1658..1666

                                              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 109.

                                              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 12 locations. Consider refactoring.
                                              Open

                                                              if ($tblToPersonAddress && ($tblAddress = $tblToPersonAddress->getTblAddress())) {
                                                                  $Item['StreetName'] = $tblAddress->getStreetName();
                                                                  $Item['StreetNumber'] = $tblAddress->getStreetNumber();
                                                                  $Item['Code'] = $tblAddress->getTblCity()->getCode();
                                                                  $Item['City'] = $tblAddress->getTblCity()->getName();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 11 other locations - About 1 hr to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 347..355
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 539..547
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 643..651
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1002..1010
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 360..368
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 618..626
                                              Application/Reporting/Standard/Person/Service.php on lines 523..531
                                              Application/Reporting/Standard/Person/Service.php on lines 792..800
                                              Application/Reporting/Standard/Person/Service.php on lines 944..952
                                              Application/Reporting/Standard/Person/Service.php on lines 1214..1222
                                              Application/Reporting/Standard/Person/Service.php on lines 1658..1666

                                              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 109.

                                              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 12 locations. Consider refactoring.
                                              Open

                                                              if ($tblToPersonAddress && ($tblAddress = $tblToPersonAddress->getTblAddress())) {
                                                                  $Item['StreetName'] = $tblAddress->getStreetName();
                                                                  $Item['StreetNumber'] = $tblAddress->getStreetNumber();
                                                                  $Item['Code'] = $tblAddress->getTblCity()->getCode();
                                                                  $Item['City'] = $tblAddress->getTblCity()->getName();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 11 other locations - About 1 hr to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 209..217
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 347..355
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 643..651
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1002..1010
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 360..368
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 618..626
                                              Application/Reporting/Standard/Person/Service.php on lines 523..531
                                              Application/Reporting/Standard/Person/Service.php on lines 792..800
                                              Application/Reporting/Standard/Person/Service.php on lines 944..952
                                              Application/Reporting/Standard/Person/Service.php on lines 1214..1222
                                              Application/Reporting/Standard/Person/Service.php on lines 1658..1666

                                              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 109.

                                              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 12 locations. Consider refactoring.
                                              Open

                                                                  if ($tblToPersonAddress && ($tblAddress = $tblToPersonAddress->getTblAddress())) {
                                                                      $Item['StreetName'] = $tblAddress->getStreetName();
                                                                      $Item['StreetNumber'] = $tblAddress->getStreetNumber();
                                                                      $Item['Code'] = $tblAddress->getTblCity()->getCode();
                                                                      $Item['City'] = $tblAddress->getTblCity()->getName();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 11 other locations - About 1 hr to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 209..217
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 347..355
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 539..547
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 643..651
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 360..368
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 618..626
                                              Application/Reporting/Standard/Person/Service.php on lines 523..531
                                              Application/Reporting/Standard/Person/Service.php on lines 792..800
                                              Application/Reporting/Standard/Person/Service.php on lines 944..952
                                              Application/Reporting/Standard/Person/Service.php on lines 1214..1222
                                              Application/Reporting/Standard/Person/Service.php on lines 1658..1666

                                              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 109.

                                              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 12 locations. Consider refactoring.
                                              Open

                                                              if ($tblToPersonAddress && ($tblAddress = $tblToPersonAddress->getTblAddress())) {
                                                                  $Item['StreetName'] = $tblAddress->getStreetName();
                                                                  $Item['StreetNumber'] = $tblAddress->getStreetNumber();
                                                                  $Item['Code'] = $tblAddress->getTblCity()->getCode();
                                                                  $Item['City'] = $tblAddress->getTblCity()->getName();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 11 other locations - About 1 hr to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 209..217
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 347..355
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 539..547
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1002..1010
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 360..368
                                              Application/Reporting/Custom/Herrnhut/Person/Service.php on lines 618..626
                                              Application/Reporting/Standard/Person/Service.php on lines 523..531
                                              Application/Reporting/Standard/Person/Service.php on lines 792..800
                                              Application/Reporting/Standard/Person/Service.php on lines 944..952
                                              Application/Reporting/Standard/Person/Service.php on lines 1214..1222
                                              Application/Reporting/Standard/Person/Service.php on lines 1658..1666

                                              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 109.

                                              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 3 locations. Consider refactoring.
                                              Open

                                                                          if (($salutation = $guardian->getServiceTblPersonFrom()->getTblSalutation())) {
                                                                              if ($salutation->getId() == 1) {
                                                                                  $father = $guardian->getServiceTblPersonFrom();
                                                                              } elseif ($salutation->getId() == 2) {
                                                                                  $mother = $guardian->getServiceTblPersonFrom();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 2 other locations - About 45 mins to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 761..773
                                              Application/Reporting/Standard/Person/Service.php on lines 1787..1799

                                              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 96.

                                              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 3 locations. Consider refactoring.
                                              Open

                                                                          if (($salutation = $guardian->getServiceTblPersonFrom()->getTblSalutation())) {
                                                                              if ($salutation->getId() == 1) {
                                                                                  $father = $guardian->getServiceTblPersonFrom();
                                                                              } elseif ($salutation->getId() == 2) {
                                                                                  $mother = $guardian->getServiceTblPersonFrom();
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 2 other locations - About 45 mins to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 62..74
                                              Application/Reporting/Standard/Person/Service.php on lines 1787..1799

                                              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 96.

                                              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

                                                          if (!empty($orientationList)) {
                                                              $Row += 2;
                                                              $export->setValue($export->getCell(0, $Row), 'Neigungskurse/Profile');
                                                              foreach ($orientationList as $orientation => $count) {
                                                                  $Row++;
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 2 other locations - About 45 mins to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1722..1730
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1732..1740

                                              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 96.

                                              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

                                                          if (!empty($educationList)) {
                                                              $Row += 2;
                                                              $export->setValue($export->getCell(0, $Row), 'Bildungsgänge');
                                                              foreach ($educationList as $education => $count) {
                                                                  $Row++;
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 2 other locations - About 45 mins to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1704..1712
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1732..1740

                                              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 96.

                                              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

                                                          if (!empty($excelElectiveList)) {
                                                              $Row += 2;
                                                              $export->setValue($export->getCell(0, $Row), 'Wahlfächer');
                                                              foreach ($excelElectiveList as $excelElective => $count) {
                                                                  $Row++;
                                              Severity: Major
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 2 other locations - About 45 mins to fix
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1704..1712
                                              Application/Reporting/Custom/Chemnitz/Person/Service.php on lines 1722..1730

                                              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 96.

                                              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

                                                                      if ($guardian->getTblType()->getId() == 1) {
                                                                          if ($father === null) {
                                                                              $father = $guardian->getServiceTblPersonFrom();
                                                                              if ($father) {
                                                                                  $fatherPhoneList = Phone::useService()->getPhoneAllByPerson($father);
                                              Severity: Minor
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 40 mins to fix
                                              Application/Reporting/Custom/Hormersdorf/Person/Service.php on lines 54..66

                                              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 94.

                                              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

                                                                  if ($tblProspectReservation) {
                                                                      $Item['SchoolYear'] = $tblProspectReservation->getReservationYear();
                                                                      if ($tblProspectReservation->getServiceTblTypeOptionA()) {
                                                                          $Item['TypeOptionA'] = $tblProspectReservation->getServiceTblTypeOptionA()->getName();
                                                                      }
                                              Severity: Minor
                                              Found in Application/Reporting/Custom/Chemnitz/Person/Service.php and 1 other location - About 30 mins to fix
                                              Application/Reporting/Standard/Person/Service.php on lines 1671..1682

                                              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