DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                            if ($tblLeaveStudent && $tblLeaveStudent->isApproved()) {
                                $selectComplete->setDisabled();
                            }
Severity: Major
Found in Application/Education/Certificate/Prepare/Frontend.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    if (!isset($tblGradeTypeList[$tblGradeType->getId()])) {
                                        $tblGradeTypeList[$tblGradeType->getId()] = $tblGradeType;
                                        $columnTable['GradeType' . $tblGradeType->getId()] = $tblGradeType->getName();
                                    }
    Severity: Major
    Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if (!$isMuted) {
                                          $this->getTemplateInformation($tblPrepareItem, $tblPerson, $studentTable,
                                              $columnTable,
                                              $Data,
                                              $CertificateList);
      Severity: Major
      Found in Application/Education/Certificate/Prepare/Frontend.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ($tblLeaveAdditionalGrade
                                    && $tblLeaveAdditionalGrade->getGrade() !== null
                                    && $tblLeaveAdditionalGrade->getGrade() !== ''
                                ) {
                                    $value = str_pad($tblLeaveAdditionalGrade->getGrade(),2, 0, STR_PAD_LEFT);
        Severity: Major
        Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                                  if (!isset($studentTable[$personId][$columnKey])) {
                                                      $studentTable[$personId][$columnKey] = '';
                                                  }
          Severity: Major
          Found in Application/Education/Certificate/Prepare/Frontend.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if (isset($tblSubjectList[$tblCurrentSubject->getId()])) {
                                                $Global = $this->getGlobal();
                                                $gradeList = array();
            
                                                foreach ($tblSubjectList[$tblCurrentSubject->getId()] as $testId => $value) {
            Severity: Major
            Found in Application/Education/Certificate/Prepare/Frontend.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if (($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                  $tblPerson))
                                              ) {
                                                  if (($tblCertificate = $tblPrepareStudent->getServiceTblCertificate())) {
                                                      continue;
              Severity: Major
              Found in Application/Education/Certificate/Generate/Service.php - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                    if ($type->getName() == 'Gymnasium'
                                                        && (($tblLevel = $tblDivision->getTblLevel()))
                                                        && ($tblLevel->getName() == '11' || $tblLevel->getName() == '12')
                                                    ) {
                                                        $schoolTypeList[$type->getId()][$tblDivision->getId()] = $tblDivision->getDisplayName();
                Severity: Major
                Found in Application/Education/Certificate/Generate/Frontend.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if (($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                              $tblPerson))
                                                          && $tblPrepareStudent->isApproved()
                                                      ) {
                                                          $countApproved++;
                  Severity: Major
                  Found in Application/Education/Certificate/Approve/Frontend.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if ($tblConsumerBySession) {
                                                        // Eigene Vorlage
                                                        if (($certificateList = $this->getPossibleCertificates($tblPrepare, $tblPerson,
                                                            $tblConsumerBySession))
                                                        ) {
                    Severity: Major
                    Found in Application/Education/Certificate/Generate/Service.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                          if ($tblPrepareInformation->getField() == 'Remark') {
                                                              $Global->POST['Remarks'][$tblPerson->getId()] = $tblPrepareInformation->getValue();
                                                          }
                      Severity: Major
                      Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if ($tblLeaveAdditionalGrade) {
                                                    $global->POST['Data'][$midTerm][$tblSubject->getId()] = $tblLeaveAdditionalGrade->getGrade();
                                                }
                        Severity: Major
                        Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if ($tblStudentTransfer) {
                                                                  $tblCourse = $tblStudentTransfer->getServiceTblCourse();
                                                                  if ($tblCourse) {
                                                                      $course = $tblCourse->getName();
                                                                  }
                          Severity: Major
                          Found in Application/Education/Certificate/Approve/Frontend.php - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ($tblSchoolTypePrimary) {
                                                        $this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
                                                            $tblSchoolTypePrimary,
                                                            null, true);
                                                        if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '2'))) {
                            Severity: Major
                            Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ($tblSchoolTypePrimary) {
                                                          $this->updateCertificate($tblCertificate, $tblCertificateTypeYear, $tblSchoolTypePrimary,
                                                              null, false);
                                                          if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
                                                              if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypeSecondary, '2'))) {
                              Severity: Major
                              Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ($tblSchoolTypePrimary) {
                                                            $this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
                                                                $tblSchoolTypePrimary,
                                                                null, true);
                                                            if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
                                Severity: Major
                                Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ($tblSchoolTypeSecondary) {
                                                              $this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
                                                                  $tblSchoolTypeSecondary,
                                                                  null, true);
                                                              if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
                                  Severity: Major
                                  Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
                                                                $this->createCertificateField($tblCertificate, $FieldName, 1600);
                                                            }
                                    Severity: Major
                                    Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if (!$this->getCertificateGradeAll($tblCertificate)) {
                                                                  $this->setCertificateGradeAllStandard($tblCertificate);
                                                              }
                                      Severity: Major
                                      Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
                                                                    $this->createCertificateField($tblCertificate, $FieldName, 3500);
                                                                }
                                        Severity: Major
                                        Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language