DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function checkAbiturExams has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function checkAbiturExams(TblPrepareCertificate $tblPrepareCertificate, TblPerson $tblPerson)
    {

        $warnings = false;
        $exams = array();
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.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 setYearGroupButtonList has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function setYearGroupButtonList($Route, $IsAllYears, $IsGroup, $YearId, &$tblYear, $HasAllYears = true)
    {

        $tblYear = false;
        $tblYearList = Term::useService()->getYearByNow();
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.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 frontendPrintCertificateHistory has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendPrintCertificateHistory()
    {

        $Stage = new Stage('Zeugnis', 'Person auswählen');
        $Stage->addButton(new Standard(
Severity: Minor
Found in Application/Education/Certificate/PrintCertificate/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 frontendPrepareDiplomaAbiturBlockI has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendPrepareDiplomaAbiturBlockI(
        $PrepareId = null,
        $GroupId = null,
        $PersonId = null,
        $View = BlockIView::PREVIEW,
Severity: Minor
Found in Application/Education/Certificate/Prepare/Abitur/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 setCertificateSubject has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    private function setCertificateSubject(
        TblCertificate $tblCertificate,
        $SubjectAcronym,
        $LaneIndex,
        $LaneRanking,
Severity: Minor
Found in Application/Education/Certificate/Generator/Service/Data.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 addPersonListFromSubject has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    private function addPersonListFromSubject($DataAddPerson, TblSubject $tblSubject, $SubjectGroup, $Group)
    {

        foreach ($DataAddPerson as $personId => $value) {
            $tblPerson = Person::useService()->getPersonById($personId);
Severity: Minor
Found in Application/Education/Lesson/Subject/Service.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 frontendSelectHoliday has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSelectHoliday(
        $YearId = null,
        $DataAddHoliday = null,
        $DataRemoveHoliday = null
    ) {
Severity: Minor
Found in Application/Education/Lesson/Term/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 frontendDashboard has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendDashboard()
    {

        $Stage = new Stage('Fächer', 'Dashboard');

Severity: Minor
Found in Application/Education/Lesson/Subject/Subject.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

File Data.php has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Reporting\Dynamic\Service;

use SPHERE\Application\Platform\Gatekeeper\Authorization\Account\Service\Entity\TblAccount;
use SPHERE\Application\Platform\System\Protocol\Protocol;
Severity: Minor
Found in Application/Reporting/Dynamic/Service/Data.php - About 2 hrs to fix

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

    <?php
    namespace SPHERE\Application\Transfer\Untis\Import;
    
    use SPHERE\Application\Education\Lesson\Division\Division;
    use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivision;
    Severity: Minor
    Found in Application/Transfer/Untis/Import/Service.php - About 2 hrs to fix

      File Row.php has 274 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace Rap2hpoutre\MySQLExplainExplain;
      
      use \Jasny\MySQL\DB as DB;
      use \Jasny\MySQL\DB_Exception as DB_Exception;
      Severity: Minor
      Found in xplain/app/Row.php - About 2 hrs to fix

        Function callback has 64 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                                callback: function( Confirm ) {
                                if (Confirm == true) {
        
                                    Table.processing(true);
                                    var $ExchangeTarget = $('table.' + settings.ExtensionRowExchange.Connect.To)
        Severity: Major
        Found in Common/Script/ModTable.js - About 2 hrs to fix

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

              protected function getSchoolName($personId, $MarginTop = '20px')
              {
          
                  if (($tblSetting = \SPHERE\Application\Setting\Consumer\Consumer::useService()->getSetting(
                      'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))
          Severity: Major
          Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 2 hrs to fix

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

                protected function getESSHeadGrade($personId, $marginTop = '15px')
                {
            
                    $GradeSlice = (new Slice());
            
            

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

                  protected function getEZSHHeadGrade($personId)
                  {
              
                      $GradeSlice = (new Slice());
              
              

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

                    public function frontendDenominationList()
                    {
                
                        $Stage = new Stage('Individuelle Auswertung', 'Anwesenheitsliste Elternabende');
                        $Stage->setMessage(new Danger('Die dauerhafte Speicherung des Excel-Exports
                Severity: Major
                Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 2 hrs to fix

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

                      public function createSchoolFeeListExcel($PersonList, $tblPersonList)
                      {
                  
                          if (!empty($PersonList)) {
                  
                  
                  Severity: Major
                  Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 hrs to fix

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

                        public function checkCertificateSubjectsForDivision(TblPrepareCertificate $tblPrepare, $certificateNameList, &$hasMissingLanguage)
                        {
                    
                            if (($tblSetting = ConsumerSetting::useService()->getSetting('Api', 'Education', 'Certificate', 'ProfileAcronym'))
                                && ($value = $tblSetting->getValue())
                    Severity: Major
                    Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

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

                          public function frontendPrintCertificateHistorySelectedDivision($DivisionId = null)
                          {
                      
                              $Stage = new Stage('Zeugnis', 'Auswahl');
                              $Stage->addButton(new Standard('Zurück', '/Education/Certificate/PrintCertificate/History/Division', new ChevronLeft()));
                      Severity: Major
                      Found in Application/Education/Certificate/PrintCertificate/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
                          Severity
                          Category
                          Status
                          Source
                          Language