DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method setSchoolTypeLastYear has 120 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function setSchoolTypeLastYear(
        &$Content,
        $tblPastYearList,
        TblPerson $tblPerson,
        $tblCourse,
Severity: Major
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs to fix

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

        public function getContent($NoConnection = false)
        {
    
            $this->Template->setVariable('ManagerStyle', Style::getManager());
            $this->Template->setVariable('ManagerScript', Script::getManager());
    Severity: Major
    Found in Common/Window/Display.php - About 4 hrs to fix

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

          public function buildPages(TblPerson $tblPerson = null)
          {
      
              $personId = $tblPerson ? $tblPerson->getId() : 0;
              $PageList = array();

        File E03.php has 365 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 05.09.2018
        Severity: Minor
        Found in Application/Api/Document/Standard/Repository/KamenzReportGS/E03.php - About 4 hrs to fix

          Method hasPersonAllObligations has 119 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function hasPersonAllObligations(TblPerson $tblPerson, TblType $tblSchoolType, TblLevel $tblLevel, $list, $validateFirstLanguage, $hasOrientationSubjects)
              {
                  $tblStudent = $tblPerson->getStudent();
          
                  // Keine 1. Fremdsprache hinterlegt.
          Severity: Major
          Found in Application/Education/Lesson/Division/Filter/Service.php - About 4 hrs to fix

            Method formSignOut has 119 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function formSignOut()
                {
            
                    return new Form(
                        new FormGroup(array(

              Function setPostValue has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  protected function setPostValue(IBridgeInterface &$Template, $RequestKey, $VariableName)
                  {
              
                      if (preg_match('!^(.*?)\[(.*?)\]$!is', $RequestKey, $Match)) {
                          if (false === strpos($Match[2], '[')) {
              Severity: Minor
              Found in Common/Frontend/Form/Repository/AbstractField.php - About 4 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 saveEditDebtorSelection has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function saveEditDebtorSelection(
                      $BasketVerificationId,
                      $DebtorSelection = array()
                  ){
              
              
              Severity: Minor
              Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 4 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 deleteReference has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function deleteReference($Identifier = '', $PersonId = '', $ReferenceId = '')
                  {
              
                      if(($tblReference = Debtor::useService()->getBankReferenceById($ReferenceId))){
                          $RowContent = array();
              Severity: Minor
              Found in Application/Api/Billing/Accounting/ApiBankReference.php - About 4 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 getSubjectList has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  private function getSubjectList(TblPerson $tblPerson = null)
                  {
                      $subjectList = array();
                      $tblCertificateSubjectAll = Generator::useService()->getCertificateSubjectAll($this->getCertificateEntity());
                      if ($tblCertificateSubjectAll) {

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

                  public function createLanguageListExcel($PersonList, $tblPersonList)
                  {
              
                      if (!empty( $PersonList )) {
              
              
              Severity: Minor
              Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 4 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 frontendClassList has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendClassList($LevelId = null, $YearId = null)
                  {
              
                      $Stage = new Stage('Auswertung', 'Klassenliste');
                      if (null !== $LevelId || $YearId !== null) {
              Severity: Minor
              Found in Application/Reporting/Custom/Muldental/Person/Frontend.php - About 4 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 frontendClassList has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendClassList($LevelId = null, $YearId = null)
                  {
              
                      $Stage = new Stage('Auswertung', 'Klassenliste');
                      if (null !== $LevelId || $YearId !== null) {
              Severity: Minor
              Found in Application/Reporting/Custom/BadDueben/Person/Frontend.php - About 4 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 getStudentTableByResult has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function getStudentTableByResult($Result)
                  {
                      $TableSearch = array();
                      if (!empty($Result)) {
                          /** @var AbstractView[]|ViewDivisionStudent[] $Row */
              Severity: Minor
              Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 4 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 frontendDestroyAccount has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendDestroyAccount($AccountType, $Confirm = false)
                  {
              
                      $Stage = new Stage('Benutzeraccounts', 'Löschen');
              
              
              Severity: Minor
              Found in Application/Platform/System/DataMaintenance/DataMaintenance.php - About 4 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 createIndiwareImportLectureshipBulk has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function createIndiwareImportLectureshipBulk(
                      $ImportList,
                      TblYear $tblYear,
                      TblAccount $tblAccount
                  ) {
              Severity: Minor
              Found in Application/Transfer/Indiware/Import/Service/Data.php - About 4 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 setStudentList has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  private function setStudentList(
                      TblDivisionSubject $tblDivisionSubject,
                      TblTest $tblTest,
                      $studentList,
                      &$studentTestList,
              Severity: Minor
              Found in Application/Education/Graduation/Evaluation/Frontend.php - About 4 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 updateAbiturLevelTenGrades has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function updateAbiturLevelTenGrades(
                      IFormInterface $form,
                      TblPrepareCertificate $tblPrepare,
                      TblPerson $tblPerson,
                      $Data,
              Severity: Minor
              Found in Application/Education/Certificate/Prepare/Service.php - About 4 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 setCertificateTemplates has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function setCertificateTemplates(
                      TblPrepareCertificate $tblPrepare,
                      &$countStudents = 0,
                      &$certificateNameList = array(),
                      &$schoolNameList = array()
              Severity: Minor
              Found in Application/Education/Certificate/Generate/Service.php - About 4 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 frontendCopyDivision has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendCopyDivision($Id = null, $Division = null, $Level = null)
                  {
              
                      $Stage = new Stage('Klasse', 'Kopieren');
                      $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
              Severity: Minor
              Found in Application/Education/Lesson/Division/Frontend.php - About 4 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

              Severity
              Category
              Status
              Source
              Language