DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                            switch ($Item['Gender']) {
                                case "Männlich":
                                    $Item['GenderExcel'] = "m";
                                    break;
                                case "Weiblich":
Severity: Major
Found in Application/Reporting/Custom/Muldental/Person/Service.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (($tblCompany = $tblTransfer->getServiceTblCompany())) {
                                if (($tblAddress = $tblCompany->fetchMainAddress())) {
                                    $Data['Document']['PlaceDate'] = $tblAddress->getTblCity()->getName() . ', '
                                        . date('d.m.Y');
                                    $Data['Document']['Date']['Now'] = date('d.m.Y');
    Severity: Major
    Found in Application/Api/Document/AbstractDocument.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if (($tblMail = $tblToPersonMail->getTblMail())) {
                                          $Data['Person']['Contact']['All']['Person']['Mail'] .= $tblFromPerson->getLastFirstName().': '
                                              .$tblMail->getAddress().';<br/>';
                                          // set next row if line ist to long
                                          $ControlString = $Data['Person']['Contact']['All']['Mail'].
      Severity: Major
      Found in Application/Api/Document/AbstractDocument.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())) {
                                        if (($tblGender = $tblCommonBirthDates->getTblCommonGender())) {
                                            $gender = $tblGender->getName();
                                        }
                                        if (($birthdayDate = $tblCommonBirthDates->getBirthday())) {
        Severity: Major
        Found in Application/Reporting/KamenzReport/KamenzService.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                          if (($tblFromPersonToPhoneList = Phone::useService()->getPhoneAllByPerson($tblFromPerson))) {
                                              foreach ($tblFromPersonToPhoneList as $tblToMother) {
                                                  if ($tblToMother->getTblType()->getName() == 'Privat'
                                                      && $tblToMother->getTblType()->getDescription() == 'Mobil'
                                                  ) {
          Severity: Major
          Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if (isset($tblPhoneList[$key])) {
                                                $tblPhoneList[$key] .= ')';
                                            }
            Severity: Major
            Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if (($tblCommonGender = $tblCommonBirthDates->getTblCommonGender())) {
                                              $DataPerson['Gender'] = $tblCommonGender->getName();
                                          }
              Severity: Major
              Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if ($PhoneDescription == 'Festnetz') {
                                                    switch ($PhoneName) {
                                                        case 'Privat':
                                                            if (empty($DataPerson['PhoneFixedPrivate'])) {
                                                                $DataPerson['PhoneFixedPrivate'] = $tblPhone->getNumber()
                Severity: Major
                Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                  if ($tblYearDivision->getId() == $tblYear->getId()) {
                                                      $DivisionArray[] = $tblDivision->getDisplayName();
                                                  }
                  Severity: Major
                  Found in Application/Reporting/Custom/BadDueben/Person/Service.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if ($tblType->getName() == 'Geschwisterkind') {
                                                        if (($tblPersonFrom = $tblToPerson->getServiceTblPersonFrom()) && ($tblPersonTo = $tblToPerson->getServiceTblPersonTo())) {
                                                            if ($tblPersonFrom->getId() !== $tblPerson->getId()) {
                                                                $tblPersonSibling = $tblPersonFrom;
                                                            } elseif ($tblPersonTo->getId() !== $tblPerson->getId()) {
                    Severity: Major
                    Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if ($tblCourse) {
                                                      if ($tblCourse->getName() == 'Gymnasium') {
                                                          $Item['Education'] = 'GY';
                                                      } elseif ($tblCourse->getName() == 'Hauptschule') {
                                                          $Item['Education'] = 'HS';
                      Severity: Major
                      Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                    if ($tblCity) {
                                                        $AddressCompanyCodeCity = $tblCity->getCode().' '.$tblCity->getDisplayName();
                                                    }
                        Severity: Major
                        Found in Application/Reporting/DeclarationBasis/Service.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                          if ($salutation->getId() == 1) {
                                                              $father = $guardian->getServiceTblPersonFrom();
                                                          } elseif ($salutation->getId() == 2) {
                                                              $mother = $guardian->getServiceTblPersonFrom();
                                                          }
                          Severity: Major
                          Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                            switch ($tblAgreementType->getName()) {
                                                                case 'in Schulschriften':
                                                                    ($CategoryString == 'Foto des Schülers'
                                                                        ? $Item['PictureSchoolWriting'] = $MarkValue
                                                                        : $Item['NameSchoolWriting'] = $MarkValue);
                            Severity: Major
                            Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if (is_numeric($Year) && is_numeric($Month) && is_numeric($Day)) {
                                                              $Item['BirthdayYearSort'] = ($Year * 10000) + ($Month * 100) + $Day;
                                                          }
                              Severity: Major
                              Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            if (($tblLevelTill = $tblStudentSubject->getServiceTblLevelTill()) &&
                                                                ($LevelTill = Division::useService()->getLevelById($tblLevelTill->getId())->getName())
                                                                && (is_numeric($LevelTill)) && (is_numeric($tblDivisionLevel->getName()))) {
                                                                if ($tblDivisionLevel->getName() > $LevelTill) {
                                                                    $Item['ForeignLanguage' . $i] = '';
                                Severity: Major
                                Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      switch($tblStudentAgreement->getTblStudentAgreementType()->getName()){
                                                                          case 'in Schulschriften':
                                                                              $Item['Picture1'] = 'Ja';
                                                                          break;
                                                                          case 'in Veröffentlichungen':
                                  Severity: Major
                                  Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        switch($tblStudentAgreement->getTblStudentAgreementType()->getName()){
                                                                            case 'in Schulschriften':
                                                                                $Item['Name1'] = 'Ja';
                                                                            break;
                                                                            case 'in Veröffentlichungen':
                                    Severity: Major
                                    Found in Application/Reporting/Standard/Person/Service.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if ($tblToPhoneList) {
                                                                          foreach ($tblToPhoneList as $tblToPhone) {
                                                                              if (( $tblPhone = $tblToPhone->getTblPhone() )) {
                                                                                  if (!isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
                                                                                      $Item['PhoneGuardian'][$tblPersonGuardian->getId()] =
                                      Severity: Major
                                      Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if (isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
                                                                            $Item['PhoneGuardian'][$tblPersonGuardian->getId()] .= ')';
                                                                        }
                                        Severity: Major
                                        Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language