Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
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);
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 700);
}
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->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);
Avoid deeply nested control flow statements. Open
Open
if ($tblCertificateType->getIdentifier() != 'GRADE_INFORMATION'
&& $type->getName() == 'Gymnasium'
&& (($tblLevel = $tblDivision->getTblLevel()))
&& ($tblLevel->getName() == '11' || $tblLevel->getName() == '12')
) {
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)){
$this->createCertificateField($tblCertificate, $FieldName, 500);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateSubjectAll($tblCertificate)) {
$this->setCertificateSubject($tblCertificate, 'D', 1, 1);
$this->setCertificateSubject($tblCertificate, 'SU', 1, 2);
$this->setCertificateSubject($tblCertificate, 'MA', 2, 1);
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 2900);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 3700);
}
Avoid deeply nested control flow statements. Open
Open
if (($tblStudent = Student::useService()->getStudentByPerson($tblPerson))
&& ($tblTransferType = Student::useService()->getStudentTransferTypeByIdentifier('PROCESS'))
&& ($tblStudentTransfer = Student::useService()->getStudentTransferByType($tblStudent,
$tblTransferType))
&& ($tblCourse = $tblStudentTransfer->getServiceTblCourse())
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolTypePrimary) {
$this->updateCertificate($tblCertificate, $tblCertificateTypeYear,
$tblSchoolTypePrimary,
null, false);
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 (($tblLevel = Division::useService()->getLevelBy($tblSchoolTypePrimary, '3'))) {
Avoid deeply nested control flow statements. Open
Open
if ($tblCertificate && !$this->getCertificateGradeAll($tblCertificate)) {
$this->setCertificateGradeAllStandard($tblCertificate);
}
Avoid deeply nested control flow statements. Open
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);
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 300);
}
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($tblSchoolTypePrimary, '1'))) {
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 (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 2600);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 2100);
}
Avoid deeply nested control flow statements. Open
Open
if (!$this->getCertificateFieldByCertificateAndField($tblCertificate, $FieldName)) {
$this->createCertificateField($tblCertificate, $FieldName, 1900);
}