DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function frontendScoreConditionGradeTypeSelect has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendScoreConditionGradeTypeSelect(
        $Id = null,
        $Period = null
    ) {

Severity: Minor
Found in Application/Education/Graduation/Gradebook/ScoreRule/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 checkCertificateSubjectsForDivision has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
Open

    public function checkCertificateSubjectsForDivision(TblPrepareCertificate $tblPrepare, $certificateNameList, &$hasMissingLanguage)
    {

        if (($tblSetting = ConsumerSetting::useService()->getSetting('Api', 'Education', 'Certificate', 'ProfileAcronym'))
            && ($value = $tblSetting->getValue())
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

Method getContent has 227 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/KamenzReportGym/C01.php - About 1 day to fix

    Method frontendClassList has 227 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendClassList($LevelId = null, $YearId = null)
        {
    
            $Stage = new Stage('Auswertung', 'Klassenliste');
            if (null !== $LevelId || $YearId !== null) {
    Severity: Major
    Found in Application/Reporting/Custom/Muldental/Person/Frontend.php - About 1 day to fix

      Method createStaffsFromFile has 227 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method setGraduate has 227 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static function setGraduate(
                $tblPastYearList,
                &$Content,
                TblType $tblKamenzSchoolType
            ) {
        Severity: Major
        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day to fix

          Method createPrintClassListExcel has 226 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createPrintClassListExcel($PersonList, $tblPersonList, $DivisionId)
              {
          
                  // get PersonList sorted by GradeBook
                  if (!empty($PersonList)) {
          Severity: Major
          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 1 day to fix

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

            <?php
            
            namespace SPHERE\Application\Billing\Bookkeeping\Basket;
            
            use SPHERE\Application\Api\Billing\Bookkeeping\ApiBasket;
            Severity: Major
            Found in Application/Billing/Bookkeeping/Basket/Frontend.php - About 1 day to fix

              Method getContent has 225 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/KamenzReportGym/E08.php - About 1 day to fix

                Method frontendClassList has 225 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendClassList($LevelId = null, $YearId = null)
                    {
                
                        $Stage = new Stage('Auswertung', 'Klassenliste');
                        if (null !== $LevelId || $YearId !== null) {
                Severity: Major
                Found in Application/Reporting/Custom/BadDueben/Person/Frontend.php - About 1 day to fix

                  Method frontendGroupList has 224 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendGroupList($GroupId = null)
                      {
                  
                          $Stage = new Stage('Auswertung', 'Personengruppenlisten');
                          $tblGroupAll = Group::useService()->getGroupAll();
                  Severity: Major
                  Found in Application/Reporting/Standard/Person/Frontend.php - About 1 day to fix

                    Method frontendTeacherGradebook has 224 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendTeacherGradebook($IsAllYears = false, $YearId = null)
                        {
                    
                            $Stage = new Stage('Notenbuch', 'Auswahl');
                            $Stage->setMessage(
                    Severity: Major
                    Found in Application/Education/Graduation/Gradebook/Frontend.php - About 1 day to fix

                      Function createAccount has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createAccount(IFormInterface $Form, $Account)
                          {
                      
                              if (null === $Account) {
                      
                      
                      Severity: Minor
                      Found in Application/Setting/Authorization/Account/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

                      Function createAccount has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createAccount(/*IFormInterface $form, */
                              $PersonIdArray = array(),
                              $AccountType = 'S'
                          )
                          {
                      Severity: Minor
                      Found in Application/Setting/User/Account/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

                      Function setExamRows has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private function setExamRows($personId, $isBellUsed)
                          {
                              $color = '#BBB';
                              $sectionList = array();
                      
                      

                      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 downloadMultiPdf has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public static function downloadMultiPdf($PrepareId = null, $Name = 'Zeugnis', $Redirect = true)
                          {
                      
                              if ($Redirect) {
                                  return self::displayWaitingPage('/Api/Education/Certificate/Generator/DownLoadMultiPdf', array(
                      Severity: Minor
                      Found in Application/Api/Education/Certificate/Generator/Creator.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 createCompaniesFromFile has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createCompaniesFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Minor
                      Found in Application/Transfer/Import/Schneeberg/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

                      Function createCompaniesFromFile has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createCompaniesFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Minor
                      Found in Application/Transfer/Import/Muldental/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

                      Function createCompaniesFromFile has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createCompaniesFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Minor
                      Found in Application/Transfer/Import/Annaberg/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

                      Function createCompaniesFromFile has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createCompaniesFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Minor
                      Found in Application/Transfer/Import/Radebeul/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

                      Severity
                      Category
                      Status
                      Source
                      Language