Showing 5,014 of 7,620 total issues
Consider simplifying this complex logical expression. Open
Open
if ($tblGradeItem && $gradeValue === ''
&& !isset($value['Attendance'])
&& (!isset($value['Text']) || (isset($value['Text']) && !$this->getGradeTextById($value['Text'])))
) {
$errorNoGrade[] = new Container(new Bold($tblPerson->getLastFirstName()));
Consider simplifying this complex logical expression. Open
Open
if (($date = $tblTaskItem->getDate())
&& ($tblPeriod = $tblTest->getServiceTblPeriod())
&& ($toDatePeriod = $tblPeriod->getToDate())
&& ($dateTimeTask = new \DateTime($date))
&& ($toDateTimePeriod = new \DateTime($toDatePeriod))
Consider simplifying this complex logical expression. Open
Open
if ($tblTest->getDate()
&& ($testDate = (new \DateTime($tblTest->getDate())))
&& ($toDateTimeTask = new \DateTime($appointedDateTask->getToDate()))
&& ($nowDateTime = (new \DateTime('now')))
&& $testDate <= $toDateTimeTask
Consider simplifying this complex logical expression. Open
Open
if ($tblScoreRuleSubjectGroup->getServiceTblDivision()
&& $tblScoreRuleSubjectGroup->getServiceTblSubject()
&& $tblScoreRuleSubjectGroup->getServiceTblSubjectGroup()
&& !isset($Data[$tblScoreRuleSubjectGroup->getServiceTblDivision()->getId()]
[$tblScoreRuleSubjectGroup->getServiceTblSubject()->getId()]
Consider simplifying this complex logical expression. Open
Open
if ($tblLastDivision
&& $tblCurrentDivision
&& ($tblLastYear = $tblLastDivision->getServiceTblYear())
&& ($tblCurrentYear = $tblCurrentDivision->getServiceTblYear())
&& ($tblLastDivisionSubjectList = Division::useService()->getDivisionSubjectAllByPersonAndYear($tblPerson,
Consider simplifying this complex logical expression. Open
Open
if (($tblConsumer = Consumer::useService()->getConsumerBySession())
&& $tblConsumer->getAcronym() == 'EVSR'
&& ($tblCertificateType = $tblGenerateCertificate->getServiceTblCertificateType())
&& $tblCertificateType->getIdentifier() != 'RECOMMENDATION'
&& ($tblSetting = ConsumerSetting::useService()->getSetting(
Consider simplifying this complex logical expression. Open
Open
if (($tblLevel = $tblDivision->getTblLevel())
&& !$tblLevel->getIsChecked()
&& ($tblType = $tblLevel->getServiceTblType())
&& ($tblType->getName() == 'Mittelschule / Oberschule'
|| $tblType->getName() == 'Gymnasium')
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepare->getServiceTblGenerateCertificate()
&& ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
&& ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
&& ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$this->tblPerson))
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepare->getServiceTblGenerateCertificate()
&& ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
&& ($tblCertificateType->getIdentifier() == 'YEAR')
&& ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$this->tblPerson))
Consider simplifying this complex logical expression. Open
Open
if (($tblLeaveStudent = $this->tblLeaveStudent)
&& (($tblPerson = $tblLeaveStudent->getServiceTblPerson()))
&& ($tblStudent = $tblPerson->getStudent())
&& ($tblStudentSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'))
&& ($tblStudentSubjectRanking = Student::useService()->getStudentSubjectRankingByIdentifier('1'))
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepareStudentLevelTen
&& $tblPrepareStudentLevelTen->getTblPrepareCertificate()
&& $tblPrepareStudentLevelTen->getServiceTblPerson()
&& $tblPrepareStudentLevelTen->getTblPrepareCertificate()->getServiceTblDivision()
&& ($tblTestType = Evaluation::useService()->getTestTypeByIdentifier('APPOINTED_DATE_TASK'))
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepare->getServiceTblGenerateCertificate()
&& ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
&& ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
&& ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$tblPerson))
Consider simplifying this complex logical expression. Open
Open
if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
&& ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
&& $tblPrepareStudent->getServiceTblCertificate()
&& ($tblDivisionItem = $tblPrepare->getServiceTblDivision())
&& ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
Consider simplifying this complex logical expression. Open
Open
if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
&& ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
&& $tblPrepareStudent->getServiceTblCertificate()
&& !$tblPrepareStudent->isPrinted()
&& ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
Consider simplifying this complex logical expression. Open
Open
if ($type->getName() == 'Gymnasium'
&& (($tblLevel = $tblDivision->getTblLevel()))
&& $tblLevel->getName() == '12'
) {
$schoolTypeList[$type->getId()][$tblDivision->getId()] = $tblDivision->getDisplayName();
Consider simplifying this complex logical expression. Open
Open
if (($tblDivision = $tblPrepare->getServiceTblDivision())
&& ($tblLevel = $tblDivision->getTblLevel())
&& ($tblSchoolType = $tblLevel->getServiceTblType())
&& $tblPrepare->getServiceTblGenerateCertificate()
&& ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
Consider simplifying this complex logical expression. Open
Open
if (($tblPerson = $tblPrepareStudent->getServiceTblPerson())
&& ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
&& $tblPrepareStudent->getServiceTblCertificate()
&& ($tblDivisionItem = $tblPrepare->getServiceTblDivision())
&& ($tblDivisionStudent = Division::useService()->getDivisionStudentByDivisionAndPerson($tblDivisionItem, $tblPerson))
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepare->getServiceTblGenerateCertificate()
&& ($tblCertificateType = $tblPrepare->getServiceTblGenerateCertificate()->getServiceTblCertificateType())
&& ($tblCertificateType->getIdentifier() == 'MID_TERM_COURSE')
&& ($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$tblPerson))
Consider simplifying this complex logical expression. Open
Open
if ($tblPrepareStudent->isPrinted()
&& ($tblPerson = $tblPrepareStudent->getServiceTblPerson())
&& ((($tblPrepareInformationTransfer = Prepare::useService()->getPrepareInformationBy(
$tblPrepare, $tblPerson, 'Transfer'
))
Consider simplifying this complex logical expression. Open
Open
if (($tblDivision = Division::useService()->getDivisionById($DivisionId))
&& ($tblLevel = $tblDivision->getTblLevel())
&& ($tblType = $tblLevel->getServiceTblType())
&& $tblType->getName() == 'Gymnasium'
&& ($tblLevel->getName() == '11'