DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                        if (!$this->getCertificateSubjectAll($tblCertificate)) {
                            $this->setCertificateSubject($tblCertificate, 'DE', 1, 1);
                            $this->setCertificateSubject($tblCertificate, 'EN', 1, 2);
                            $this->setCertificateSubject($tblCertificate, 'KU', 1, 3);
                            $this->setCertificateSubject($tblCertificate, 'MU', 1, 4);
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, 700);
                            }
    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->getCertificateSubjectAll($tblCertificate)) {
                                    $this->setCertificateSubject($tblCertificate, 'DE', 1, 1);
                                    $this->setCertificateSubject($tblCertificate, 'EN', 1, 2);
                                    $this->setCertificateSubject($tblCertificate, 'KU', 1, 3);
                                    $this->setCertificateSubject($tblCertificate, 'MU', 1, 4);
        Severity: Major
        Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if ($tblCertificateType->getIdentifier() != 'GRADE_INFORMATION'
                                                  && $type->getName() == 'Gymnasium'
                                                  && (($tblLevel = $tblDivision->getTblLevel()))
                                                  && ($tblLevel->getName() == '11' || $tblLevel->getName() == '12')
                                              ) {
          Severity: Major
          Found in Application/Education/Certificate/Generate/Frontend.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)){
                                        $this->createCertificateField($tblCertificate, $FieldName, 500);
                                    }
            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->getCertificateSubjectAll($tblCertificate)) {
                                          $this->setCertificateSubject($tblCertificate, 'D', 1, 1);
                                          $this->setCertificateSubject($tblCertificate, 'SU', 1, 2);
              
                                          $this->setCertificateSubject($tblCertificate, 'MA', 2, 1);
              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, 2900);
                                        }
                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, 3700);
                                          }
                  Severity: Major
                  Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                        if (($tblStudent = Student::useService()->getStudentByPerson($tblPerson))
                                                            && ($tblTransferType = Student::useService()->getStudentTransferTypeByIdentifier('PROCESS'))
                                                            && ($tblStudentTransfer = Student::useService()->getStudentTransferByType($tblStudent,
                                                                $tblTransferType))
                                                            && ($tblCourse = $tblStudentTransfer->getServiceTblCourse())
                    Severity: Major
                    Found in Application/Education/Certificate/Generate/Frontend.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if ($tblSchoolTypePrimary) {
                                                  $this->updateCertificate($tblCertificate, $tblCertificateTypeYear,
                                                      $tblSchoolTypePrimary,
                                                      null, false);
                                                  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 (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '3'))) {
                        Severity: Major
                        Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ($tblCertificate && !$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 ($tblCertificate && !$this->getCertificateSubjectAll($tblCertificate)) {
                                                        $this->setCertificateSubject($tblCertificate, 'DE', 1, 1);
                                                        $this->setCertificateSubject($tblCertificate, 'SU', 1, 2);
                                                        $this->setCertificateSubject($tblCertificate, 'KU', 1, 3);
                                                        $this->setCertificateSubject($tblCertificate, 'MU', 1, 4);
                            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, 300);
                                                      }
                              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($tblSchoolTypePrimary, '1'))) {
                                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 (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
                                                                $this->createCertificateField($tblCertificate, $FieldName, 2600);
                                                            }
                                    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, 2100);
                                                              }
                                      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, 1900);
                                                                }
                                        Severity: Major
                                        Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language