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 !== null) {
$streetName = trim(substr($street, 0, $pos));
$streetNumber = trim(substr($street, $pos));
}
Avoid deeply nested control flow statements. Open
Open
if ($subjectProfile === 'P/gw-WED') {
$tblSubject = Subject::useService()->getSubjectByAcronym('WED');
if (!$tblSubject) {
$tblSubject = Subject::useService()->insertSubject('WED',
'gesellschaftswissenschaftliches Profil / Wirtschaftsethik und Diakonie');
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 ($tblPersonMother) {
Phone::useService()->insertPhoneToPerson(
$tblPersonMother,
$phoneNumber,
$tblType,
Avoid deeply nested control flow statements. Open
Open
if ($focus === 'GE') {
$tblStudentFocusType = Student::useService()->getStudentFocusTypeByName('Geistige Entwicklung');
Student::useService()->addStudentFocus($tblStudent,
$tblStudentFocusType);
} elseif ($focus === 'LE'
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'Konzentr.-störung') !== false
|| strpos($integration, 'Konzentrationsstörung') !== false
) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Konzentrationsstörung');
Student::useService()->addStudentDisorder($tblStudent,
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '4') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(5);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
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 ($subjectReligion === 'ETH') {
$tblSubject = Subject::useService()->getSubjectByAcronym('ETH');
} elseif ($subjectReligion === 'RE/e') {
$tblSubject = Subject::useService()->getSubjectByAcronym('REV');
} elseif ($subjectReligion === 'RE/k') {
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 (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Avoid deeply nested control flow statements. Open
Open
if ($tblPersonMother !== null) {
$this->useContactAddress()->createAddressToPersonFromImport(
$tblPersonMother, $StreetName, $StreetNumber, $CityCode, $CityName
);
}
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'Autismus') !== false) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Autismus');
Student::useService()->addStudentDisorder($tblStudent,
$tblStudentDisorderType);
}
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 ($tblPersonFather) {
$tblCommon = Common::useService()->getCommonByPerson($tblPersonFather);
if ($tblCommon && $tblCommon->getTblCommonBirthDates()) {
if ($tblCommon->getTblCommonBirthDates()->getGender() == TblCommonBirthDates::VALUE_GENDER_FEMALE) {
$insuranceState = 5;
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '1') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(2);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
Avoid deeply nested control flow statements. Open
Open
if ($tblSubject) {
Student::useService()->addStudentSubject(
$tblStudent,
Student::useService()->getStudentSubjectTypeByIdentifier('PROFILE'),
Student::useService()->getStudentSubjectRankingByIdentifier('1'),
Avoid deeply nested control flow statements. Open
Open
if ($FatherFirstName !== '') {
$tblPersonFatherExists = $this->usePeoplePerson()->getPersonExists(
$FatherFirstName,
$LastName,
$CityCode
Avoid deeply nested control flow statements. Open
Open
if ($tblPeriod) {
Term::useService()->insertYearPeriod($tblYear, $tblPeriod);
}