DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method formEditGenerate has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function formEditGenerate(TblYear $tblYear = null, $IsLocked)
    {


        $tblAppointedDateTaskListByYear = Evaluation::useService()->getTaskAllByTestType(
Severity: Major
Found in Application/Education/Certificate/Generate/Frontend.php - About 2 hrs to fix

    Method frontendDashboard has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendDashboard()
        {
    
            $Stage = new Stage('Impressum', 'alle Angaben nach §5 TMG');
    
    
    Severity: Major
    Found in Application/Document/LegalNotice.php - About 2 hrs to fix

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

          public function frontendSchoolDestroy($Id = null, $Confirm = false)
          {
      
              $Stage = new Stage('Schule', 'Löschen');
              if ($Id) {
      Severity: Minor
      Found in Application/Setting/Consumer/School/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 frontendResponsibilityDestroy has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendResponsibilityDestroy($Id, $Confirm = false)
          {
      
              $Stage = new Stage('Schulträger', 'Löschen');
              if ($Id) {
      Severity: Minor
      Found in Application/Setting/Consumer/Responsibility/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 frontendResetAccount has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendResetAccount($Id = null, $Confirm = false, $Path = '/Setting/User')
          {
      
              $Stage = new Stage('Account Passwort', 'zurücksetzen');
              if ($Id) {
      Severity: Minor
      Found in Application/Setting/User/Account/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 saveCreateAddressToPersonModal has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function saveCreateAddressToPersonModal($PersonId, $Street, $City, $State, $Type, $County, $Nation, $Relationship)
          {
      
              if (!($tblPerson = Person::useService()->getPersonById($PersonId))) {
                  return new Danger('Die Person wurde nicht gefunden', new Exclamation());
      Severity: Minor
      Found in Application/Api/Contact/ApiAddressToPerson.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 openOverViewModal has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function openOverViewModal($PersonId)
          {
      
              $tblPerson = Person::useService()->getPersonById($PersonId);
              if(!$tblPerson){
      Severity: Minor
      Found in Application/Api/People/Meta/Agreement/ApiAgreementReadOnly.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 previewMultiLeavePdf has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

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

          private function setFieldValue($DataPost)
          {
      
              //getPerson
              $this->FieldValue['PersonId'] = $PersonId = (isset($DataPost['PersonId']) && $DataPost['PersonId'] != '' ? $DataPost['PersonId'] : false);
      Severity: Minor
      Found in Application/Api/Document/Custom/Zwickau/Repository/SchoolContract.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 setRow has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function setRow(&$sliceList, $identifier, $name)
          {
      
              $paddingLeft = '5px';
              $section = new Section();
      Severity: Minor
      Found in Application/Api/Document/Standard/Repository/KamenzReport/C01.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 setGradeLayoutBodyForSekII has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          protected function setGradeLayoutBodyForSekII(
              $subjectPosition = array(),
              $typeId = 0,
              $countSubjectColumns = 23,
              $countRows = 8,

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

          public function frontendIdentificationCredential($CredentialName = null, $CredentialLock = null)
          {
              $View = new Stage(new Nameplate().' Anmelden', '', $this->getIdentificationEnvironment());
      
              // Search for matching Account
      Severity: Minor
      Found in Application/Platform/Gatekeeper/Authentication/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 MatchDivision has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          protected function MatchDivision($Value, &$LevelName, &$DivisionName)
          {
      
              if (preg_match('!^(\d+)([äöüÄÖÜa-zA-Z]*?)$!is', $Value, $Match)) {
                  $LevelName = $Match[1];
      Severity: Minor
      Found in Application/Transfer/Indiware/Import/LectureshipGateway.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 frontendUpload has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendUpload(UploadedFile $File = null, $tblYear = null)
          {
      
              $Stage = new Stage('Indiware', 'Daten importieren');
              $Stage->setMessage('Lehraufträge importieren');
      Severity: Minor
      Found in Application/Transfer/Indiware/Import/Lectureship.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 registerApplication has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function registerApplication()
          {
      
              FuxSchool::registerModule();
              Schulstiftung::registerModule();
      Severity: Minor
      Found in Application/Transfer/Import/Import.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 setupDatabaseSchema has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function setupDatabaseSchema($Simulate = true, $UTF8 = false)
          {
      
              /**
               * Table
      Severity: Minor
      Found in Application/People/Meta/Common/Service/Setup.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 frontendRelationshipCustody has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendRelationshipCustody()
          {
              $stage = new Stage('Einordnung der Sorgeberechtigten', 'nach S1, S2, S3');
              $stage->addButton(new Standard('Zurück', '/People/Group', new ChevronLeft()));
      
      
      Severity: Minor
      Found in Application/People/Group/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 formSpecial has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function formSpecial($PersonId, $SpecialId = null, $IsCanceled = false, $IsInit = false)
          {
      
              $Global = $this->getGlobal();
              if($SpecialId != null && !isset($Global->POST['Data']['Date'])) {
      Severity: Minor
      Found in Application/People/Meta/Student/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 createTask has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createTask(IFormInterface $Stage = null, $Task, TblYear $tblYear = null)
          {
      
              /**
               * Skip to Frontend
      Severity: Minor
      Found in Application/Education/Graduation/Evaluation/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 getStudentGeneralContent has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function getStudentGeneralContent($PersonId = null)
          {
      
              if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                  $billingSiblingRank = '';
      Severity: Minor
      Found in Application/People/Person/Frontend/FrontendStudentGeneral.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

      Severity
      Category
      Status
      Source
      Language