Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($Number, '01')) {
$tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(4);
}
Avoid deeply nested control flow statements. Open
Open
if ($occupationMother !== '') {
Custody::useService()->insertMeta(
$tblPersonMother,
$occupationMother,
'',
Avoid deeply nested control flow statements. Open
Open
if ($phoneNumber != '') {
$tblType = Phone::useService()->getTypeById(3);
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(4);
}
Avoid deeply nested control flow statements. Open
Open
if ($pos !== false) {
$cityDistrict = trim(substr($cityName, $pos + 4));
$cityName = trim(substr($cityName, 0, $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 ($subjectLanguage !== '') {
if ($subjectLanguage === 'EN'
|| $subjectLanguage === 'Englisch'
) {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'Hören') !== false) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Gehörschwierigkeiten');
if ($tblStudentDisorderType) {
Student::useService()->addStudentDisorder($tblStudent,
$tblStudentDisorderType);
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($Number, '01')) {
$tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(4);
}
Avoid deeply nested control flow statements. Open
Open
if ($pos !== false) {
$cityDistrict = trim(substr($cityName, $pos + 4));
$cityName = trim(substr($cityName, 0, $pos));
}
Avoid deeply nested control flow statements. Open
Open
if ((Common::useService()->updateMetaService($tblPerson, $Meta))) {
$countStudent++;
}
Avoid deeply nested control flow statements. Open
Open
if ($tblSchoolType) {
$tblLevel = Division::useService()->insertLevel($tblSchoolType, $level);
if ($tblLevel) {
$tblDivision = Division::useService()->insertDivision(
$tblYear,
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(7);
$pos = strpos($phoneNumber, " ");
if ($pos !== false) {
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 ($tblSubject) {
Student::useService()->addStudentSubject(
$tblStudent,
Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'),
Student::useService()->getStudentSubjectRankingByIdentifier('1'),
Avoid deeply nested control flow statements. Open
Open
if ($integration === 'Diskalkulie') {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Dyskalkulie');
Student::useService()->addStudentDisorder($tblStudent,
$tblStudentDisorderType);
} elseif ($integration === 'LRS') {
Avoid deeply nested control flow statements. Open
Open
if (!$tblSalutation) {
$errorList[] = array(
'RowCount' => $rowCount,
'Message' => 'Die Anrede: ' . $salutation . ' konnte nicht gefunden werden.',
'Result' => 'Die Person wird ohne Anrede angelegt.'
Avoid deeply nested control flow statements. Open
Open
if ($mailAddress != '') {
Mail::useService()->insertMailToPerson(
$tblPerson,
$mailAddress,
Mail::useService()->getTypeById(1),
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 (0 === strpos($Number, '01')) {
$tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(2);
}