DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                                        if ($Salutation === 'Herr' || $Salutation === 'Frau') {
                                            $isReady = false;
                                        }
Severity: Major
Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                            if (null === $Entity) {
                                                $Entity = new TblAddressPerson();
                                                $Entity->setTblSerialLetter($tblSerialLetter);
                                                $Entity->setServiceTblPerson($tblPerson);
                                                $Entity->setServiceTblPersonToAddress($tblPersonTo);
    Severity: Major
    Found in Application/Reporting/SerialLetter/Service/Data.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if (!empty($FilterYear)) {
                                  foreach ($FilterYear as $FieldName => $FilterList) {
                                      foreach ($FilterList as $FilterNumber => $FieldValue) {
                                          if ($FieldValue) {
                                              ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
      Severity: Major
      Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (!empty($FilterRelationship)) {
                                    foreach ($FilterRelationship as $FieldName => $FilterList) {
                                        foreach ($FilterList as $FilterNumber => $FieldValue) {
                                            if ($FieldValue) {
                                                ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
        Severity: Major
        Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                                  if ($tblToCompany->getServiceTblCompany()->getId() === $tblRelationship->getServiceTblCompany()->getId()) {
                                                      $RelationShip = $tblType->getName();
                                                      $subDataList[] = array(
                                                          'Salutation'   => $tblPerson->getSalutation(),
                                                          'Person'       => $tblPerson->getFullName(),
          Severity: Major
          Found in Application/Reporting/SerialLetter/Frontend.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if (!in_array($tblAddress->getId(), $Address)) {
                                                $result++;
                                            }
            Severity: Major
            Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if ($tblProspectReservation) {
                                                  $DataPerson['ProspectYear'] = $tblProspectReservation->getReservationYear();
                                                  $DataPerson['ProspectDivision'] = $tblProspectReservation->getReservationDivision();
                                              }
              Severity: Major
              Found in Application/Reporting/SerialLetter/Frontend.php - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if (!empty($FilterStudent)) {
                                            foreach ($FilterStudent as $FieldName => $FilterNumberList) {
                                                foreach ($FilterNumberList as $FilterNumber => $FieldValue) {
                                                    if ($FieldValue) {
                                                        ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
                Severity: Major
                Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                                  if ($tblProspect) {
                                                                      $tblProspectReservation = $tblProspect->getTblProspectReservation();
                                                                      $AddressList[$tblPerson->getId().$tblAddress->getId()]['ReservationDivision'] = $tblProspectReservation->getReservationDivision();
                                                                      $AddressList[$tblPerson->getId().$tblAddress->getId()]['ReservationYear'] = $tblProspectReservation->getReservationYear();
                                                                      if ($tblProspectReservation->getServiceTblTypeOptionA()) {
                  Severity: Major
                  Found in Application/Reporting/SerialLetter/Frontend.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if (!empty($FilterGroup)) {
                                                foreach ($FilterGroup as $FieldName => $FilterList) {
                                                    foreach ($FilterList as $FilterNumber => $FieldValue) {
                                                        if ($FieldValue) {
                                                            if ($SaveFilterField) {
                    Severity: Major
                    Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (!empty($FilterGroup)) {
                                                  foreach ($FilterGroup as $FieldName => $FilterList) {
                                                      foreach ($FilterList as $FilterNumber => $FieldValue) {
                                                          if ($FieldValue) {
                                                              ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
                      Severity: Major
                      Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                                        if ($Division === '') {
                                                                            $Division = new Small(new Muted('-NA-'));
                                                                        }
                        Severity: Major
                        Found in Application/Reporting/SerialLetter/Frontend.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if (!empty($FilterGroup)) {
                                                      foreach ($FilterGroup as $FieldName => $FilterList) {
                                                          foreach ($FilterList as $FilterNumber => $FieldValue) {
                                                              if ($FieldValue) {
                                                                  ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
                          Severity: Major
                          Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (!empty($FilterCompany)) {
                                                        foreach ($FilterCompany as $FieldName => $FilterNumberList) {
                                                            foreach ($FilterNumberList as $FilterNumber => $FieldValue) {
                                                                if ($FieldValue) {
                                                                    ( new Data($this->getBinding()) )->createFilterField($tblSerialLetter, $tblFilterCategory,
                            Severity: Major
                            Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                              if ($tblCity) {
                                                                  if (!isset($Data[$tblCity->getId()])) {
                                                                      $Data[$tblCity->getId()] = $tblCity->getName();
                                                                  }
                                                              }
                              Severity: Major
                              Found in Application/Reporting/Individual/Service/Entity/ViewPersonContact.php - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                if (isset($Address['PersonLastName']) && !empty($Address['PersonLastName'])) {
                                                                    if (isset($Address['PersonSalutation'])
                                                                        && count($Address['PersonLastName']) > 1
                                                                    ) {
                                                                        // Personen mit gleichem Nachnamen
                                Severity: Major
                                Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                          if (null === $Entity) {
                                                                              $Entity = new TblAddressPerson();
                                                                              $Entity->setTblSerialLetter($tblSerialLetter);
                                                                              $Entity->setServiceTblPerson($tblPerson);
                                                                              $Entity->setServiceTblPersonToAddress($tblPersonTo);
                                  Severity: Major
                                  Found in Application/Reporting/SerialLetter/Service/Data.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                            if ($Salutation !== 'Herr' && $Salutation !== 'Frau') {
                                                                                $isReady = false;
                                                                            }
                                    Severity: Major
                                    Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                          if ($tblPerson->getId() !== $tblGuardian->getServiceTblPersonFrom()->getId()) {
                                                                              $GuardianList[] = $tblGuardian->getServiceTblPersonFrom();
                                                                          }
                                      Severity: Major
                                      Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if (!empty($ToPersonChooseList)) {
                                        
                                                                            $count = 0;
                                                                            foreach ($ToPersonChooseList as $ToPersonChoose) {
                                        
                                        
                                        Severity: Major
                                        Found in Application/Reporting/SerialLetter/Service.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language