DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function frontendHeadmasterTaskDivision has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendHeadmasterTaskDivision($Id = null, $Data = null)
    {

        $Stage = new Stage('Notenauftrag', 'Klassen zuordnen');
        $Stage->setMessage(new Bold(new Exclamation() . ' Hinweis: ') . 'Bei der Auswahl vieler Klassen kann das Speichern einige Zeit dauern.');
Severity: Minor
Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 day 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 frontendFillSignOutCertificate has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendFillSignOutCertificate($Id = null)
    {

        $Stage = new Stage('Schülerüberweisung', 'Erstellen');
        $Stage->addButton(new Standard('Zurück', '/Document/Standard/SignOutCertificate', new ChevronLeft()));

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 createInterestedPersonsFromFile has 377 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Severity: Major
Found in Application/Transfer/Import/BadDueben/Service.php - About 1 day to fix

    Method frontendSerialLetterEdit has 373 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendSerialLetterEdit(
            $Id = null,
            $Control = false,
            $SerialLetter = null,
            $TabActive = null,
    Severity: Major
    Found in Application/Reporting/SerialLetter/Frontend.php - About 1 day to fix

      Function frontendPrintCertificateDivisionTeacher has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendPrintCertificateDivisionTeacher()
          {
      
              $Stage = new Stage('Zeugnis', 'Übersicht (nicht gedruckte Zeugnisse)');
      
      
      Severity: Minor
      Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 1 day 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 setStudentFocus has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setStudentFocus(
              TblPerson $tblPerson,
              TblLevel $tblLevel,
              &$Content,
              $gender,
      Severity: Minor
      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 setNewSchoolStarter has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setNewSchoolStarter(
              &$Content,
              TblPerson $tblPerson,
              TblStudent $tblStudent,
              TblLevel $tblLevel,
      Severity: Minor
      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 countStudentLevels has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function countStudentLevels(
              TblPerson $tblPerson,
              TblLevel $tblLevel,
              &$gender,
              $hasMigrationBackground,
      Severity: Minor
      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 97 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Service extends AbstractService
      {
      
          /**
           * @param bool $doSimulation
      Severity: Major
      Found in Application/Education/Certificate/Prepare/Service.php - About 1 day to fix

        Method contentTestSelected has 370 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function contentTestSelected($DivisionSubjectId, $Test, Stage $Stage, $BasicRoute)
            {
        
                $Stage->addButton(new Standard('Zurück', $BasicRoute, new ChevronLeft()));
        
        
        Severity: Major
        Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 day to fix

          Function getSubjectLanesCoswig has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function getSubjectLanesCoswig(
                  $personId,
                  $isSlice = true,
                  $languagesWithStartLevel = array(),
                  $TextSize = '14px',
          Severity: Minor
          Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 1 day 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 getSubjectLanesCustomForChemnitz has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function getSubjectLanesCustomForChemnitz(
                  $personId,
                  $isSlice = true,
                  $languagesWithStartLevel = array(),
                  $TextSize = '14px',
          Severity: Minor
          Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 1 day 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 createAddressPersonList has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createAddressPersonList(
                  $PersonListArray = array(),
                  $isCompany = false
              ) {
          
          
          Severity: Minor
          Found in Application/Reporting/SerialLetter/Service/Data.php - About 1 day 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 updateAbiturPreliminaryGrades has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

              public function updateAbiturPreliminaryGrades(
                  IFormInterface $Form = null,
                  TblPerson $tblPerson,
                  TblPrepareCertificate $tblPrepare,
                  $GroupId = null,
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Service.php - About 1 day 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 StudentCourse.php has 781 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          namespace SPHERE\Application\Transfer\Indiware\Import;
          
          use SPHERE\Application\Document\Storage\FilePointer;
          Severity: Major
          Found in Application/Transfer/Indiware/Import/StudentCourse.php - About 1 day to fix

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

            <?php
            /**
             * Created by PhpStorm.
             * User: Kauschke
             * Date: 21.09.2016
            Severity: Major
            Found in Application/Education/Graduation/Gradebook/ScoreRule/Service.php - About 1 day to fix

              Method buildPages has 367 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function buildPages(TblPerson $tblPerson = null)
                  {
              
                      $personId = $tblPerson ? $tblPerson->getId() : 0;
              
              
              Severity: Major
              Found in Application/Api/Education/Certificate/Generator/Repository/BeSOFS.php - About 1 day to fix

                Method createInterestedPersonsFromFile has 367 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method buildDocument has 366 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function buildDocument($pageList = array())
                      {
                          return (new Frame())->addDocument((new Document())
                              ->addPage((new Page())
                                  ->addSlice((new Slice())

                    Method getStudentTableContent has 366 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getStudentTableContent($Result, $Option = null, $PersonGroup = null)
                        {
                    
                            $SearchResult = array();
                            if (!empty($Result)) {
                    Severity: Major
                    Found in Application/Reporting/Standard/Person/Service.php - About 1 day to fix
                      Severity
                      Category
                      Status
                      Source
                      Language