Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($tblLeaveStudent && $tblLeaveStudent->isApproved()) {
$selectComplete->setDisabled();
}
Avoid deeply nested control flow statements. Open
Open
if (!isset($tblGradeTypeList[$tblGradeType->getId()])) {
$tblGradeTypeList[$tblGradeType->getId()] = $tblGradeType;
$columnTable['GradeType' . $tblGradeType->getId()] = $tblGradeType->getName();
}
Avoid deeply nested control flow statements. Open
Open
if (!$isMuted) {
$this->getTemplateInformation($tblPrepareItem, $tblPerson, $studentTable,
$columnTable,
$Data,
$CertificateList);
Avoid deeply nested control flow statements. Open
Open
if ($tblLeaveAdditionalGrade
&& $tblLeaveAdditionalGrade->getGrade() !== null
&& $tblLeaveAdditionalGrade->getGrade() !== ''
) {
$value = str_pad($tblLeaveAdditionalGrade->getGrade(),2, 0, STR_PAD_LEFT);
Avoid deeply nested control flow statements. Open
Open
if (!isset($studentTable[$personId][$columnKey])) {
$studentTable[$personId][$columnKey] = '';
}
Avoid deeply nested control flow statements. Open
Open
if (isset($tblSubjectList[$tblCurrentSubject->getId()])) {
$Global = $this->getGlobal();
$gradeList = array();
foreach ($tblSubjectList[$tblCurrentSubject->getId()] as $testId => $value) {
Avoid deeply nested control flow statements. Open
Open
if (($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$tblPerson))
) {
if (($tblCertificate = $tblPrepareStudent->getServiceTblCertificate())) {
continue;
Avoid deeply nested control flow statements. Open
Open
if ($type->getName() == 'Gymnasium'
&& (($tblLevel = $tblDivision->getTblLevel()))
&& ($tblLevel->getName() == '11' || $tblLevel->getName() == '12')
) {
$schoolTypeList[$type->getId()][$tblDivision->getId()] = $tblDivision->getDisplayName();
Avoid deeply nested control flow statements. Open
Open
if (($tblPrepareStudent = Prepare::useService()->getPrepareStudentBy($tblPrepare,
$tblPerson))
&& $tblPrepareStudent->isApproved()
) {
$countApproved++;
Avoid deeply nested control flow statements. Open
Open
if ($tblConsumerBySession) {
// Eigene Vorlage
if (($certificateList = $this->getPossibleCertificates($tblPrepare, $tblPerson,
$tblConsumerBySession))
) {
Avoid deeply nested control flow statements. Open
Open
if ($tblPrepareInformation->getField() == 'Remark') {
$Global->POST['Remarks'][$tblPerson->getId()] = $tblPrepareInformation->getValue();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblLeaveAdditionalGrade) {
$global->POST['Data'][$midTerm][$tblSubject->getId()] = $tblLeaveAdditionalGrade->getGrade();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblStudentTransfer) {
$tblCourse = $tblStudentTransfer->getServiceTblCourse();
if ($tblCourse) {
$course = $tblCourse->getName();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolTypePrimary) {
$this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
$tblSchoolTypePrimary,
null, true);
if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '2'))) {
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolTypePrimary) {
$this->updateCertificate($tblCertificate, $tblCertificateTypeYear, $tblSchoolTypePrimary,
null, false);
if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
if (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypeSecondary, '2'))) {
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolTypePrimary) {
$this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
$tblSchoolTypePrimary,
null, true);
if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolTypeSecondary) {
$this->updateCertificate($tblCertificate, $tblCertificateTypeHalfYear,
$tblSchoolTypeSecondary,
null, true);
if (!$this->getCertificateLevelAllByCertificate($tblCertificate)) {
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 1600);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateGradeAll($tblCertificate)) {
$this->setCertificateGradeAllStandard($tblCertificate);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 3500);
}