Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($subjectLanguage !== '') {
if ($subjectLanguage === 'EN'
|| $subjectLanguage === 'Englisch'
) {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
Avoid deeply nested control flow statements. Open
Open
if (!$tblPeriodList) {
// firstTerm
$tblPeriod = Term::useService()->insertPeriod(
'1. Halbjahr',
'01.08.20' . $year,
Avoid deeply nested control flow statements. Open
Open
if (($MailAddress = trim($Document->getValue($Document->getCell($Location['E-Mail Firma'],
$RunY)))) != ''
) {
$tblType = Mail::useService()->getTypeById(2);
Mail::useService()->insertMailToCompany
Avoid deeply nested control flow statements. Open
Open
if ($info !== '') {
$remark = 'Geschwister: ' . $info;
}
Avoid deeply nested control flow statements. Open
Open
if ($i == 1) {
$tblType = Phone::useService()->getTypeById(5);
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(6);
}
Avoid deeply nested control flow statements. Open
Open
if ($tblLevel) {
$tblDivision = Division::useService()->insertDivision(
$tblYear,
$tblLevel,
$division
Avoid deeply nested control flow statements. Open
Open
if ($pos !== null) {
$streetName = trim(substr($street, 0, $pos));
$streetNumber = trim(substr($street, $pos));
}
Avoid deeply nested control flow statements. Open
Open
if ($tblSubject) {
Student::useService()->addStudentSubject(
$tblStudent,
Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'),
Student::useService()->getStudentSubjectRankingByIdentifier('1'),
Avoid deeply nested control flow statements. Open
Open
if ($tblPeriod) {
Term::useService()->insertYearPeriod($tblYear, $tblPeriod);
}
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phone, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Method getPriceListByItemAndYear
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblItem $tblItem,
$Year,
$MonthFrom = '1',
$MonthTo = '12',
$DivisionId = '0',
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Avoid deeply nested control flow statements. Open
Open
if ($leaveSchool) {
GroupCompany::useService()->addGroupCompany(
GroupCompany::useService()->getGroupByMetaTable('COMMON'),
$leaveSchool
);
Avoid deeply nested control flow statements. Open
Open
if ($remark != '') {
if (($tblCommon = $tblPerson->getCommon())) {
Common::useService()->updateCommon($tblCommon, $tblCommon->getRemark() . "\n" . $remark);
} else {
Common::useService()->insertMeta(
Avoid deeply nested control flow statements. Open
Open
if ($infoNursery !== '') {
$remarkCommon .= ($remarkCommon == '' ? '' : " \n") . 'Kindergarten: ' . $infoNursery;
}
Avoid deeply nested control flow statements. Open
Open
if (isset($nameArrayCustody1[0])) {
$firstNameCustody1 = $nameArrayCustody1[0];
}
Avoid deeply nested control flow statements. Open
Open
if ($subjectReligion === 'ETH') {
$tblSubject = Subject::useService()->getSubjectByAcronym('ETH');
} elseif ($subjectReligion === 'RE/e') {
$tblSubject = Subject::useService()->getSubjectByAcronym('RE/E');
}
Avoid deeply nested control flow statements. Open
Open
if ($tblPeriod) {
Term::useService()->insertYearPeriod($tblYear, $tblPeriod);
}
Avoid deeply nested control flow statements. Open
Open
if (!$tblPeriodList) {
// firstTerm
$tblPeriod = Term::useService()->insertPeriod(
'1. Halbjahr',
'01.08.20' . $year,