DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Consider simplifying this complex logical expression.
Open

                        if ($tblGradeItem && $gradeValue === ''
                            && !isset($value['Attendance'])
                            && (!isset($value['Text']) || (isset($value['Text']) && !$this->getGradeTextById($value['Text'])))
                        ) {
                            $errorNoGrade[] = new Container(new Bold($tblPerson->getLastFirstName()));
Severity: Major
Found in Application/Education/Graduation/Gradebook/Service.php - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                                if (($date = $tblTaskItem->getDate())
                                    && ($tblPeriod = $tblTest->getServiceTblPeriod())
                                    && ($toDatePeriod = $tblPeriod->getToDate())
                                    && ($dateTimeTask = new \DateTime($date))
                                    && ($toDateTimePeriod = new \DateTime($toDatePeriod))
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                                                                                  if ($tblTest->getDate()
                                                                                      && ($testDate = (new \DateTime($tblTest->getDate())))
                                                                                      && ($toDateTimeTask = new \DateTime($appointedDateTask->getToDate()))
                                                                                      && ($nowDateTime = (new \DateTime('now')))
                                                                                      && $testDate <= $toDateTimeTask
      Severity: Major
      Found in Application/Education/Graduation/Gradebook/Frontend.php - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                        if ($tblScoreRuleSubjectGroup->getServiceTblDivision()
                            && $tblScoreRuleSubjectGroup->getServiceTblSubject()
                            && $tblScoreRuleSubjectGroup->getServiceTblSubjectGroup()
                            && !isset($Data[$tblScoreRuleSubjectGroup->getServiceTblDivision()->getId()]
                                [$tblScoreRuleSubjectGroup->getServiceTblSubject()->getId()]
        Severity: Major
        Found in Application/Education/Graduation/Gradebook/ScoreRule/Service.php - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if ($tblLastDivision
                      && $tblCurrentDivision
                      && ($tblLastYear = $tblLastDivision->getServiceTblYear())
                      && ($tblCurrentYear = $tblCurrentDivision->getServiceTblYear())
                      && ($tblLastDivisionSubjectList = Division::useService()->getDivisionSubjectAllByPersonAndYear($tblPerson,
          Severity: Major
          Found in Application/Education/Certificate/Prepare/Service.php - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                                            if (($tblConsumer = Consumer::useService()->getConsumerBySession())
                                                && $tblConsumer->getAcronym() == 'EVSR'
                                                && ($tblCertificateType = $tblGenerateCertificate->getServiceTblCertificateType())
                                                && $tblCertificateType->getIdentifier() != 'RECOMMENDATION'
                                                && ($tblSetting = ConsumerSetting::useService()->getSetting(
            Severity: Major
            Found in Application/Education/Certificate/Prepare/Service.php - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                                  if (($tblLevel = $tblDivision->getTblLevel())
                                      && !$tblLevel->getIsChecked()
                                      && ($tblType = $tblLevel->getServiceTblType())
                                      && ($tblType->getName() == 'Mittelschule / Oberschule'
                                          || $tblType->getName() == 'Gymnasium')
              Severity: Major
              Found in Application/Education/Certificate/Prepare/Frontend.php - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                                        if ($tblPrepare->getServiceTblGenerateCertificate()
                                            && ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
                                            && ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
                                            && ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                $this->tblPerson))
                Severity: Major
                Found in Application/Education/Certificate/Prepare/Abitur/BlockI.php - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                          if ($tblPrepare->getServiceTblGenerateCertificate()
                                              && ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
                                              && ($tblCertificateType->getIdentifier() == 'YEAR')
                                              && ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                  $this->tblPerson))
                  Severity: Major
                  Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if (($tblLeaveStudent = $this->tblLeaveStudent)
                                && (($tblPerson = $tblLeaveStudent->getServiceTblPerson()))
                                && ($tblStudent = $tblPerson->getStudent())
                                && ($tblStudentSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'))
                                && ($tblStudentSubjectRanking = Student::useService()->getStudentSubjectRankingByIdentifier('1'))
                    Severity: Major
                    Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if ($tblPrepareStudentLevelTen
                                  && $tblPrepareStudentLevelTen->getTblPrepareCertificate()
                                  && $tblPrepareStudentLevelTen->getServiceTblPerson()
                                  && $tblPrepareStudentLevelTen->getTblPrepareCertificate()->getServiceTblDivision()
                                  && ($tblTestType = Evaluation::useService()->getTestTypeByIdentifier('APPOINTED_DATE_TASK'))
                      Severity: Major
                      Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                                if ($tblPrepare->getServiceTblGenerateCertificate()
                                                    && ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
                                                    && ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
                                                    && ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                        $tblPerson))
                        Severity: Major
                        Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                  && ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
                                                  && $tblPrepareStudent->getServiceTblCertificate()
                                                  && ($tblDivisionItem = $tblPrepare->getServiceTblDivision())
                                                  && ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
                          Severity: Major
                          Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                                        if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                                            && ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
                                                                            && $tblPrepareStudent->getServiceTblCertificate()
                                                                            && !$tblPrepareStudent->isPrinted()
                                                                            && ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
                            Severity: Major
                            Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

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

                                Consider simplifying this complex logical expression.
                                Open

                                        if (($tblDivision = $tblPrepare->getServiceTblDivision())
                                            && ($tblLevel = $tblDivision->getTblLevel())
                                            && ($tblSchoolType = $tblLevel->getServiceTblType())
                                            && $tblPrepare->getServiceTblGenerateCertificate()
                                            && ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
                                Severity: Major
                                Found in Application/Education/Certificate/Generate/Service.php - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                      && ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
                                                      && $tblPrepareStudent->getServiceTblCertificate()
                                                      && ($tblDivisionItem = $tblPrepare->getServiceTblDivision())
                                                      && ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
                                  Severity: Major
                                  Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                            if ($tblPrepare->getServiceTblGenerateCertificate()
                                                                && ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
                                                                && ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
                                                                && ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
                                                                    $tblPerson))
                                    Severity: Major
                                    Found in Application/Document/Generator/Service.php - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                                              if ($tblPrepareStudent->isPrinted()
                                                                                  && ($tblPerson = $tblPrepareStudent->getServiceTblPerson())
                                                                                  && ((($tblPrepareInformationTransfer = Prepare::useService()->getPrepareInformationBy(
                                                                                              $tblPrepare, $tblPerson, 'Transfer'
                                                                                          ))
                                      Severity: Major
                                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if (($tblDivision = Division::useService()->getDivisionById($DivisionId))
                                                        && ($tblLevel = $tblDivision->getTblLevel())
                                                        && ($tblType = $tblLevel->getServiceTblType())
                                                        && $tblType->getName() == 'Gymnasium'
                                                        && ($tblLevel->getName() == '11'
                                        Severity: Major
                                        Found in Application/Education/Lesson/Division/Frontend.php - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language