DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                        if ($tblSchoolTypePrimary) {
                            $this->updateCertificate($tblCertificate, $tblCertificateTypeYear, $tblSchoolTypePrimary);
                            if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
                                if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '2'))) {
                                    $this->createCertificateLevel($tblCertificate, $tblLevel);
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, 220);
                            }
    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);
                                  if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
                                      if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '1'))) {
                                          $this->createCertificateLevel($tblCertificate, $tblLevel);
      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)) {
                                        if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypeSecondary, '5'))) {
        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);
                                  }
          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, 1200);
                                    }
            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, 820);
                                      }
              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, 2700);
                                          }
                  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 (!$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 (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
                                                      $this->createCertificateField($tblCertificate, $FieldName, 2500);
                                                  }
                          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, 1000);
                                                    }
                            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->getCertificateLevelAllByCertificate($tblCertificate)) {
                                                          if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypeSecondary, '7'))) {
                                                              $this->createCertificateLevel($tblCertificate, $tblLevel);
                                                          }
                                                          if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypeSecondary, '8'))) {
                              Severity: Major
                              Found in Application/Education/Certificate/Generator/Service/Data.php - About 45 mins to fix

                                Method updateCertificate has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        TblCertificate $tblCertificate,
                                        TblCertificateType $tblCertificateType = null,
                                        TblType $tblSchoolType = null,
                                        TblCourse $tblCourse = null,
                                        $IsInformation = false,
                                Severity: Minor
                                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)) {
                                                                  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 (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
                                                                $this->createCertificateField($tblCertificate, $FieldName, 450);
                                                            }
                                    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->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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language