Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if (trim($Document->getValue($Document->getCell($Location['Sorgeberechtigter1_Wohnort'],
$RunY))) != ''
) {
$Street = trim($Document->getValue($Document->getCell($Location['Sorgeberechtigter1_Straße'],
$RunY)));
Avoid deeply nested control flow statements. Open
Open
if ($phoneLocation) {
$phoneNumber = trim($Document->getValue($Document->getCell($phoneLocation,
$RunY)));
if ($phoneNumber != '') {
$tblType = Phone::useService()->getTypeById(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 ($leaveDate !== '' && date_create($leaveDate) !== false) {
$tblStudentTransferType = Student::useService()->getStudentTransferTypeByIdentifier('Leave');
Student::useService()->insertStudentTransfer(
$tblStudent,
$tblStudentTransferType,
Avoid deeply nested control flow statements. Open
Open
if ($tblPersonFather !== null) {
Address::useService()->insertAddressToPerson(
$tblPersonFather, $StreetName, $StreetNumber, $cityCode, $cityName,
$cityDistrict, ''
);
Avoid deeply nested control flow statements. Open
Open
if ($focus === 'HÖ') {
$tblStudentFocusType = Student::useService()->getStudentFocusTypeByName('Hören');
Student::useService()->addStudentFocus($tblStudent,
$tblStudentFocusType);
}
Avoid deeply nested control flow statements. Open
Open
if (( $company = Company::useService()->getCompanyByDescription(trim(
$Document->getValue($Document->getCell($Location['Schüler_abgebende_Schule_ID'],
$RunY)))) )
) {
$leaveSchool = $company;
Avoid deeply nested control flow statements. Open
Open
if ($subjectReligion !== '') {
if ($subjectReligion === 'ETH') {
$tblSubject = Subject::useService()->getSubjectByAcronym('ETH');
} elseif ($subjectReligion === 'RE/e') {
$tblSubject = Subject::useService()->getSubjectByAcronym('REV');
Avoid deeply nested control flow statements. Open
Open
if ($pos !== false) {
$firstName = trim(substr($motherFullName, 0, $pos));
$lastName = trim(substr($motherFullName, $pos));
$tblPersonMotherExists = Person::useService()->existsPerson(
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phone, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
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 ($phoneNumber != '') {
$tblType = Phone::useService()->getTypeById(1);
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Avoid deeply nested control flow statements. Open
Open
if (( $company = Company::useService()->getCompanyByDescription(trim(
$Document->getValue($Document->getCell($Location['Schüler_aufnehmende_Schule_ID'],
$RunY)))) )
) {
$arriveSchool = $company;
Avoid deeply nested control flow statements. Open
Open
for ($i = 1; $i < 3; $i++) {
$PhoneNumber = trim($Document->getValue($Document->getCell($Location['Telefon'.$i],
$RunY)));
if ($PhoneNumber != '') {
Phone::useService()->insertPhoneToPerson($tblPerson, $PhoneNumber,
Avoid deeply nested control flow statements. Open
Open
if ($pos !== false) {
$firstName = trim(substr($fatherFullName, 0, $pos));
$lastName = trim(substr($fatherFullName, $pos));
$tblPersonFatherExists = Person::useService()->existsPerson(
Avoid deeply nested control flow statements. Open
Open
if ($tblPersonFather !== null) {
Address::useService()->insertAddressToPerson(
$tblPersonFather, $StreetName, $StreetNumber, $cityCode, $cityName,
$cityDistrict, ''
);
Avoid deeply nested control flow statements. Open
Open
if ($pos !== false) {
$cityDistrict = trim(substr($cityName, $pos));
$cityName = trim(substr($cityName, 0, $pos));
}
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 ($pos !== false) {
$firstName = trim(substr($fatherFullName, 0, $pos));
$lastName = trim(substr($fatherFullName, $pos));
$tblPersonFatherExists = Person::useService()->existsPerson(
Avoid deeply nested control flow statements. Open
Open
if (!$tblPeriodList) {
// firstTerm
$tblPeriod = Term::useService()->insertPeriod(
'1. Halbjahr',
'01.08.20' . $year,