Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($tblGrade->getGrade() !== null && $tblGrade->getGrade() !== '') {
if ($tblSubject->getAcronym() == 'EN2') {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
}
Method updatePrepareData
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPrepareCertificate $tblPrepare,
$Date,
$Name,
TblTask $tblAppointedDateTask = null,
TblTask $tblBehaviorTask = null,
Method createPrepareAdditionalGradeForm
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IFormInterface $Form,
$Data,
TblPrepareCertificate $tblPrepareCertificate,
TblGroup $tblGroup = null,
TblPerson $tblPerson,
Avoid deeply nested control flow statements. Open
Open
if ($tblSubject->getAcronym() == 'EN2') {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
}
Method updateAbiturPreliminaryGrades
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IFormInterface $Form = null,
TblPerson $tblPerson,
TblPrepareCertificate $tblPrepare,
$GroupId = null,
$View = null,
Avoid deeply nested control flow statements. Open
Open
if (!$tblCertificateSubject
&& $tblPrepareGrade && $tblPrepareGrade->getGrade() != ''
) {
$grade = str_replace('+', '', $tblPrepareGrade->getGrade());
$grade = str_replace('-', '', $grade);
Avoid deeply nested control flow statements. Open
Open
if ($tblTestList) {
foreach ($tblTestList as $tblTest) {
$tblPrepareGrade = Gradebook::useService()->getGradeByTestAndStudent($tblTest,
$tblPerson);
if ($tblPrepareGrade) {
Method setYearGroupButtonList
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function setYearGroupButtonList($Route, $IsAllYears, $IsGroup, $YearId, &$tblYear, $HasAllYears = true)
Avoid deeply nested control flow statements. Open
Open
if (is_numeric($grade)) {
$gradeList[] = $grade;
}
Method updatePrepare
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPrepareCertificate $tblPrepare,
$Date,
$Name,
TblTask $tblAppointedDateTask = null,
TblTask $tblBehaviorTask = null,
Avoid deeply nested control flow statements. Open
Open
if (($tblCertificate = $tblPrepareStudent->getServiceTblCertificate())
&& !$tblCertificate->isInformation()
) {
$withTrend = false;
}
Method updatePrepareInformationList
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IFormInterface $Stage = null,
TblPrepareCertificate $tblPrepare,
TblGroup $tblGroup = null,
$Route,
$Data,
Avoid deeply nested control flow statements. Open
Open
if ($tblSubject) {
if ($tblSubjectGroup->isAdvancedCourse()) {
$advancedCourses[$tblSubject->getId()] = $tblSubject;
} else {
$basicCourses[$tblSubject->getId()] = $tblSubject;
Method updatePrepareGradeForBehavior
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPrepareCertificate $tblPrepare,
TblPerson $tblPerson,
TblDivision $tblDivision,
TblTestType $tblTestType,
TblGradeType $tblGradeType,
Method updatePrepareGradeForBehavior
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPrepareCertificate $tblPrepare,
TblPerson $tblPerson,
TblDivision $tblDivision,
TblTestType $tblTestType,
TblGradeType $tblGradeType,
Avoid deeply nested control flow statements. Open
Open
if (($tblSubject = $tblPrepareAdditionalGrade->getServiceTblSubject())) {
if (isset($Data[$midTerm][$tblSubject->getId()])) {
if (!$tblPrepareAdditionalGrade->isSelected()) {
(new Data($this->getBinding()))->updatePrepareAdditionalGrade(
$tblPrepareAdditionalGrade, $tblPrepareAdditionalGrade->getGrade(), true);
Avoid deeply nested control flow statements. Open
Open
if ($tblCourse->getName() == 'Hauptschule') {
$Content['P' . $personId]['Student']['Course']['Degree'] = 'Hauptschulabschlusses';
$Content['P' . $personId]['Student']['Course']['Name'] = 'Hauptschulbildungsgang';
} elseif ($tblCourse->getName() == 'Realschule') {
$Content['P' . $personId]['Student']['Course']['Degree'] = 'Realschulabschlusses';
Avoid deeply nested control flow statements. Open
Open
if (!$tblCertificateSubject
&& $tblGrade && $tblGrade->getGrade() != ''
) {
$grade = str_replace('+', '', $tblGrade->getGrade());
$grade = str_replace('-', '', $grade);
Avoid deeply nested control flow statements. Open
Open
if (!$isTeamSet) {
if (($tblStudent = $tblPerson->getStudent())
&& ($tblSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('TEAM'))
&& ($tblStudentSubjectList = Student::useService()->getStudentSubjectAllByStudentAndSubjectType(
$tblStudent, $tblSubjectType
Avoid deeply nested control flow statements. Open
Open
if (($tblDivisionSubject = Division::useService()->getDivisionSubjectByDivisionAndSubjectAndSubjectGroup(
$tblDivisionItem, $tblSubject, $tblSubjectGroup
))
&& (($tblSubjectStudent = Division::useService()->exitsSubjectStudent(
$tblDivisionSubject, $tblPerson