Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($subjectLanguage !== '') {
if ($subjectLanguage === 'EN') {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
} elseif ($subjectLanguage === 'FR') {
$tblSubject = Subject::useService()->getSubjectByAcronym('FR');
Avoid deeply nested control flow statements. Open
Open
if ($pos !== null) {
$StreetName = trim(substr($Street, 0, $pos));
$StreetNumber = trim(substr($Street, $pos));
ContactAddress\Address::useService()->insertAddressToCompany
(
Avoid deeply nested control flow statements. Open
Open
if (($OptionTypeB = trim($Document->getValue($Document->getCell($Location['Schulart 2'],
$RunY)))) !== ''
) {
if ($OptionTypeB == 'Oberschule') {
$tblOptionTypeB = Type::useService()->getTypeById(8);
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 ($mailAddress != '') {
Mail::useService()->insertMailToPerson(
$tblPerson,
$mailAddress,
Mail::useService()->getTypeById(1),
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 ($tblPerson !== false) {
$countStudent++;
$LastName = trim($Document->getValue($Document->getCell($Location['Name'], $RunY)));
$City = trim($Document->getValue($Document->getCell($Location['PLZ Ort'], $RunY)));
Avoid deeply nested control flow statements. Open
Open
if (($OptionTypeA = trim($Document->getValue($Document->getCell($Location['Schulart 1'],
$RunY)))) !== ''
) {
if ($OptionTypeA == 'Oberschule') {
$tblOptionTypeA = Type::useService()->getTypeById(8);
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($Number, '01')) {
$tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(2);
}
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 (0 === strpos($phone, '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');
}
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 ($tblPersonFather) {
Phone::useService()->insertPhoneToPerson(
$tblPersonFather,
$phoneNumber,
$tblType,
Avoid deeply nested control flow statements. Open
Open
if ($pos !== null) {
$StreetName = trim(substr($Street, 0, $pos));
$StreetNumber = trim(substr($Street, $pos));
$this->useContactAddress()->createAddressToPersonFromImport(
$tblPerson, $StreetName, $StreetNumber,
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 ($tblPersonFather) {
Phone::useService()->insertPhoneToPerson(
$tblPersonFather,
$phoneNumber,
$tblType,
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);
}
Method createPersonFromImport
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$Salutation,
$Title,
$FirstName,
$SecondName,
$LastName,