DerDu/SPHERE-Framework

View on GitHub
Application/Reporting/Standard/Person/Frontend.php

Summary

Maintainability
F
2 wks
Test Coverage

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

<?php
namespace SPHERE\Application\Reporting\Standard\Person;

use SPHERE\Application\Api\Reporting\Standard\ApiStandard;
use SPHERE\Application\Education\Lesson\Division\Division;
Severity: Major
Found in Application/Reporting/Standard/Person/Frontend.php - About 3 days to fix

    Method frontendGroupList has 224 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendGroupList($GroupId = null)
        {
    
            $Stage = new Stage('Auswertung', 'Personengruppenlisten');
            $tblGroupAll = Group::useService()->getGroupAll();
    Severity: Major
    Found in Application/Reporting/Standard/Person/Frontend.php - About 1 day to fix

      Method frontendExtendedClassList has 172 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendExtendedClassList($DivisionId = null)
          {
      
              $Stage = new Stage('Auswertung', 'erweiterte Klassenlisten');
              if (null !== $DivisionId) {
      Severity: Major
      Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

        Method frontendMedicalInsuranceClassList has 156 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendMedicalInsuranceClassList($DivisionId = null)
            {
        
                $Stage = new Stage('Auswertung', 'Klassenlisten Krankenkasse');
                if (null !== $DivisionId) {
        Severity: Major
        Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

          Method frontendBirthdayClassList has 153 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendBirthdayClassList($DivisionId = null)
              {
          
                  $Stage = new Stage('Auswertung', 'Klassenlisten Geburtstag');
                  if (null !== $DivisionId) {
          Severity: Major
          Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

            Method frontendElectiveClassList has 152 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendElectiveClassList($DivisionId = null)
                {
            
                    $Stage = new Stage('Auswertung', 'Wahlfächer in Klassenlisten');
                    if (null !== $DivisionId) {
            Severity: Major
            Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

              Function frontendGroupList has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendGroupList($GroupId = null)
                  {
              
                      $Stage = new Stage('Auswertung', 'Personengruppenlisten');
                      $tblGroupAll = Group::useService()->getGroupAll();
              Severity: Minor
              Found in Application/Reporting/Standard/Person/Frontend.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 showClassList has 97 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function showClassList(Stage $Stage, $DivisionId, $showDownLoadButton = true)
                  {
              
                      $tblDivision = Division::useService()->getDivisionById($DivisionId);
                      $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
              Severity: Major
              Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

                Method frontendInterestedPersonList has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendInterestedPersonList()
                    {
                
                        $Stage = new Stage('Auswertung', 'Neuanmeldungen/Interessenten');
                        $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByMetaTable('PROSPECT'));
                Severity: Major
                Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

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

                      public function frontendExtendedClassList($DivisionId = null)
                      {
                  
                          $Stage = new Stage('Auswertung', 'erweiterte Klassenlisten');
                          if (null !== $DivisionId) {
                  Severity: Minor
                  Found in Application/Reporting/Standard/Person/Frontend.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 frontendMetaDataComparison has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendMetaDataComparison($Person = null, $Year = null, $Division = null, $Option = null, $PersonGroup = null) {
                          $Stage = new Stage('Auswertung', 'Stammdatenabfrage');
                  
                          $FilterForm = $this->getStudentFilterForm();
                  
                  
                  Severity: Major
                  Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

                    Method getStudentFilterForm has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private function getStudentFilterForm()
                        {
                            $tblLevelShowList = array();
                    
                            $tblLevelList = Division::useService()->getLevelAll();
                    Severity: Major
                    Found in Application/Reporting/Standard/Person/Frontend.php - About 2 hrs to fix

                      Method frontendClassList has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendClassList($DivisionId = null)
                          {
                      
                              $Stage = new Stage('Auswertung', 'Klassenlisten');
                              if (null !== $DivisionId) {
                      Severity: Major
                      Found in Application/Reporting/Standard/Person/Frontend.php - About 2 hrs to fix

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

                            public function frontendAbsence($Data = null)
                            {
                                $stage = new Stage('Auswertung', 'Fehlzeiten');
                        
                                $stage->setMessage(
                        Severity: Minor
                        Found in Application/Reporting/Standard/Person/Frontend.php - About 1 hr to fix

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

                              public function frontendBirthdayClassList($DivisionId = null)
                              {
                          
                                  $Stage = new Stage('Auswertung', 'Klassenlisten Geburtstag');
                                  if (null !== $DivisionId) {
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Frontend.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

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

                              public function frontendMedicalInsuranceClassList($DivisionId = null)
                              {
                          
                                  $Stage = new Stage('Auswertung', 'Klassenlisten Krankenkasse');
                                  if (null !== $DivisionId) {
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Frontend.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

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

                              public function frontendElectiveClassList($DivisionId = null)
                              {
                          
                                  $Stage = new Stage('Auswertung', 'Wahlfächer in Klassenlisten');
                                  if (null !== $DivisionId) {
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Frontend.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

                          Function getStudentFilterForm has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function getStudentFilterForm()
                              {
                                  $tblLevelShowList = array();
                          
                                  $tblLevelList = Division::useService()->getLevelAll();
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Frontend.php - About 45 mins to fix

                          Cognitive Complexity

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

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

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

                          Further reading

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

                              public function frontendMetaDataComparison($Person = null, $Year = null, $Division = null, $Option = null, $PersonGroup = null) {
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Frontend.php - About 35 mins to fix

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

                                public function showClassList(Stage $Stage, $DivisionId, $showDownLoadButton = true)
                                {
                            
                                    $tblDivision = Division::useService()->getDivisionById($DivisionId);
                                    $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                            Severity: Minor
                            Found in Application/Reporting/Standard/Person/Frontend.php - About 35 mins to fix

                            Cognitive Complexity

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

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

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

                            Further reading

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

                                private function getInActiveStudentPanel(TblDivision $tblDivision)
                                {
                                    $inActiveStudentList = array();
                                    if (($tblDivisionStudentAll = Division::useService()->getDivisionStudentAllByDivision($tblDivision, true))) {
                                        foreach ($tblDivisionStudentAll as $tblDivisionStudent) {
                            Severity: Minor
                            Found in Application/Reporting/Standard/Person/Frontend.php - About 35 mins to fix

                            Cognitive Complexity

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

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

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

                            Further reading

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

                                                    new LayoutGroup(array(
                                                        new LayoutRow(array(
                                                            ($tblDivision->getServiceTblYear() ?
                                                                new LayoutColumn(
                                                                    new Panel('Jahr', $tblDivision->getServiceTblYear()->getDisplayName(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 4 other locations - About 4 hrs to fix
                            Application/Reporting/Standard/Person/Frontend.php on lines 421..441
                            Application/Reporting/Standard/Person/Frontend.php on lines 593..613
                            Application/Reporting/Standard/Person/Frontend.php on lines 949..969
                            Application/Reporting/Standard/Person/Frontend.php on lines 1239..1259

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

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

                                                new LayoutGroup(array(
                                                    new LayoutRow(array(
                                                        ($tblDivision->getServiceTblYear() ?
                                                            new LayoutColumn(
                                                                new Panel('Jahr', $tblDivision->getServiceTblYear()->getDisplayName(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 4 other locations - About 4 hrs to fix
                            Application/Reporting/Standard/Person/Frontend.php on lines 251..271
                            Application/Reporting/Standard/Person/Frontend.php on lines 593..613
                            Application/Reporting/Standard/Person/Frontend.php on lines 949..969
                            Application/Reporting/Standard/Person/Frontend.php on lines 1239..1259

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

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

                                                new LayoutGroup(array(
                                                    new LayoutRow(array(
                                                        ($tblDivision->getServiceTblYear() ?
                                                            new LayoutColumn(
                                                                new Panel('Jahr', $tblDivision->getServiceTblYear()->getDisplayName(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 4 other locations - About 4 hrs to fix
                            Application/Reporting/Standard/Person/Frontend.php on lines 251..271
                            Application/Reporting/Standard/Person/Frontend.php on lines 421..441
                            Application/Reporting/Standard/Person/Frontend.php on lines 593..613
                            Application/Reporting/Standard/Person/Frontend.php on lines 1239..1259

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

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

                                                new LayoutGroup(array(
                                                    new LayoutRow(array(
                                                        ($tblDivision->getServiceTblYear() ?
                                                            new LayoutColumn(
                                                                new Panel('Jahr', $tblDivision->getServiceTblYear()->getDisplayName(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 4 other locations - About 4 hrs to fix
                            Application/Reporting/Standard/Person/Frontend.php on lines 251..271
                            Application/Reporting/Standard/Person/Frontend.php on lines 421..441
                            Application/Reporting/Standard/Person/Frontend.php on lines 949..969
                            Application/Reporting/Standard/Person/Frontend.php on lines 1239..1259

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

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

                                                new LayoutGroup(array(
                                                    new LayoutRow(array(
                                                        ($tblDivision->getServiceTblYear() ?
                                                            new LayoutColumn(
                                                                new Panel('Jahr', $tblDivision->getServiceTblYear()->getDisplayName(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 4 other locations - About 4 hrs to fix
                            Application/Reporting/Standard/Person/Frontend.php on lines 251..271
                            Application/Reporting/Standard/Person/Frontend.php on lines 421..441
                            Application/Reporting/Standard/Person/Frontend.php on lines 593..613
                            Application/Reporting/Standard/Person/Frontend.php on lines 949..969

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

                            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

                                        $Stage->setContent(
                                            new Layout(
                                                new LayoutGroup(
                                                    new LayoutRow(
                                                        new LayoutColumn(
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 1 other location - About 2 hrs to fix
                            Application/Reporting/Standard/Company/Frontend.php on lines 56..80

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

                            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 ($DivisionId !== null) {
                            
                                        $tblDivision = Division::useService()->getDivisionById($DivisionId);
                                        if ($tblDivision) {
                                            $PersonList = Person::useService()->createElectiveClassList($tblDivision);
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 1 other location - About 1 hr to fix
                            Application/Reporting/Custom/Radebeul/Person/Frontend.php on lines 78..94

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

                            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

                                                new FormColumn(
                                                    new Panel('Bildung', array(
                                                        (new SelectBox('Year['.ViewYear::TBL_YEAR_ID.']', 'Schuljahr',
                                                            array('{{ Name }} {{ Description }}' => Term::useService()->getYearAllSinceYears(1))))
                                                            ->setRequired(),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 2 other locations - About 1 hr to fix
                            Application/Setting/User/Account/Frontend.php on lines 282..290
                            Application/Setting/User/Account/Frontend.php on lines 671..679

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

                            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 ($tblGroup->getMetaTable() == 'STUDENT') {
                                                $ColumnCustom = array(
                                                    'Identifier'           => 'Schülernummer',
                                                    'School'               => 'Schule',
                                                    'SchoolType'           => 'Schulart',
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 1 other location - About 1 hr to fix
                            Application/Reporting/Standard/Person/Service.php on lines 1457..1479

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

                            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

                                                                'columnDefs' => array(
                                                                    array('type' => Consumer::useService()->getGermanSortBySetting(), 'targets' => 3),
                                                                    array('type' => Consumer::useService()->getGermanSortBySetting(), 'targets' => 4),
                                                                    array('type' => Consumer::useService()->getGermanSortBySetting(), 'targets' => 14),
                                                                    array('type' => Consumer::useService()->getGermanSortBySetting(), 'targets' => 15),
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 1 other location - About 1 hr to fix
                            Application/Reporting/Custom/Chemnitz/Person/Frontend.php on lines 624..630

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

                            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

                                                            array(
                                                                'RegistrationDate' => 'Anmeldedatum',
                                                                'InterviewDate'    => 'Aufnahmegespräch ',
                                                                'TrialDate'        => 'Schnuppertag ',
                                                                'FirstName'        => 'Vorname',
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 2 other locations - About 1 hr to fix
                            Application/Education/Certificate/Generator/Frontend.php on lines 368..391
                            Application/Platform/System/Database/ReportingUpgrade.php on lines 34..57

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

                            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

                                                new FormColumn(
                                                    new Panel('Klasse', array(
                                                        new SelectBox('Division['.ViewDivision::TBL_LEVEL_ID.']', 'Stufe',
                                                            array('{{ Name }} {{ serviceTblType.Name }}' => $tblLevelShowList)),
                                                        new AutoCompleter('Division['.ViewDivision::TBL_DIVISION_NAME.']', 'Gruppe',
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Frontend.php and 2 other locations - About 1 hr to fix
                            Application/Setting/User/Account/Frontend.php on lines 291..298
                            Application/Setting/User/Account/Frontend.php on lines 680..687

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

                            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