Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(4);
}
Avoid deeply nested control flow statements. Open
Open
if ($remark !== '') {
$remark = 'Staatliche Schule: ' . $remark;
}
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '3') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(7);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
Avoid deeply nested control flow statements. Open
Open
if ($tblCompany && ($firstName != '' || $lastName != '')) {
if ($personId != '') {
if (($tblPerson = Person::useService()->getPersonById($personId))) {
if ($tblPerson->getFirstName() != $firstName) {
$errorList[] = array(
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 ($occupationFather !== '') {
Custody::useService()->insertMeta(
$tblPersonFather,
$occupationFather,
'',
Avoid deeply nested control flow statements. Open
Open
if ($tblPersonFather !== null) {
$this->useContactAddress()->createAddressToPersonFromImport(
$tblPersonFather, $StreetName, $StreetNumber, $CityCode, $CityName
);
}
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 (strpos($photo, '7') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(6);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
Avoid deeply nested control flow statements. Open
Open
if ($birthday !== '') {
$birthday = date('d.m.Y', \PHPExcel_Shared_Date::ExcelToPHP($birthday));
Common::useService()->insertMeta(
$tblPerson,
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 ($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 (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 (!$tblPeriodList) {
// firstTerm
$tblPeriod = Term::useService()->insertPeriod(
'1. Halbjahr',
'01.08.20' . $year,
Avoid deeply nested control flow statements. Open
Open
if ($tblCompany) {
\SPHERE\Application\Corporation\Group\Group::useService()->addGroupCompany(
\SPHERE\Application\Corporation\Group\Group::useService()->getGroupByMetaTable('COMMON'),
$tblCompany
);
Avoid deeply nested control flow statements. Open
Open
if ($focus === 'LE') {
$tblStudentFocusType = Student::useService()->getStudentFocusTypeByName('Lernen');
if ($tblStudentFocusType) {
Student::useService()->addStudentFocus($tblStudent,
$tblStudentFocusType);
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '6') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(4);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
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 ($tblSchoolType) {
if (($pos = stripos($division, '-'))) {
$level = substr($division, 0, $pos);
$division = substr($division, $pos + 1);
$tblGroup = Group::useService()->insertGroup((2020 - $level) . '-' . $division);