DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File HorHjOne.php has 353 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\FESH;

use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;

    Method getContent has 111 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/G01.php - About 4 hrs to fix

      Method frontendFillAccidentReport has 111 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendFillAccidentReport($PersonId = null)
          {
      
              $Stage = new Stage('Schulbescheinigung', 'Erstellen');
              $Stage->addButton(new Standard('Zurück', '/Document/Standard/EnrollmentDocument', new ChevronLeft()));

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

        <?php
        
        namespace SPHERE\Application\Transfer\Indiware\Export\AppointmentGrade;
        
        use SPHERE\Application\Api\Transfer\Indiware\AppointmentGrade\ApiAppointmentGrade;
        Severity: Minor
        Found in Application/Transfer/Indiware/Export/AppointmentGrade/Frontend.php - About 4 hrs to fix

          Function createElectiveClassListExcel has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createElectiveClassListExcel($PersonList, $tblPersonList, $DivisionId)
              {
          
                  // get PersonList sorted by GradeBook
                  if (!empty($PersonList)) {
          Severity: Minor
          Found in Application/Reporting/Standard/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 frontendRunFilter has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendRunFilter($DynamicFilter = 0, $SearchFieldName = array())
              {
                  // BlackFire.io
          //        $DynamicFilter = 2;
          
          
          Severity: Minor
          Found in Application/Reporting/Dynamic/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 updateListObjectElement has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function updateListObjectElement(
                  IFormInterface $Stage = null,
                  TblList $tblList = null,
                  TblObjectType $tblObjectType = null,
                  $ObjectId = null,
          Severity: Minor
          Found in Application/Reporting/CheckList/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 getProspectFilterResultListBySerialLetter has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getProspectFilterResultListBySerialLetter(
                  TblSerialLetter $tblSerialLetter = null,
                  $FilterGroupList = array(),
                  $FilterProspectList = array(),
                  &$IsTimeout = false
          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 frontendWelcome has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendWelcome()
              {
          
                  $Stage = new Stage('Willkommen', '', '');
                  $IsMaintenance = false;
          Severity: Minor
          Found in Application/Platform/Gatekeeper/Authentication/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 frontendScoreRuleConditionSelect has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendScoreRuleConditionSelect(
                  $Id = null
              ) {
          
                  $Stage = new Stage('Berechnungsvorschrift', 'Berechnungsvarianten auswählen');
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/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 frontendScoreGroupSelect has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendScoreGroupSelect(
                  $Id = null
              ) {
          
                  $Stage = new Stage('Berechnungsvariante', 'Zensuren-Gruppen auswählen');
          Severity: Minor
          Found in Application/Education/Graduation/Gradebook/ScoreRule/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 getResultForAbiturBlockII has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getResultForAbiturBlockII(
                  TblPrepareCertificate $tblPrepareCertificate,
                  TblPerson $tblPerson
              ) {
          
          
          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 setRow has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              private function setRow($dataList, $i)
              {
                  $number = $i . '.';
                  if ($i == 1) {
                      $tblSubject = $this->getFirstAdvancedCourse();
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Abitur/BlockII.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 getAbsenceAllByDay has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getAbsenceAllByDay(\DateTime $dateTime, TblType $tblType = null, $divisionList = array())
              {
                  $resultList = array();
                  $tblAbsenceList = array();
                  if (!empty($divisionList)
          Severity: Minor
          Found in Application/Education/ClassRegister/Absence/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 frontendCreateLevelDivision has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendCreateLevelDivision($Level = null, $Division = null, $Year = null)
              {
          
                  $Stage = new Stage('Klassen', 'Aktuelle Übersicht');
          
          
          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

          Function getPeriodAllByYear has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getPeriodAllByYear(TblYear $tblYear, $IsLevel12 = false, $IsAll = false)
              {
          
                  $periodAllList = array();
                  /** @var TblYearPeriod[] $EntityList */
          Severity: Minor
          Found in Application/Education/Lesson/Term/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

          Method getContent has 110 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/KamenzReportGS/E04.php - About 4 hrs to fix

            File viewdiff-ex.php has 350 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
            <html>
            <head>
                <style type="text/css">
                    body {
            Severity: Minor
            Found in Application/Platform/System/Protocol/Difference/viewdiff-ex.php - About 4 hrs to fix

              File EnrollmentDocument.php has 350 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              namespace SPHERE\Application\Document\Standard\EnrollmentDocument;
              
              use MOC\V\Core\FileSystem\FileSystem;
              use SPHERE\Application\Contact\Address\Address;

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

                <?php
                namespace SPHERE\Application\Setting\MyAccount;
                
                use SPHERE\Application\Api\Setting\ApiMyAccount\ApiMyAccount;
                use SPHERE\Application\Contact\Mail\Mail;
                Severity: Minor
                Found in Application/Setting/MyAccount/Frontend.php - About 4 hrs to fix
                  Severity
                  Category
                  Status
                  Source
                  Language