Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($tblLeaveStudent && $tblLeaveStudent->isApproved()) {
$gradeText->setDisabled();
}
Avoid deeply nested control flow statements. Open
Open
if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {
$studentTable[$tblPerson->getId()] = array(
'Number' => count($studentTable) + 1,
'Name' => $tblPerson->getLastFirstName()
Avoid deeply nested control flow statements. Open
Open
if (!isset($divisionList[$tblDivisionItem->getId()])) {
$divisionList[$tblDivisionItem->getId()] = $tblDivisionItem;
}
Avoid deeply nested control flow statements. Open
Open
if ($tblGradeTextList) {
$studentTable[$tblPerson->getId()]['Text'] = (new SelectBox('Data[' . $tblPrepareStudent->getId() . '][Text]',
'',
array(TblGradeText::ATTR_NAME => $tblGradeTextList)))->setDisabled();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblGradeTextList) {
$studentTable[$tblPerson->getId()]['Text'] = (new SelectBox('Data[' . $tblPrepareStudent->getId() . '][Text]',
'',
array(TblGradeText::ATTR_NAME => $tblGradeTextList)))->setTabIndex($tabIndex++);
}
Avoid deeply nested control flow statements. Open
Open
if (!method_exists($Certificate, 'get' . $Type)) {
if (isset($FormField[$PlaceholderName])) {
if (isset($FormLabel[$PlaceholderName])) {
$Label = $FormLabel[$PlaceholderName];
} else {
Avoid deeply nested control flow statements. Open
Open
if ($tblDivisionStudentAll) {
foreach ($tblDivisionStudentAll as $tblPerson) {
if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {
// nur Schüler der ausgewählten Klasse
if (isset($divisionPersonList[$tblPerson->getId()])) {
Avoid deeply nested control flow statements. Open
Open
if (!$hasRemarkText
&& ($tblConsumer = Consumer::useService()->getConsumerBySession())
&& $tblConsumer->getAcronym() == 'EVSC'
&& ($tblCertificateType = $tblCertificate->getTblCertificateType())
&& $tblCertificateType->getIdentifier() == 'YEAR'
Avoid deeply nested control flow statements. Open
Open
if (!$hasTransfer) {
$Global->POST['Data'][$tblPrepareStudent->getId()]['Transfer'] = 1;
}
Avoid deeply nested control flow statements. Open
Open
if (!method_exists($Certificate, 'get' . $Type)) {
if (isset($FormField[$PlaceholderName])) {
if (isset($FormLabel[$PlaceholderName])) {
$Label = $FormLabel[$PlaceholderName];
} else {
Avoid deeply nested control flow statements. Open
Open
if ($tblCertificate) {
$tblLeaveStudent = Prepare::useService()->createLeaveStudent(
$tblPerson,
$tblDivision,
$tblCertificate
Avoid deeply nested control flow statements. Open
Open
if ($tblFirstPeriod->getId() == $tblCurrentPeriod->getId()) {
$Global->POST['Data']['Type'] = Generator::useService()->getCertificateTypeByIdentifier('HALF_YEAR');
} elseif ($tblSecondPeriod->getId() == $tblCurrentPeriod->getId()) {
$Global->POST['Data']['Type'] = Generator::useService()->getCertificateTypeByIdentifier('YEAR');
}
Method getTemplateInformation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPrepareCertificate $tblPrepareCertificate,
TblPerson $tblPerson,
&$studentTable,
&$columnTable,
&$Data,
Avoid deeply nested control flow statements. Open
Open
if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {
$studentTable[$tblPerson->getId()] = array(
'Number' => count($studentTable) + 1,
'Name' => $tblPerson->getLastFirstName()
. ($tblGroup
Avoid deeply nested control flow statements. Open
Open
if ($tblPrepareStudent->isApproved()) {
$textArea->setDisabled();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblStudentTransfer) {
$tblCourse = $tblStudentTransfer->getServiceTblCourse();
if ($tblCourse) {
$course = $tblCourse->getName();
if ($course == 'Hauptschule') {
Avoid deeply nested control flow statements. Open
Open
if (($tblDivisionItem = $tblPrepareCertificate->getServiceTblDivision())
&& isset($divisionList[$tblDivisionItem->getId()])
) {
if (($tblPrepareStudentList = Prepare::useService()->getPrepareStudentAllByPrepare($tblPrepareCertificate))) {
foreach ($tblPrepareStudentList as $tblPrepareStudent) {
Avoid deeply nested control flow statements. Open
Open
if (($tblGradeTypeItem = $tblTest->getServiceTblGradeType())) {
if (!isset($tblGradeTypeList[$tblGradeTypeItem->getId()])) {
$tblGradeTypeList[$tblGradeTypeItem->getId()] = $tblGradeTypeItem;
if ($tblCurrentGradeType && !$tblNextGradeType) {
$tblNextGradeType = $tblGradeTypeItem;
Avoid deeply nested control flow statements. Open
Open
if ($tblPrepareInformationAll) {
foreach ($tblPrepareInformationAll as $tblPrepareInformation) {
if ($tblPrepareInformation->getField() == 'Team' || $tblPrepareInformation->getField() == 'TeamExtra') {
$isTeamSet = true;
}
Avoid deeply nested control flow statements. Open
Open
if ($tblSubjectStudentAllByDivisionSubject) {
foreach ($tblSubjectStudentAllByDivisionSubject as $tblSubjectStudent) {
$tblPerson = $tblSubjectStudent->getServiceTblPerson();
if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {