DerDu/SPHERE-Framework

View on GitHub
Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php

Summary

Maintainability
F
1 mo
Test Coverage

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

<?php
/**
 * Created by PhpStorm.
 * User: Kauschke
 * Date: 21.09.2016
Severity: Major
Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 5 days to fix

    Function frontendScoreSubjectGroup has a Cognitive Complexity of 147 (exceeds 5 allowed). Consider refactoring.
    Open

        public function frontendScoreSubjectGroup(
            $Id = null,
            $YearId = null,
            $Data = null
        ) {
    Severity: Minor
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 2 days to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function frontendScoreDivision has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring.
    Open

        public function frontendScoreDivision(
            $Id = null,
            $YearId = null,
            $Data = null
        ) {
    Severity: Minor
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 2 days to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function frontendScoreConditionGradeTypeSelect has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
    Open

        public function frontendScoreConditionGradeTypeSelect(
            $Id = null,
            $Period = null
        ) {
    
    
    Severity: Minor
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 day to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function frontendScore has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
    Open

        public function frontendScore(
            $ScoreRule = null
        ) {
    
            $Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
    Severity: Minor
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 7 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 frontendScoreConditionGradeTypeSelect has 179 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendScoreConditionGradeTypeSelect(
            $Id = null,
            $Period = null
        ) {
    
    
    Severity: Major
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 7 hrs to fix

      Method frontendScoreDivision has 169 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendScoreDivision(
              $Id = null,
              $YearId = null,
              $Data = null
          ) {
      Severity: Major
      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 6 hrs to fix

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

            public function frontendScoreSubjectGroup(
                $Id = null,
                $YearId = null,
                $Data = null
            ) {
        Severity: Major
        Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 6 hrs to fix

          Function frontendScoreGroupGradeTypeSelect has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendScoreGroupGradeTypeSelect(
                  $Id = null
              ) {
          
                  $Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 6 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 frontendScoreGroupGradeTypeSelect has 125 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendScoreGroupGradeTypeSelect(
                  $Id = null
              ) {
          
                  $Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 5 hrs to fix

            Method frontendScore has 124 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendScore(
                    $ScoreRule = null
                ) {
            
                    $Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
            Severity: Major
            Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

              Function frontendScoreRuleConditionSelect has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendScoreRuleConditionSelect(
                      $Id = null
                  ) {
              
                      $Stage = new Stage('Berechnungsvorschrift', 'Berechnungsvarianten auswählen');
              Severity: Minor
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

              Cognitive Complexity

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

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

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

              Further reading

              Function frontendScoreGroupSelect has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendScoreGroupSelect(
                      $Id = null
                  ) {
              
                      $Stage = new Stage('Berechnungsvariante', 'Zensuren-Gruppen auswählen');
              Severity: Minor
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

              Cognitive Complexity

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

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

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

              Further reading

              Method frontendScoreGroupSelect has 105 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendScoreGroupSelect(
                      $Id = null
                  ) {
              
                      $Stage = new Stage('Berechnungsvariante', 'Zensuren-Gruppen auswählen');
              Severity: Major
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

                Method frontendScoreRuleConditionSelect has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendScoreRuleConditionSelect(
                        $Id = null
                    ) {
                
                        $Stage = new Stage('Berechnungsvorschrift', 'Berechnungsvarianten auswählen');
                Severity: Major
                Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

                  Method frontendScoreCondition has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendScoreCondition(
                          $ScoreCondition = null
                      ) {
                  
                          $Stage = new Stage('Berechnungsvariante', 'Übersicht');
                  Severity: Major
                  Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

                    Method frontendScoreGroup has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendScoreGroup(
                            $ScoreGroup = null
                        ) {
                    
                            $Stage = new Stage('Zensuren-Gruppe', 'Übersicht');
                    Severity: Major
                    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 3 hrs to fix

                      Frontend has 30 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Frontend extends FrontendMinimumGradeCount
                      {
                      
                          const SCORE_RULE = 0;
                          const SCORE_CONDITION = 1;
                      Severity: Minor
                      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 3 hrs to fix

                        Function frontendScoreGroup has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function frontendScoreGroup(
                                $ScoreGroup = null
                            ) {
                        
                                $Stage = new Stage('Zensuren-Gruppe', 'Übersicht');
                        Severity: Minor
                        Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 2 hrs to fix

                        Cognitive Complexity

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

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

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

                        Further reading

                        Method frontendDestroyScore has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendDestroyScore(
                                $Id = null,
                                $Confirm = false
                            ) {
                        
                        
                        Severity: Minor
                        Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

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

                              public function frontendDestroyScoreGroup(
                                  $Id = null,
                                  $Confirm = false
                              ) {
                          
                          
                          Severity: Minor
                          Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

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

                                public function frontendEditScoreGroup($Id = null, $ScoreGroup = null)
                                {
                            
                                    $Stage = new Stage('Zensuren-Gruppe', 'Bearbeiten');
                                    $Stage->addButton(
                            Severity: Minor
                            Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

                              Method frontendEditScoreCondition has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendEditScoreCondition($Id = null, $ScoreCondition = null)
                                  {
                              
                                      $Stage = new Stage('Berechnungsvariante', 'Bearbeiten');
                                      $Stage->addButton(
                              Severity: Minor
                              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

                                Method frontendDestroyScoreCondition has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendDestroyScoreCondition(
                                        $Id = null,
                                        $Confirm = false
                                    ) {
                                
                                
                                Severity: Minor
                                Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

                                  Method frontendEditScore has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendEditScore($Id = null, $ScoreRule = null)
                                      {
                                  
                                          $Stage = new Stage('Berechnungsvorschrift', 'Bearbeiten');
                                          $Stage->addButton(
                                  Severity: Minor
                                  Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 1 hr to fix

                                    Function frontendScoreCondition has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function frontendScoreCondition(
                                            $ScoreCondition = null
                                        ) {
                                    
                                            $Stage = new Stage('Berechnungsvariante', 'Übersicht');
                                    Severity: Minor
                                    Found in Application/Education/Graduation/Gradebook/ScoreRule/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 frontendScoreConditionGradeTypeAdd has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function frontendScoreConditionGradeTypeAdd(
                                            $tblScoreConditionId = null,
                                            $tblGradeTypeId = null,
                                            $tblScoreGroupId = null,
                                            $GradeType = null
                                    Severity: Minor
                                    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 55 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

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                            if ($Data == null) {
                                                                                $Global = $this->getGlobal();
                                                                                /** @var TblSubject $subject */
                                                                                foreach ($subjectList as $subject) {
                                                                                    $tblScoreRuleSubjectGroup = Gradebook::useService()->getScoreRuleSubjectGroupByDivisionAndSubjectAndGroup(
                                    Severity: Major
                                    Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if (count($columnList[$schoolTypeId]) == 4) {
                                                                          $rowList[$schoolTypeId][] = new FormRow($columnList[$schoolTypeId]);
                                                                          $columnList[$schoolTypeId] = array();
                                                                      }
                                      Severity: Major
                                      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                            if ($tblScoreRuleDivisionSubject) {
                                                                                if ($tblScoreRuleDivisionSubject->getTblScoreRule()
                                                                                    && $tblScoreRuleDivisionSubject->getTblScoreRule()->getId() == $tblScoreRule->getId()
                                                                                ) {
                                                                                    $Global->POST['Data'][$tblDivision->getId()][$subject->getId()] = 1;
                                        Severity: Major
                                        Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                                              if ($tblScoreRuleDivisionSubject->getTblScoreRule()
                                                                                  && $tblScoreRuleDivisionSubject->getTblScoreRule()->getId() != $tblScoreRule->getId()
                                                                              ) {
                                                                                  $isDisabled = true;
                                                                                  $name .= ' ' . new Label($tblScoreRuleDivisionSubject->getTblScoreRule()->getName(),
                                          Severity: Major
                                          Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 45 mins to fix

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

                                                public function frontendScoreGroupGradeTypeAdd(
                                                    $tblScoreGroupId = null,
                                                    $tblGradeTypeId = null,
                                                    $GradeType = null
                                                ) {
                                            Severity: Minor
                                            Found in Application/Education/Graduation/Gradebook/ScoreRule/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

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

                                                    $Stage->setContent(
                                                        new Layout(array(
                                                            new LayoutGroup(array(
                                                                new LayoutRow(array(
                                                                    new LayoutColumn(array(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 514..547

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

                                            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(array(
                                                            new LayoutGroup(array(
                                                                new LayoutRow(array(
                                                                    new LayoutColumn(array(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 380..417

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

                                            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

                                                public function frontendActivateScoreCondition(
                                                    $Id = null
                                                ) {
                                            
                                                    $Route = '/Education/Graduation/Gradebook/Score/Condition';
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 2510..2540
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 2218..2248

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

                                            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

                                                public function frontendActivateScoreGroup(
                                                    $Id = null
                                                ) {
                                            
                                                    $Route = '/Education/Graduation/Gradebook/Score/Group';
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 2510..2540
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 2120..2150

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

                                            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(array(
                                                                new LayoutGroup(array(
                                                                    new LayoutRow(array(
                                                                        new LayoutColumn(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1926..1957

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

                                            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(array(
                                                                new LayoutGroup(array(
                                                                    new LayoutRow(array(
                                                                        new LayoutColumn(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1730..1761

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

                                            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 Standard('', '/Education/Graduation/Gradebook/Score/Edit', new Edit(),
                                                                        array('Id' => $tblScoreRule->getId()), 'Bearbeiten')) .
                                                                    ($tblScoreRule->isActive()
                                                                        ? (new Standard('', '/Education/Graduation/Gradebook/Score/Activate', new MinusSign(),
                                                                            array('Id' => $tblScoreRule->getId()), 'Deaktivieren'))
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 351..371
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 491..505

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

                                            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 Standard('', '/Education/Graduation/Gradebook/Score/Condition/Edit', new Edit(),
                                                                        array('Id' => $tblScoreCondition->getId()), 'Bearbeiten')) .
                                                                    ($tblScoreCondition->isActive()
                                                                        ? (new Standard('', '/Education/Graduation/Gradebook/Score/Condition/Activate',
                                                                            new MinusSign(),
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 190..208
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 491..505

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

                                            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 Standard('', '/Education/Graduation/Gradebook/Score/Group/Edit', new Edit(),
                                                                        array('Id' => $tblScoreGroup->getId()), 'Bearbeiten'))
                                                                    . ($tblScoreGroup->isActive()
                                                                        ? (new Standard('', '/Education/Graduation/Gradebook/Score/Group/Activate', new MinusSign(),
                                                                            array('Id' => $tblScoreGroup->getId()), 'Deaktivieren'))
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 190..208
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 351..371

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

                                            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(array(
                                                                new LayoutGroup(array(
                                                                    new LayoutRow(array(
                                                                        new LayoutColumn(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1039..1060

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

                                            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(array(
                                                                new LayoutGroup(array(
                                                                    new LayoutRow(array(
                                                                        new LayoutColumn(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1096..1117

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

                                            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 ($tblGradeTypeAll as $tblGradeType) {
                                                                    $contentAvailableTable[] = array(
                                                                        'Name' => $tblGradeType->getDisplayName(),
                                                                        'Option' =>
                                                                            (new Form(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1192..1215

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 138.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                    } else {
                                                                        $contentAvailableTable[] = array(
                                                                            'Name' => $tblGradeType->getDisplayName(),
                                                                            'Option' =>
                                                                                (new Form(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 640..663

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 138.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                                        if ($Data == null) {
                                                                            $Global = $this->getGlobal();
                                                                            foreach ($subjectList as $subject) {
                                                                                $tblScoreRuleDivisionSubject = Gradebook::useService()->getScoreRuleDivisionSubjectByDivisionAndSubject(
                                                                                    $tblDivision, $subject
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 1920..1936

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

                                                        if (!$Confirm) {
                                                            $Stage->setContent(
                                                                new Layout(new LayoutGroup(new LayoutRow(new LayoutColumn(array(
                                                                    new Panel('Berechnungsvariante',
                                                                        $tblScoreCondition->getName(),
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 1766..1804
                                            Application/Education/Graduation/Gradebook/MinimumGradeCount/Frontend.php on lines 445..481
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1982..2016

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

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

                                                        if (!$Confirm) {
                                                            $Stage->setContent(
                                                                new Layout(new LayoutGroup(new LayoutRow(new LayoutColumn(array(
                                                                    new Panel('Berechnungsvorschrift',
                                                                        $tblScoreRule->getName() . ($tblScoreRule->getDescription() !== '' ? '&nbsp;&nbsp;'
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 1766..1804
                                            Application/Education/Graduation/Gradebook/MinimumGradeCount/Frontend.php on lines 445..481
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 2073..2105

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

                                            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 ($tblYearList) {
                                                            $tblYearList = $this->getSorter($tblYearList)->sortObjectBy('DisplayName');
                                                            /** @var TblYear $tblYear */
                                                            foreach ($tblYearList as $tblYear) {
                                                                $yearButtonList[] = new Standard(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1594..1610

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

                                            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 ($tblYearList) {
                                                            $tblYearList = $this->getSorter($tblYearList)->sortObjectBy('DisplayName');
                                                            /** @var TblYear $tblYear */
                                                            foreach ($tblYearList as $tblYear) {
                                                                $yearButtonList[] = new Standard(
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1802..1818

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

                                            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 frontendScoreGroupAdd(
                                                    $tblScoreGroupId = null,
                                                    $tblScoreConditionId = null
                                                ) {
                                            
                                            
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1525..1540

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

                                                public function frontendScoreRuleConditionAdd(
                                                    $tblScoreRuleId = null,
                                                    $tblScoreConditionId = null
                                                ) {
                                            
                                            
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 918..934

                                            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 LayoutColumn(array(
                                                                                new Title('Ausgewählte', 'Zensuren-Typen'),
                                                                                new TableData($contentSelectedTable, null,
                                                                                    array(
                                                                                        'Name' => 'Name',
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1475..1491
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1492..1508

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

                                            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 LayoutColumn(array(
                                                                                new Title('Ausgewählte', 'Berechnungsvarianten'),
                                                                                new TableData($tblScoreRuleConditionListByRule, null,
                                                                                    array(
                                                                                        'Name' => 'Name',
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 681..697
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1492..1508

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

                                            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 LayoutColumn(array(
                                                                                new Title('Verfügbare', 'Berechnungsvarianten'),
                                                                                new TableData($tblScoreConditionAll, null,
                                                                                    array(
                                                                                        'Name' => 'Name ',
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 681..697
                                            Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php on lines 1475..1491

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

                                            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 ($tblSubject->getId() === -1) {
                                                                                $name = new Italic((
                                                                                    $tblSubject->getAcronym() ? new Bold($tblSubject->getAcronym() . ' ') : '') . $tblSubject->getName()
                                                                                );
                                                                            } else {
                                            Application/Education/Graduation/Gradebook/Frontend.php on lines 1949..1955

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

                                            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