DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function createInterestedPersonsFromFile has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
Open

    public function createInterestedPersonsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Chemnitz/Service.php - About 2 days to fix

Cognitive Complexity

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

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

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

Further reading

File Service.php has 1057 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Transfer\Import\Chemnitz;

use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
use MOC\V\Component\Document\Document;
Severity: Major
Found in Application/Transfer/Import/Chemnitz/Service.php - About 2 days to fix

    Method createStudentsFromFile has 529 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function createStudentsFromFile(
            IFormInterface $Form = null,
            UploadedFile $File = null
        ) {
    
    
    Severity: Major
    Found in Application/Transfer/Import/Coswig/Service.php - About 2 days to fix

      Method createStudentsFromFile has 529 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createStudentsFromFile(
              IFormInterface $Form = null,
              UploadedFile $File = null
          ) {
      
      
      Severity: Major
      Found in Application/Transfer/Import/Seelitz/Service.php - About 2 days to fix

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

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 18.07.2016
        Severity: Major
        Found in Application/Education/Certificate/Approve/Frontend.php - About 2 days to fix

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

              public function createInstitutionFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Dresden/Service.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

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

              public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
              {
          
                  /**
                   * Skip to Frontend
          Severity: Minor
          Found in Application/Transfer/Import/Naundorf/Service.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

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

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

          Cognitive Complexity

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

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

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

          Further reading

          Function createInterestedPersonsFromFile has a Cognitive Complexity of 127 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createInterestedPersonsFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Hormersdorf/Service.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

          Function frontendListObjectAdd has a Cognitive Complexity of 126 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendListObjectAdd($ListId = null, $ObjectId = null, $ObjectTypeId = null, $Option = null)
              {
          
                  $Stage = new Stage('Check-Listen', 'Ein Object einer Check-Liste hinzufügen');
          
          
          Severity: Minor
          Found in Application/Reporting/CheckList/Frontend.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

          Function createInterestedPersonsFromFile has a Cognitive Complexity of 126 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createInterestedPersonsFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/Braeunsdorf/Service.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

          Function updateGradeToTest has a Cognitive Complexity of 126 (exceeds 5 allowed). Consider refactoring.
          Open

              public function updateGradeToTest(
                  IFormInterface $Stage = null,
                  $TestId = null,
                  $Grade = null,
                  $BasicRoute,
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/Service.php - About 2 days to fix

          Cognitive Complexity

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

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

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

          Further reading

          Service has 130 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Service extends AbstractService
          {
          
              /**
               * @return false|ViewDivision[]
          Severity: Major
          Found in Application/Education/Lesson/Division/Service.php - About 2 days to fix

            Function frontendSerialLetterExport has a Cognitive Complexity of 123 (exceeds 5 allowed). Consider refactoring.
            Open

                public function frontendSerialLetterExport(
                    $Id = null,
                    $Control = false
                ) {
                    $Stage = new Stage('Adresslisten für Serienbriefe', 'Person mit Adressen herunterladen');
            Severity: Minor
            Found in Application/Reporting/SerialLetter/Frontend.php - About 2 days to fix

            Cognitive Complexity

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

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

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

            Further reading

            Method getContent has 493 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function getContent()
                {
                    $sliceList = array();
            
                    $sliceList[] = (new Slice())
            Severity: Major
            Found in Application/Api/Document/Standard/Repository/KamenzReport/E03.php - About 2 days to fix

              File Service.php has 984 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              
              namespace SPHERE\Application\Reporting\CheckList;
              
              
              Severity: Major
              Found in Application/Reporting/CheckList/Service.php - About 2 days to fix

                Method getContent has 490 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function getContent()
                    {
                        $sliceList = array();
                
                        $sliceList[] = (new Slice())
                Severity: Major
                Found in Application/Api/Document/Standard/Repository/KamenzReport/E02_1.php - About 2 days to fix

                  Function allocateStudent has a Cognitive Complexity of 121 (exceeds 5 allowed). Consider refactoring.
                  Open

                      private function allocateStudent(&$Data)
                      {
                  
                          if ($this->getTblPerson()) {
                              if (($tblDivisionList = Student::useService()->getCurrentDivisionListByPerson($this->getTblPerson()))) {
                  Severity: Minor
                  Found in Application/Api/Document/AbstractDocument.php - About 2 days to fix

                  Cognitive Complexity

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

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

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

                  Further reading

                  Method getContent has 488 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function getContent()
                      {
                  
                          $sliceList = array();
                  
                  
                  Severity: Major
                  Found in Application/Api/Document/Standard/Repository/KamenzReport/E02.php - About 2 days to fix

                    Method frontendPreparePreview has 488 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendPreparePreview(
                            $PrepareId = null,
                            $Route = 'Teacher',
                            $GroupId = false
                        ) {
                    Severity: Major
                    Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language