DerDu/SPHERE-Framework

View on GitHub
Application/Transfer/Import/Schneeberg/Frontend.php

Summary

Maintainability
F
3 days
Test Coverage

Method frontendCompanyImport has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendCompanyImport($File = null)
    {

        $View = new Stage();
        $View->setTitle('Schneeberg Import');
Severity: Minor
Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

    Method frontendStaffImport has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendStaffImport($File = null)
        {
    
            $View = new Stage();
            $View->setTitle('Schneeberg Import');
    Severity: Minor
    Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

      Method frontendInterestedPersonImport has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendInterestedPersonImport($File = null)
          {
      
              $View = new Stage();
              $View->setTitle('Schneeberg Import');
      Severity: Minor
      Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

        Method frontendStudentImport has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendStudentImport($File = null)
            {
        
                $View = new Stage('Import Schneeberg', 'Schüler-Daten Oberschule');
                $View->setContent(
        Severity: Minor
        Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

          Method frontendContactImport has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendContactImport($File = null)
              {
          
                  $View = new Stage('Import Schneeberg', 'Kontaktdaten Grundschule');
                  $View->setContent(
          Severity: Minor
          Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

            Method frontendStudentImportPrimarySchool has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendStudentImportPrimarySchool($File = null)
                {
            
                    $View = new Stage('Import Schneeberg', 'Schüler-Daten Grundschule');
                    $View->setContent(
            Severity: Minor
            Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

              Method frontendCustodyImport has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendCustodyImport($File = null, $IsMother = null)
                  {
              
                      $View = new Stage('Import Schneeberg', ($IsMother ? 'Mütter ' : 'Väter ') . 'Grundschule');
                      $View->setContent(
              Severity: Minor
              Found in Application/Transfer/Import/Schneeberg/Frontend.php - About 1 hr to fix

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

                    public function frontendInterestedPersonImport($File = null)
                    {
                
                        $View = new Stage();
                        $View->setTitle('Schneeberg Import');
                Severity: Major
                Found in Application/Transfer/Import/Schneeberg/Frontend.php and 8 other locations - About 5 hrs to fix
                Application/Transfer/Import/Hormersdorf/Frontend.php on lines 35..69
                Application/Transfer/Import/Hormersdorf/Frontend.php on lines 78..112
                Application/Transfer/Import/Hormersdorf/Frontend.php on lines 121..155
                Application/Transfer/Import/Muldental/Frontend.php on lines 74..108
                Application/Transfer/Import/Radebeul/Frontend.php on lines 168..202
                Application/Transfer/Import/Seelitz/Frontend.php on lines 127..161
                Application/Transfer/Import/Seelitz/Frontend.php on lines 170..204
                Application/Transfer/Import/Zwickau/Frontend.php on lines 142..176

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

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

                    public function frontendCompanyImport($File = null)
                    {
                
                        $View = new Stage();
                        $View->setTitle('Schneeberg Import');
                Severity: Major
                Found in Application/Transfer/Import/Schneeberg/Frontend.php and 12 other locations - About 5 hrs to fix
                Application/Transfer/Import/Annaberg/Frontend.php on lines 83..117
                Application/Transfer/Import/Annaberg/Frontend.php on lines 124..160
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 144..178
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 187..221
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 230..264
                Application/Transfer/Import/Muldental/Frontend.php on lines 115..151
                Application/Transfer/Import/Muldental/Frontend.php on lines 158..194
                Application/Transfer/Import/Muldental/Frontend.php on lines 201..237
                Application/Transfer/Import/Radebeul/Frontend.php on lines 123..159
                Application/Transfer/Import/Radebeul/Frontend.php on lines 211..245
                Application/Transfer/Import/Schneeberg/Frontend.php on lines 79..113
                Application/Transfer/Import/Seelitz/Frontend.php on lines 84..118

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

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

                    public function frontendStaffImport($File = null)
                    {
                
                        $View = new Stage();
                        $View->setTitle('Schneeberg Import');
                Severity: Major
                Found in Application/Transfer/Import/Schneeberg/Frontend.php and 12 other locations - About 5 hrs to fix
                Application/Transfer/Import/Annaberg/Frontend.php on lines 83..117
                Application/Transfer/Import/Annaberg/Frontend.php on lines 124..160
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 144..178
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 187..221
                Application/Transfer/Import/Chemnitz/Frontend.php on lines 230..264
                Application/Transfer/Import/Muldental/Frontend.php on lines 115..151
                Application/Transfer/Import/Muldental/Frontend.php on lines 158..194
                Application/Transfer/Import/Muldental/Frontend.php on lines 201..237
                Application/Transfer/Import/Radebeul/Frontend.php on lines 123..159
                Application/Transfer/Import/Radebeul/Frontend.php on lines 211..245
                Application/Transfer/Import/Schneeberg/Frontend.php on lines 284..320
                Application/Transfer/Import/Seelitz/Frontend.php on lines 84..118

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

                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

                        $View->setContent(
                            new Layout(
                                new LayoutGroup(
                                    new LayoutRow(
                                        new LayoutColumn(array(
                Severity: Major
                Found in Application/Transfer/Import/Schneeberg/Frontend.php and 1 other location - About 3 hrs to fix
                Application/Transfer/Import/Zwickau/Frontend.php on lines 105..130

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

                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