DerDu/SPHERE-Framework

View on GitHub
Application/Api/People/Meta/Support/ApiSupport.php

Summary

Maintainability
F
1 wk
Test Coverage

File ApiSupport.php has 826 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace SPHERE\Application\Api\People\Meta\Support;


Severity: Major
Found in Application/Api/People/Meta/Support/ApiSupport.php - About 1 day to fix

    ApiSupport has 45 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ApiSupport extends Extension implements IApiInterface
    {
    
        use ApiTrait;
    
    
    Severity: Minor
    Found in Application/Api/People/Meta/Support/ApiSupport.php - About 6 hrs to fix

      Method openDeleteSupportModal has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function openDeleteSupportModal($PersonId, $SupportId)
          {
              $tblSupport = Student::useService()->getSupportById($SupportId);
              if(!$tblSupport){
                  return new Danger('Eintrag nicht gefunden.');
      Severity: Major
      Found in Application/Api/People/Meta/Support/ApiSupport.php - About 2 hrs to fix

        Method openDeleteSpecialModal has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function openDeleteSpecialModal($PersonId, $SpecialId)
            {
                $tblSpecial = Student::useService()->getSpecialById($SpecialId);
                if(!$tblSpecial){
                    return new Danger('Eintrag nicht gefunden.');
        Severity: Minor
        Found in Application/Api/People/Meta/Support/ApiSupport.php - About 2 hrs to fix

          Method openDeleteHandyCapModal has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function openDeleteHandyCapModal($PersonId, $HandyCapId)
              {
                  $tblHandyCap = Student::useService()->getHandyCapById($HandyCapId);
                  if(!$tblHandyCap){
                      return new Danger('Eintrag nicht gefunden.');
          Severity: Minor
          Found in Application/Api/People/Meta/Support/ApiSupport.php - About 2 hrs to fix

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

                public static function pipelineLoadTable($PersonId)
                {
            
                    $TablePipeline = new Pipeline(false);
                    $TableEmitter = new ServerEmitter(ApiSupport::receiverTableBlock('', 'SupportTable'), ApiSupport::getEndpoint());
            Severity: Minor
            Found in Application/Api/People/Meta/Support/ApiSupport.php - About 1 hr to fix

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

                  public function openDeleteSupportModal($PersonId, $SupportId)
                  {
                      $tblSupport = Student::useService()->getSupportById($SupportId);
                      if(!$tblSupport){
                          return new Danger('Eintrag nicht gefunden.');
              Severity: Minor
              Found in Application/Api/People/Meta/Support/ApiSupport.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

                  public function openEditHandyCapModal($PersonId, $HandyCapId, $IsInit)
                  {
                      $IsCanceled = false;
                      $global =  $this->getGlobal();
                      if ($IsInit) {
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 1 other location - About 3 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 645..670

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

              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 openEditSpecialModal($PersonId, $SpecialId, $IsInit)
                  {
                      $IsCanceled = false;
                      $global =  $this->getGlobal();
                      if ($IsInit) {
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 1 other location - About 3 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 679..704

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

              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 saveUpdateSpecialModal($PersonId, $SpecialId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 800..818
              Application/Api/People/Meta/Support/ApiSupport.php on lines 852..872

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

              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 saveUpdateSupportModal($PersonId, $SupportId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 826..844
              Application/Api/People/Meta/Support/ApiSupport.php on lines 852..872

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

              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 saveUpdateHandyCapModal($PersonId, $HandyCapId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 800..818
              Application/Api/People/Meta/Support/ApiSupport.php on lines 826..844

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

              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

                      return new Title('Entwicklungsbesonderheiten entfernen')
                      .new Layout(
                          new LayoutGroup(
                              new LayoutRow(
                                  new LayoutColumn(
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 990..1005
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1118..1133

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

              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

                      return new Title('Nachteilsausgleich entfernen')
                      .new Layout(
                          new LayoutGroup(
                              new LayoutRow(
                                  new LayoutColumn(
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 990..1005
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1055..1070

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

              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

                      return new Title('Förderantrag entfernen')
                      .new Layout(
                          new LayoutGroup(
                              new LayoutRow(
                                  new LayoutColumn(
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1055..1070
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1118..1133

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

              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 saveCreateSpecialModal($PersonId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 721..738
              Application/Api/People/Meta/Support/ApiSupport.php on lines 772..792

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 124.

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

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

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

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

              Refactorings

              Further Reading

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

                  public function saveCreateSupportModal($PersonId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 745..765
              Application/Api/People/Meta/Support/ApiSupport.php on lines 772..792

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 124.

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

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

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

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

              Refactorings

              Further Reading

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

                  public function saveCreateHandyCapModal($PersonId)
                  {
              
                      $Global = $this->getGlobal();
                      $Data = $Global->POST['Data'];
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 721..738
              Application/Api/People/Meta/Support/ApiSupport.php on lines 745..765

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 124.

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

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

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

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

              Refactorings

              Further Reading

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

                  public static function pipelineOpenEditSpecialModal($PersonId, $SpecialId, $IsInit = false)
                  {
                      $Pipeline = new Pipeline(false);
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), ApiSupport::getEndpoint());
                      $ModalEmitter->setGetPayload(array(
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 1 other location - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 258..273

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 124.

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

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

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

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

              Refactorings

              Further Reading

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

                  public static function pipelineOpenEditHandyCapModal($PersonId, $HandyCapId, $IsInit = false)
                  {
                      $Pipeline = new Pipeline(false);
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), ApiSupport::getEndpoint());
                      $ModalEmitter->setGetPayload(array(
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 1 other location - About 2 hrs to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 234..249

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 124.

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

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

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

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

              Refactorings

              Further Reading

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

                  public function deleteHandyCapService($PersonId, $HandyCapId)
                  {
              
                      if(!($tblHandyCap = Student::useService()->getHandyCapById($HandyCapId))) {
                          return new Danger('Der Nachteilsausgleich konnte nicht gefunden werden.');
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 1 hr to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1142..1158
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1166..1182

              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 deleteSpecialService($PersonId, $SpecialId)
                  {
              
                      if(!($tblSpecial = Student::useService()->getSpecialById($SpecialId))) {
                          return new Danger('Die Entwicklungsbesonderheit konnte nicht gefunden werden.');
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 1 hr to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1142..1158
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1190..1206

              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 deleteSupportService($PersonId, $SupportId)
                  {
              
                      if(!($tblSupport = Student::useService()->getSupportById($SupportId))) {
                          return new Danger('Der Förderantrag konnte nicht gefunden werden.');
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 2 other locations - About 1 hr to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1166..1182
              Application/Api/People/Meta/Support/ApiSupport.php on lines 1190..1206

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

                  public static function pipelineOpenDeleteSupport($PersonId, $SupportId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 434..449
              Application/Api/People/Meta/Support/ApiSupport.php on lines 457..472
              Application/Api/People/Meta/Support/ApiSupport.php on lines 480..495
              Application/Api/People/Meta/Support/ApiSupport.php on lines 503..517
              Application/Api/People/Meta/Support/ApiSupport.php on lines 525..540

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

                  public static function pipelineOpenDeleteSpecial($PersonId, $SpecialId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 411..426
              Application/Api/People/Meta/Support/ApiSupport.php on lines 457..472
              Application/Api/People/Meta/Support/ApiSupport.php on lines 480..495
              Application/Api/People/Meta/Support/ApiSupport.php on lines 503..517
              Application/Api/People/Meta/Support/ApiSupport.php on lines 525..540

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

                  public static function pipelineDeleteHandyCap($PersonId, $HandyCapId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 411..426
              Application/Api/People/Meta/Support/ApiSupport.php on lines 434..449
              Application/Api/People/Meta/Support/ApiSupport.php on lines 457..472
              Application/Api/People/Meta/Support/ApiSupport.php on lines 480..495
              Application/Api/People/Meta/Support/ApiSupport.php on lines 503..517

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

                  public static function pipelineOpenDeleteHandyCap($PersonId, $HandyCapId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 411..426
              Application/Api/People/Meta/Support/ApiSupport.php on lines 434..449
              Application/Api/People/Meta/Support/ApiSupport.php on lines 480..495
              Application/Api/People/Meta/Support/ApiSupport.php on lines 503..517
              Application/Api/People/Meta/Support/ApiSupport.php on lines 525..540

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

                  public static function pipelineDeleteSupport($PersonId, $SupportId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 411..426
              Application/Api/People/Meta/Support/ApiSupport.php on lines 434..449
              Application/Api/People/Meta/Support/ApiSupport.php on lines 457..472
              Application/Api/People/Meta/Support/ApiSupport.php on lines 503..517
              Application/Api/People/Meta/Support/ApiSupport.php on lines 525..540

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

                  public static function pipelineDeleteSpecial($PersonId, $SpecialId)
                  {
              
                      $Pipeline = new Pipeline();
                      $ModalEmitter = new ServerEmitter(ApiSupport::receiverModal(), self::getEndpoint());
              Severity: Major
              Found in Application/Api/People/Meta/Support/ApiSupport.php and 5 other locations - About 55 mins to fix
              Application/Api/People/Meta/Support/ApiSupport.php on lines 411..426
              Application/Api/People/Meta/Support/ApiSupport.php on lines 434..449
              Application/Api/People/Meta/Support/ApiSupport.php on lines 457..472
              Application/Api/People/Meta/Support/ApiSupport.php on lines 480..495
              Application/Api/People/Meta/Support/ApiSupport.php on lines 525..540

              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