DerDu/SPHERE-Framework

View on GitHub
Application/Education/Lesson/Division/Frontend.php

Summary

Maintainability
F
1 mo
Test Coverage

Function frontendDivisionShow has a Cognitive Complexity of 324 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendDivisionShow($Id = null)
    {

        $Stage = new Stage('Klassenansicht', 'Übersicht');
        $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
Severity: Minor
Found in Application/Education/Lesson/Division/Frontend.php - About 6 days to fix

Cognitive Complexity

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

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

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

Further reading

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

<?php
namespace SPHERE\Application\Education\Lesson\Division;

use SPHERE\Application\Api\Education\Division\StudentGroupSelect;
use SPHERE\Application\Api\Education\Division\StudentSelect;
Severity: Major
Found in Application/Education/Lesson/Division/Frontend.php - About 5 days to fix

    Method frontendDivisionShow has 424 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendDivisionShow($Id = null)
        {
    
            $Stage = new Stage('Klassenansicht', 'Übersicht');
            $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
    Severity: Major
    Found in Application/Education/Lesson/Division/Frontend.php - About 2 days to fix

      Method frontendCreateLevelDivision has 179 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendCreateLevelDivision($Level = null, $Division = null, $Year = null)
          {
      
              $Stage = new Stage('Klassen', 'Aktuelle Übersicht');
      
      
      Severity: Major
      Found in Application/Education/Lesson/Division/Frontend.php - About 7 hrs to fix

        Method frontendSubjectTeacherAdd has 163 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendSubjectTeacherAdd($Id = null, $DivisionSubjectId = null, $SubjectTeacherId = null, $PersonId = null)
            {
        
                $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                if (!$tblDivision) {
        Severity: Major
        Found in Application/Education/Lesson/Division/Frontend.php - About 6 hrs to fix

          Method frontendTeacherAdd has 139 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendTeacherAdd($Id = null, $TeacherId = null, $Remove = null, $Description = null)
              {
          
                  $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                  if (!$tblDivision) {
          Severity: Major
          Found in Application/Education/Lesson/Division/Frontend.php - About 5 hrs to fix

            Method frontendCustodyAdd has 139 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendCustodyAdd($Id = null, $PersonId = null, $Remove = null, $Description = null)
                {
            
                    $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                    if (!$tblDivision) {
            Severity: Major
            Found in Application/Education/Lesson/Division/Frontend.php - About 5 hrs to fix

              Function frontendCopyDivision has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendCopyDivision($Id = null, $Division = null, $Level = null)
                  {
              
                      $Stage = new Stage('Klasse', 'Kopieren');
                      $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
              Severity: Minor
              Found in Application/Education/Lesson/Division/Frontend.php - About 4 hrs to fix

              Cognitive Complexity

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

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

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

              Further reading

              Method frontendSubjectGroupAdd has 113 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendSubjectGroupAdd($Id = null, $DivisionSubjectId = null, $Group = null)
                  {
              
                      $Stage = new Stage('Fach-Gruppen', 'Übersicht');
              
              
              Severity: Major
              Found in Application/Education/Lesson/Division/Frontend.php - About 4 hrs to fix

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

                    public function frontendCreateLevelDivision($Level = null, $Division = null, $Year = null)
                    {
                
                        $Stage = new Stage('Klassen', 'Aktuelle Übersicht');
                
                
                Severity: Minor
                Found in Application/Education/Lesson/Division/Frontend.php - About 4 hrs to fix

                Cognitive Complexity

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

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

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

                Further reading

                Method frontendCopyDivision has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendCopyDivision($Id = null, $Division = null, $Level = null)
                    {
                
                        $Stage = new Stage('Klasse', 'Kopieren');
                        $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
                Severity: Major
                Found in Application/Education/Lesson/Division/Frontend.php - About 4 hrs to fix

                  Function frontendSubjectAdd has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function frontendSubjectAdd($Id = null, $IsHasGradingView = false, $Data = null)
                      {
                  
                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                          if (!$tblDivision) {
                  Severity: Minor
                  Found in Application/Education/Lesson/Division/Frontend.php - About 3 hrs to fix

                  Cognitive Complexity

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

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

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

                  Further reading

                  Method frontendSubjectStudentAdd has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendSubjectStudentAdd(
                          $Id = null,
                          $DivisionSubjectId = null,
                          $Data = null
                      ) {
                  Severity: Major
                  Found in Application/Education/Lesson/Division/Frontend.php - About 3 hrs to fix

                    Method frontendSubjectAdd has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendSubjectAdd($Id = null, $IsHasGradingView = false, $Data = null)
                        {
                    
                            $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                            if (!$tblDivision) {
                    Severity: Major
                    Found in Application/Education/Lesson/Division/Frontend.php - About 3 hrs to fix

                      Method frontendDivisionDestroy has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendDivisionDestroy($Id = null, $Confirm = false)
                          {
                      
                              $Stage = new Stage('Klasse', 'Löschen');
                              if ($Id && ( $tblDivision = Division::useService()->getDivisionById($Id) )) {
                      Severity: Major
                      Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                        Method frontendSubjectGroupChange has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendSubjectGroupChange($Id = null, $SubjectId = null, $DivisionId = null, $DivisionSubjectId = null, $Group = null)
                            {
                        
                                if ($Id === null || $SubjectId === null || $DivisionId === null || $DivisionSubjectId === null) {
                                    $Stage = new Stage('Fach-Gruppen', 'Bearbeiten');
                        Severity: Major
                        Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

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

                              public function frontendDivisionChange($Id = null, $Division = null)
                              {
                          
                                  $Stage = new Stage('Klasse', 'Bearbeiten');
                                  $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
                          Severity: Major
                          Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                            Method formLevelDivision has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function formLevelDivision(TblLevel $tblLevel = null, TblDivision $tblDivision = null, $future = false)
                                {
                            
                                    $tblLevelAll = Division::useService()->getLevelAll();
                                    $acNameAll = array();
                            Severity: Major
                            Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

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

                                  public function frontendSubjectTeacherAdd($Id = null, $DivisionSubjectId = null, $SubjectTeacherId = null, $PersonId = null)
                                  {
                              
                                      $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                                      if (!$tblDivision) {
                              Severity: Minor
                              Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                              Cognitive Complexity

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

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

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

                              Further reading

                              Method frontendSubjectTeacherShow has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendSubjectTeacherShow($Id)
                                  {
                              
                                      $Stage = new Stage('Lehrer', 'Auswahl');
                                      $tblDivision = Division::useService()->getDivisionById($Id);
                              Severity: Major
                              Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                                Function frontendSubjectGroupChange has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function frontendSubjectGroupChange($Id = null, $SubjectId = null, $DivisionId = null, $DivisionSubjectId = null, $Group = null)
                                    {
                                
                                        if ($Id === null || $SubjectId === null || $DivisionId === null || $DivisionSubjectId === null) {
                                            $Stage = new Stage('Fach-Gruppen', 'Bearbeiten');
                                Severity: Minor
                                Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                                Cognitive Complexity

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

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

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

                                Further reading

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

                                    public function frontendSubjectTeacherShow($Id)
                                    {
                                
                                        $Stage = new Stage('Lehrer', 'Auswahl');
                                        $tblDivision = Division::useService()->getDivisionById($Id);
                                Severity: Minor
                                Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

                                Cognitive Complexity

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

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

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

                                Further reading

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

                                    public function frontendDivisionDestroy($Id = null, $Confirm = false)
                                    {
                                
                                        $Stage = new Stage('Klasse', 'Löschen');
                                        if ($Id && ( $tblDivision = Division::useService()->getDivisionById($Id) )) {
                                Severity: Minor
                                Found in Application/Education/Lesson/Division/Frontend.php - About 1 hr to fix

                                Cognitive Complexity

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

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

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

                                Further reading

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

                                    public function formSubjectGroupAdd($IsSekTwo)
                                    {
                                
                                        if ($IsSekTwo) {
                                            return new Form(
                                Severity: Minor
                                Found in Application/Education/Lesson/Division/Frontend.php - About 1 hr to fix

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

                                      public function frontendCustodyAdd($Id = null, $PersonId = null, $Remove = null, $Description = null)
                                      {
                                  
                                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                                          if (!$tblDivision) {
                                  Severity: Minor
                                  Found in Application/Education/Lesson/Division/Frontend.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function frontendTeacherAdd($Id = null, $TeacherId = null, $Remove = null, $Description = null)
                                      {
                                  
                                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                                          if (!$tblDivision) {
                                  Severity: Minor
                                  Found in Application/Education/Lesson/Division/Frontend.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

                                  Method frontendSubjectGroupRemove has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendSubjectGroupRemove($Id = null, $DivisionSubjectId = null, $SubjectGroupId = null)
                                      {
                                  
                                          $Stage = new Stage('Gruppe', 'entfernen');
                                  
                                  
                                  Severity: Minor
                                  Found in Application/Education/Lesson/Division/Frontend.php - About 1 hr to fix

                                    Function formLevelDivision has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function formLevelDivision(TblLevel $tblLevel = null, TblDivision $tblDivision = null, $future = false)
                                        {
                                    
                                            $tblLevelAll = Division::useService()->getLevelAll();
                                            $acNameAll = array();
                                    Severity: Minor
                                    Found in Application/Education/Lesson/Division/Frontend.php - About 55 mins to fix

                                    Cognitive Complexity

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

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

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

                                    Further reading

                                    Function frontendSubjectGroupAdd has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function frontendSubjectGroupAdd($Id = null, $DivisionSubjectId = null, $Group = null)
                                        {
                                    
                                            $Stage = new Stage('Fach-Gruppen', 'Übersicht');
                                    
                                    
                                    Severity: Minor
                                    Found in Application/Education/Lesson/Division/Frontend.php - About 55 mins to fix

                                    Cognitive Complexity

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

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

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

                                    Further reading

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

                                        public function frontendDivisionChange($Id = null, $Division = null)
                                        {
                                    
                                            $Stage = new Stage('Klasse', 'Bearbeiten');
                                            $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
                                    Severity: Minor
                                    Found in Application/Education/Lesson/Division/Frontend.php - About 45 mins to fix

                                    Cognitive Complexity

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

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

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

                                    Further reading

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                                    if (($tblDivisionSubjectTemp = $tblSubjectStudent->getTblDivisionSubject())
                                                                                        && ($tblSubjectTemp = $tblDivisionSubjectTemp->getServiceTblSubject())
                                                                                        && ($tblPerson = $tblSubjectStudent->getServiceTblPerson())
                                                                                    ) {
                                                                                        if ($IsSekTwo) {
                                    Severity: Major
                                    Found in Application/Education/Lesson/Division/Frontend.php - About 45 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if (($tblDivision = Division::useService()->getDivisionById($DivisionId))
                                                      && ($tblLevel = $tblDivision->getTblLevel())
                                                      && ($tblType = $tblLevel->getServiceTblType())
                                                      && $tblType->getName() == 'Gymnasium'
                                                      && ($tblLevel->getName() == '11'
                                      Severity: Major
                                      Found in Application/Education/Lesson/Division/Frontend.php - About 40 mins to fix

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

                                            public function frontendSubjectGroupChange($Id = null, $SubjectId = null, $DivisionId = null, $DivisionSubjectId = null, $Group = null)
                                        Severity: Minor
                                        Found in Application/Education/Lesson/Division/Frontend.php - About 35 mins to fix

                                          Avoid too many return statements within this method.
                                          Open

                                                  return $Stage;
                                          Severity: Major
                                          Found in Application/Education/Lesson/Division/Frontend.php - About 30 mins to fix

                                            Avoid too many return statements within this method.
                                            Open

                                                    return $Stage;
                                            Severity: Major
                                            Found in Application/Education/Lesson/Division/Frontend.php - About 30 mins to fix

                                              Avoid too many return statements within this method.
                                              Open

                                                      return $Stage;
                                              Severity: Major
                                              Found in Application/Education/Lesson/Division/Frontend.php - About 30 mins to fix

                                                Avoid too many return statements within this method.
                                                Open

                                                                    return $ObjectA->getId() - $ObjectB->getId();
                                                Severity: Major
                                                Found in Application/Education/Lesson/Division/Frontend.php - About 30 mins to fix

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

                                                      public function frontendCustodyAdd($Id = null, $PersonId = null, $Remove = null, $Description = null)
                                                      {
                                                  
                                                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                                                          if (!$tblDivision) {
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 wk to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 438..593

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

                                                  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 frontendTeacherAdd($Id = null, $TeacherId = null, $Remove = null, $Description = null)
                                                      {
                                                  
                                                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                                                          if (!$tblDivision) {
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 wk to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 603..757

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

                                                  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 frontendSubjectStudentRemoveAll(
                                                          $Id = null,
                                                          $DivisionSubjectId = null
                                                      ) {
                                                          if (($tblDivision = Division::useService()->getDivisionById($Id))
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 6 hrs to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 2378..2407

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

                                                  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 frontendSubjectStudentAddAll(
                                                          $Id = null,
                                                          $DivisionSubjectId = null
                                                      ) {
                                                           if (($tblDivision = Division::useService()->getDivisionById($Id))
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 6 hrs to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 2415..2444

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

                                                  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

                                                                                  $StudentPanel[$tblDivisionSubjectTest->getTblSubjectGroup()->getName()] = New Panel(
                                                                                      $tblDivisionSubjectTest->getTblSubjectGroup()->isAdvancedCourse()
                                                                                          ? new Bold($tblDivisionSubjectTest->getTblSubjectGroup()->getName())
                                                                                          : $tblDivisionSubjectTest->getTblSubjectGroup()->getName(),
                                                                                      $StudentArray, $tblDivisionSubject->getHasGrading() ? Panel::PANEL_TYPE_INFO : Panel::PANEL_TYPE_WARNING,
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1763..1773

                                                  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

                                                                                  $TeacherPanelArray[$tblDivisionSubjectTest->getTblSubjectGroup()->getName()] = New Panel(
                                                                                      $tblDivisionSubjectTest->getTblSubjectGroup()->isAdvancedCourse()
                                                                                          ? new Bold($tblDivisionSubjectTest->getTblSubjectGroup()->getName())
                                                                                          : $tblDivisionSubjectTest->getTblSubjectGroup()->getName(),
                                                                                      $TeachersArray, $tblDivisionSubject->getHasGrading() ? Panel::PANEL_TYPE_INFO : Panel::PANEL_TYPE_WARNING,
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1827..1837

                                                  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 (isset($personBasicCourseList[$tblPerson->getId()])
                                                                                  && !empty($personBasicCourseList[$tblPerson->getId()])
                                                                              ) {
                                                                                  ksort($personBasicCourseList[$tblPerson->getId()]);
                                                                                  $item['BasicCourses'] = $isInActive
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 2003..2012

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

                                                  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 (isset($personSubjectList[$tblPerson->getId()])
                                                                                  && !empty($personSubjectList[$tblPerson->getId()])
                                                                              ) {
                                                                                  ksort($personSubjectList[$tblPerson->getId()]);
                                                                                  $item['Subjects'] = $isInActive
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1992..2001

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

                                                  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 ($tblPerson) {
                                                                      $Item['DisplayName'] = $tblPerson->getLastFirstName();
                                                                      $Item['Address'] = $tblPerson->fetchMainAddress() ? $tblPerson->fetchMainAddress()->getGuiString() : '';
                                                                      $Item['Option'] = new PullRight(
                                                                          new \SPHERE\Common\Frontend\Link\Repository\Primary('Entfernen',
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1097..1110

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 117.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

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

                                                              array_walk($tblTeacherAllList, function(TblPerson $tblPerson) use (&$rightTableContent, $tblDivision, $tblDivisionSubject) {
                                                                  $Item['DisplayName'] = $tblPerson->getLastFirstName();
                                                                  $Item['Address'] = $tblPerson->fetchMainAddress() ? $tblPerson->fetchMainAddress()->getGuiString() : '';
                                                                  $Item['Options'] = new PullRight(
                                                                      new \SPHERE\Common\Frontend\Link\Repository\Primary('Hinzufügen',
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1079..1092

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 117.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

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

                                                              if ($tblCustodyList) {
                                                                  $CustodyList = array();
                                                                  /** @var TblPerson $tblPerson */
                                                                  foreach ($tblCustodyList as &$tblPerson) {
                                                                      $Description = Division::useService()->getDivisionCustodyByDivisionAndPerson($tblDivision,
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1656..1666

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 109.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

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

                                                              if ($tblPersonList) {
                                                                  $TeacherList = array();
                                                                  foreach ($tblPersonList as $tblPerson) {
                                                                      $Description = Division::useService()->getDivisionTeacherByDivisionAndTeacher($tblDivision,
                                                                          $tblPerson)->getDescription();
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1668..1679

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 109.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

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

                                                                  $Temp['Option'] = new Standard('&nbsp;Klassenansicht', '/Education/Lesson/Division/Show',
                                                                          new EyeOpen(), array('Id' => $tblDivision->getId()), 'Klasse einsehen')
                                                                      .new Standard('', '/Education/Lesson/Division/Change', new Pencil(),
                                                                          array('Id' => $tblDivision->getId()), 'Beschreibung bearbeiten')
                                                                      .new Standard('', '/Education/Lesson/Division/Copy', new MoreItems(),
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 1 hr to fix
                                                  Application/Education/Certificate/Generate/Frontend.php on lines 117..147

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 106.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

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

                                                              new Layout(
                                                                  new LayoutGroup(
                                                                      new LayoutRow(
                                                                          new LayoutColumn(
                                                                              new Well(
                                                  Severity: Minor
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 55 mins to fix
                                                  Application/Setting/Consumer/School/Frontend.php on lines 363..376

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

                                                  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 (!$tblDivisionSubject) {
                                                              $Stage = new Stage('Schüler', 'auswählen');
                                                              $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
                                                              $Stage->setContent(new Warning('Fach nicht gefunden'));
                                                              return $Stage . new Redirect('/Education/Lesson/Division/Show', Redirect::TIMEOUT_ERROR,
                                                  Severity: Minor
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 55 mins to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 1001..1007

                                                  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 (!$tblDivisionSubject) {
                                                              $Stage = new Stage('Fachlehrer', 'auswählen');
                                                              $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
                                                              $Stage->setContent(new Warning('Fach in der Klasse nicht gefunden'));
                                                              return $Stage.new Redirect('/Education/Lesson/Division/Show', Redirect::TIMEOUT_ERROR,
                                                  Severity: Minor
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 1 other location - About 55 mins to fix
                                                  Application/Education/Lesson/Division/Frontend.php on lines 894..900

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

                                                                  new LayoutGroup(
                                                                      new LayoutRow(
                                                                          new LayoutColumn(
                                                                              new Well(
                                                                                  Division::useService()->createLevelDivision(
                                                  Severity: Major
                                                  Found in Application/Education/Lesson/Division/Frontend.php and 2 other locations - About 40 mins to fix
                                                  Application/Corporation/Group/Frontend.php on lines 188..201
                                                  Application/People/Group/Frontend.php on lines 229..242

                                                  Duplicated Code

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

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

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

                                                  Tuning

                                                  This issue has a mass of 94.

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

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

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

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

                                                  Refactorings

                                                  Further Reading

                                                  There are no issues that match your filters.

                                                  Category
                                                  Status