DerDu/SPHERE-Framework

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

Summary

Maintainability
F
1 wk
Test Coverage

File Data.php has 719 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/Data.php - About 1 day to fix

    Data has 56 functions (exceeds 20 allowed). Consider refactoring.
    Open

    abstract class Data extends \SPHERE\Application\Education\Graduation\Gradebook\MinimumGradeCount\Data
    {
    
        /**
         * @param $Name
    Severity: Major
    Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 1 day to fix

      Function destroyScoreCondition has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
      Open

          public function destroyScoreCondition(TblScoreCondition $tblScoreCondition)
          {
      
              $Manager = $this->getConnection()->getEntityManager();
              /** @var TblScoreCondition $Entity */
      Severity: Minor
      Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.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 updateScoreCondition has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              TblScoreCondition $tblScoreCondition,
              $Name,
              $Round,
              $Priority,
              $IsActive,
      Severity: Minor
      Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 45 mins to fix

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

                TblScoreGroup $tblScoreGroup,
                $Name,
                $Round,
                $Multiplier,
                $IsEveryGradeASingleGroup,
        Severity: Minor
        Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 45 mins to fix

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

              public function getScoreGroupGradeTypeListByGroup(TblScoreGroup $tblScoreGroup)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreGroupGradeTypeList',
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.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 getScoreConditionGradeTypeListByCondition has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getScoreConditionGradeTypeListByCondition(TblScoreCondition $tblScoreCondition)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreConditionGradeTypeList',
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.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 getScoreConditionGroupRequirementAllByCondition has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getScoreConditionGroupRequirementAllByCondition(TblScoreCondition $tblScoreCondition)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreConditionGroupRequirement',
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.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 destroyScoreGroup has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function destroyScoreGroup(TblScoreGroup $tblScoreGroup)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreGroup $Entity */
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 25 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 getScoreConditionsByRule has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getScoreConditionsByRule(TblScoreRule $tblScoreRule)
              {
          
                  $list = $this->getScoreRuleConditionListByRule($tblScoreRule);
          
          
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 25 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 destroyScoreRule has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function destroyScoreRule(TblScoreRule $tblScoreRule)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreRule $Entity */
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 25 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 3 locations. Consider refactoring.
          Open

              public function addScoreConditionGradeTypeList(
                  TblGradeType $tblGradeType,
                  TblScoreCondition $tblScoreCondition,
                  $count
              ) {
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 562..587
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 627..652

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

          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 addScoreConditionGroupRequirement(
                  TblScoreGroup $tblScoreGroup,
                  TblScoreCondition $tblScoreCondition,
                  $count
              ) {
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 528..553
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 627..652

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

          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 addScoreGroupGradeTypeList(
                  TblGradeType $tblGradeType,
                  TblScoreGroup $tblScoreGroup,
                  $Multiplier
              ) {
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 528..553
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 562..587

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

          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 updateScoreRule(
                  TblScoreRule $tblScoreRule,
                  $Name,
                  $Description,
                  $IsActive
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 80..103

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

          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 updateScoreType(
                  TblScoreType $tblScoreType,
                  $Name,
                  $Identifier,
                  $Pattern
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 836..859

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

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

              public function addScoreRuleConditionList(
                  TblScoreRule $tblScoreRule,
                  TblScoreCondition $tblScoreCondition
              ) {
          
          
          Application/Billing/Bookkeeping/Basket/Service/Data.php on lines 459..480
          Application/Billing/Inventory/Document/Service/Data.php on lines 166..184
          Application/Billing/Inventory/Item/Service/Data.php on lines 569..593
          Application/Corporation/Group/Service/Data.php on lines 286..303
          Application/Education/Certificate/Generator/Service/Data.php on lines 4382..4404
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 595..618
          Application/Education/Lesson/Division/Service/Data.php on lines 1095..1112
          Application/Education/Lesson/Division/Service/Data.php on lines 1120..1138
          Application/Education/Lesson/Subject/Service/Data.php on lines 221..238
          Application/Education/Lesson/Subject/Service/Data.php on lines 272..289
          Application/Education/Lesson/Term/Service/Data.php on lines 234..251
          Application/People/Group/Service/Data.php on lines 365..382
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 182..205
          Application/People/Meta/Student/Service/Data/Integration.php on lines 321..344
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 165..188
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 285..302
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 328..345
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 371..388
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 294..311
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 319..336
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 1132..1149
          Application/Reporting/SerialLetter/Service/Data.php on lines 472..493

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

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

              public function addScoreConditionGroupList(
                  TblScoreCondition $tblScoreCondition,
                  TblScoreGroup $tblScoreGroup
              ) {
          
          
          Application/Billing/Bookkeeping/Basket/Service/Data.php on lines 459..480
          Application/Billing/Inventory/Document/Service/Data.php on lines 166..184
          Application/Billing/Inventory/Item/Service/Data.php on lines 569..593
          Application/Corporation/Group/Service/Data.php on lines 286..303
          Application/Education/Certificate/Generator/Service/Data.php on lines 4382..4404
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 496..519
          Application/Education/Lesson/Division/Service/Data.php on lines 1095..1112
          Application/Education/Lesson/Division/Service/Data.php on lines 1120..1138
          Application/Education/Lesson/Subject/Service/Data.php on lines 221..238
          Application/Education/Lesson/Subject/Service/Data.php on lines 272..289
          Application/Education/Lesson/Term/Service/Data.php on lines 234..251
          Application/People/Group/Service/Data.php on lines 365..382
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 182..205
          Application/People/Meta/Student/Service/Data/Integration.php on lines 321..344
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 165..188
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 285..302
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 328..345
          Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php on lines 371..388
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 294..311
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 319..336
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 1132..1149
          Application/Reporting/SerialLetter/Service/Data.php on lines 472..493

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

          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 destroyScoreRule(TblScoreRule $tblScoreRule)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreRule $Entity */
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1237..1256

          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

              public function destroyScoreGroup(TblScoreGroup $tblScoreGroup)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreGroup $Entity */
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1137..1158

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

              public function getScoreConditionGroupRequirementAllByCondition(TblScoreCondition $tblScoreCondition)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreConditionGroupRequirement',
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 263..284
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 291..312

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 119.

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

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

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

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

          Refactorings

          Further Reading

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

              public function getScoreConditionGradeTypeListByCondition(TblScoreCondition $tblScoreCondition)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreConditionGradeTypeList',
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 263..284
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 329..350

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 119.

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

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

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

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

          Refactorings

          Further Reading

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

              public function getScoreGroupGradeTypeListByGroup(TblScoreGroup $tblScoreGroup)
              {
          
                  $list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
                      'TblScoreGroupGradeTypeList',
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 291..312
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 329..350

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 119.

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

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

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

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

          Refactorings

          Further Reading

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

                  if (null === $Entity) {
                      $Entity = new TblScoreGroup();
                      $Entity->setName($Name);
                      $Entity->setRound($Round);
                      $Entity->setMultiplier($Multiplier);
          Application/Education/Certificate/Generator/Service/Data.php on lines 3821..3830

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

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

              public function removeScoreGroupGradeTypeList(TblScoreGroupGradeTypeList $tblScoreGroupGradeTypeList)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreGroupGradeTypeList $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 678..690
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 697..709
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 716..728
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 735..747
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1097..1112
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

              public function removeScoreConditionGroupList(TblScoreConditionGroupList $tblScoreConditionGroupList)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreConditionGroupList $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 659..671
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 678..690
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 697..709
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 735..747
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1097..1112
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

              public function removeScoreConditionGradeTypeList(TblScoreConditionGradeTypeList $tblScoreConditionGradeTypeList)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreConditionGradeTypeList $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 659..671
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 697..709
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 716..728
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 735..747
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1097..1112
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

              public function removeScoreConditionGroupRequirement(TblScoreConditionGroupRequirement $tblScoreConditionGroupRequirement)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreConditionGroupRequirement $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 659..671
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 678..690
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 716..728
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 735..747
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1097..1112
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

              public function removeScoreRuleSubjectGroup(TblScoreRuleSubjectGroup $tblScoreRuleSubjectGroup)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblGrade $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 659..671
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 678..690
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 697..709
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 716..728
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 735..747
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

              public function removeScoreRuleConditionList(TblScoreRuleConditionList $tblScoreRuleConditionList)
              {
          
                  $Manager = $this->getConnection()->getEntityManager();
                  /** @var TblScoreConditionGroupList $Entity */
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 56 other locations - About 55 mins to fix
          Application/Billing/Accounting/Creditor/Service/Data.php on lines 136..149
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 665..678
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 685..698
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 705..718
          Application/Billing/Accounting/Debtor/Service/Data.php on lines 725..738
          Application/Billing/Inventory/Document/Service/Data.php on lines 216..230
          Application/Billing/Inventory/Item/Service/Data.php on lines 600..614
          Application/Billing/Inventory/Item/Service/Data.php on lines 621..634
          Application/Billing/Inventory/Item/Service/Data.php on lines 641..654
          Application/Billing/Inventory/Item/Service/Data.php on lines 661..674
          Application/Contact/Address/Service/Data.php on lines 789..801
          Application/Contact/Mail/Service/Data.php on lines 255..267
          Application/Contact/Phone/Service/Data.php on lines 257..269
          Application/Contact/Web/Service/Data.php on lines 223..235
          Application/Corporation/Company/Service/Data.php on lines 230..243
          Application/Corporation/Group/Service/Data.php on lines 334..346
          Application/Corporation/Group/Service/Data.php on lines 353..365
          Application/Corporation/Group/Service/Data.php on lines 372..384
          Application/Education/Certificate/Generator/Service/Data.php on lines 3924..3936
          Application/Education/Graduation/Gradebook/MinimumGradeCount/Data.php on lines 257..270
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 659..671
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 678..690
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 697..709
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 716..728
          Application/Education/Graduation/Gradebook/ScoreRule/Data.php on lines 1097..1112
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 230..243
          Application/Education/Graduation/Gradebook/Service/Data.php on lines 618..631
          Application/Education/Lesson/Division/Service/Data.php on lines 1641..1654
          Application/Education/Lesson/Term/Service/Data.php on lines 893..908
          Application/People/Group/Service/Data.php on lines 452..464
          Application/People/Group/Service/Data.php on lines 471..483
          Application/People/Meta/Student/Service/Data/Agreement.php on lines 212..224
          Application/People/Meta/Student/Service/Data/Integration.php on lines 351..363
          Application/People/Meta/Student/Service/Data/Integration.php on lines 409..421
          Application/People/Meta/Student/Service/Data/Liberation.php on lines 195..207
          Application/People/Meta/Student/Service/Data/Student.php on lines 404..416
          Application/People/Meta/Student/Service/Data/Subject.php on lines 240..254
          Application/People/Meta/Student/Service/Data/Support.php on lines 694..706
          Application/People/Meta/Student/Service/Data/Support.php on lines 713..725
          Application/People/Meta/Student/Service/Data/Support.php on lines 732..744
          Application/People/Meta/Student/Service/Data/Support.php on lines 751..763
          Application/People/Meta/Student/Service/Data/Support.php on lines 770..782
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 158..170
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 463..475
          Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php on lines 697..709
          Application/Platform/System/Test/Service/Data.php on lines 65..80
          Application/Reporting/CheckList/Service/Data.php on lines 676..688
          Application/Reporting/Individual/Service/Data.php on lines 341..353
          Application/Reporting/Individual/Service/Data.php on lines 360..372
          Application/Reporting/Individual/Service/Data.php on lines 379..391
          Application/Reporting/SerialLetter/Service/Data.php on lines 887..900
          Application/Reporting/SerialLetter/Service/Data.php on lines 907..920
          Application/Setting/Consumer/Responsibility/Service/Data.php on lines 113..127
          Application/Setting/Consumer/School/Service/Data.php on lines 142..156
          Application/Setting/Consumer/SponsorAssociation/Service/Data.php on lines 72..86
          Application/Setting/User/Account/Service/Data.php on lines 277..289

          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

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

                  if (null === $Entity) {
                      $Entity = new TblScoreCondition();
                      $Entity->setName($Name);
                      $Entity->setRound($Round);
                      $Entity->setPriority($Priority);
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php and 1 other location - About 40 mins to fix
          Application/Education/Lesson/Division/Service/Data.php on lines 979..987

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

          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