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 ($tblDivision) {
Division::useService()->insertDivisionStudent($tblDivision, $tblPerson);
}
Avoid deeply nested control flow statements. Open
Open
if ($emailLocation) {
$mailAddress = trim($Document->getValue($Document->getCell($emailLocation,
$RunY)));
if ($mailAddress != '') {
Mail::useService()->insertMailToPerson(
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 ($tblSchoolType) {
if (strlen($division) == 2) {
$level = substr($division, 0, 1);
$division = substr($division, 1, 1);
$tblLevel = Division::useService()->insertLevel($tblSchoolType, $level);
Avoid deeply nested control flow statements. Open
Open
for ($i = 1; $i < 5; $i++) {
$subjectLanguage = trim($Document->getValue($Document->getCell($Location['Fächer_Fremdsprache'.$i],
$RunY)));
$tblSubject = false;
if ($subjectLanguage !== '') {
Avoid deeply nested control flow statements. Open
Open
if ($tblPersonMother !== null) {
Address::useService()->insertAddressToPerson(
$tblPersonMother, $StreetName, $StreetNumber, $cityCode, $cityName,
$cityDistrict, ''
);
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 ($tblPersonMother !== null) {
Address::useService()->insertAddressToPerson(
$tblPersonMother, $StreetName, $StreetNumber, $cityCode, $cityName,
$cityDistrict, ''
);
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');
}
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 ($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 ($enrollmentDate !== '' && date_create($enrollmentDate) !== false) {
$tblStudentTransferType = Student::useService()->getStudentTransferTypeByIdentifier('Enrollment');
Student::useService()->insertStudentTransfer(
$tblStudent,
$tblStudentTransferType,
Avoid deeply nested control flow statements. Open
Open
if ($arriveDate !== '' && date_create($arriveDate) !== false) {
$tblStudentTransferType = Student::useService()->getStudentTransferTypeByIdentifier('Arrive');
Student::useService()->insertStudentTransfer(
$tblStudent,
$tblStudentTransferType,
Avoid deeply nested control flow statements. Open
Open
if ($arriveDate !== '') {
$arriveDate = date('Y-m-d',
\PHPExcel_Shared_Date::ExcelToPHP($arriveDate));
$tblStudent = Student::useService()->insertStudent(
$tblPerson, ''
Avoid deeply nested control flow statements. Open
Open
if (trim($Document->getValue($Document->getCell($Location['Sorgeberechtigter2_Wohnort'],
$RunY))) != ''
) {
$Street = trim($Document->getValue($Document->getCell($Location['Sorgeberechtigter2_Straße'],
$RunY)));
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 (!$tblPeriodList) {
// firstTerm
$tblPeriod = Term::useService()->insertPeriod(
'1. Halbjahr',
'01.08.20' . $year,
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 ($PhoneNumber != '') {
Phone::useService()->insertPhoneToPerson($tblPerson, $PhoneNumber,
Phone::useService()->getTypeById(1), '');
}