Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if (preg_match_all('!\d+!', $Street, $matches)) {
$pos = strpos($Street, $matches[0][0]);
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) {
$cityDistrict = trim(substr($cityName, $pos));
$cityName = trim(substr($cityName, 0, $pos));
}
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 (($tblCommon = Common::useService()->getCommonByPerson($tblRelationship->getServiceTblPersonFrom()))
&& ($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())
) {
if ($tblCommonBirthDates->getGender() == TblCommonBirthDates::VALUE_GENDER_FEMALE) {
$tblMother = $tblRelationship->getServiceTblPersonFrom();
Avoid deeply nested control flow statements. Open
Open
if ($streetName && $streetNumber && $zipCode && $city) {
Address::useService()->insertAddressToCompany(
$tblCompany,
$streetName,
$streetNumber,
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 ($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 ($tblSchoolType) {
if ($division != '10') {
$pos = 1;
$level = substr($division, 0, $pos);
$division = substr($division, $pos);
Avoid deeply nested control flow statements. Open
Open
if ($tblPeriod) {
Term::useService()->insertYearPeriod($tblYear, $tblPeriod);
}
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'LRS') !== false
|| strpos($integration, 'Rechtschreibschwäche') !== false
) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('LRS');
Student::useService()->addStudentDisorder($tblStudent,
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '2') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(1);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
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 !== null) {
$streetName = trim(substr($street, 0, $pos));
$streetNumber = trim(substr($street, $pos));
}
Avoid deeply nested control flow statements. Open
Open
if (preg_match_all('!\d+!', $street, $matches)) {
$pos = strpos($street, $matches[0][0]);
if ($pos !== null) {
$streetName = trim(substr($street, 0, $pos));
$streetNumber = trim(substr($street, $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 ($subjectLanguage !== '') {
if ($subjectLanguage === 'EN'
|| $subjectLanguage === 'Englisch'
) {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
Avoid deeply nested control flow statements. Open
Open
if ($courseName == 'GK') {
$course = SelectBoxItem::COURSE_BASIC;
} elseif ($courseName == 'LK') {
$course = SelectBoxItem::COURSE_ADVANCED;
}
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 ($division !== '') {
$tblYear = Term::useService()->insertYear('20'.$year.'/'.($year + 1));
if ($tblYear) {
$tblPeriodList = Term::useService()->getPeriodAllByYear($tblYear);
if (!$tblPeriodList) {