Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
switch ($Item['Gender']) {
case "Männlich":
$Item['GenderExcel'] = "m";
break;
case "Weiblich":
Avoid deeply nested control flow statements. Open
Open
if (($tblCompany = $tblTransfer->getServiceTblCompany())) {
if (($tblAddress = $tblCompany->fetchMainAddress())) {
$Data['Document']['PlaceDate'] = $tblAddress->getTblCity()->getName() . ', '
. date('d.m.Y');
$Data['Document']['Date']['Now'] = date('d.m.Y');
Avoid deeply nested control flow statements. Open
Open
if (($tblMail = $tblToPersonMail->getTblMail())) {
$Data['Person']['Contact']['All']['Person']['Mail'] .= $tblFromPerson->getLastFirstName().': '
.$tblMail->getAddress().';<br/>';
// set next row if line ist to long
$ControlString = $Data['Person']['Contact']['All']['Mail'].
Avoid deeply nested control flow statements. Open
Open
if (($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())) {
if (($tblGender = $tblCommonBirthDates->getTblCommonGender())) {
$gender = $tblGender->getName();
}
if (($birthdayDate = $tblCommonBirthDates->getBirthday())) {
Avoid deeply nested control flow statements. Open
Open
if (($tblFromPersonToPhoneList = Phone::useService()->getPhoneAllByPerson($tblFromPerson))) {
foreach ($tblFromPersonToPhoneList as $tblToMother) {
if ($tblToMother->getTblType()->getName() == 'Privat'
&& $tblToMother->getTblType()->getDescription() == 'Mobil'
) {
Avoid deeply nested control flow statements. Open
Open
if (isset($tblPhoneList[$key])) {
$tblPhoneList[$key] .= ')';
}
Avoid deeply nested control flow statements. Open
Open
if (($tblCommonGender = $tblCommonBirthDates->getTblCommonGender())) {
$DataPerson['Gender'] = $tblCommonGender->getName();
}
Avoid deeply nested control flow statements. Open
Open
if ($PhoneDescription == 'Festnetz') {
switch ($PhoneName) {
case 'Privat':
if (empty($DataPerson['PhoneFixedPrivate'])) {
$DataPerson['PhoneFixedPrivate'] = $tblPhone->getNumber()
Avoid deeply nested control flow statements. Open
Open
if ($tblYearDivision->getId() == $tblYear->getId()) {
$DivisionArray[] = $tblDivision->getDisplayName();
}
Avoid deeply nested control flow statements. Open
Open
if ($tblType->getName() == 'Geschwisterkind') {
if (($tblPersonFrom = $tblToPerson->getServiceTblPersonFrom()) && ($tblPersonTo = $tblToPerson->getServiceTblPersonTo())) {
if ($tblPersonFrom->getId() !== $tblPerson->getId()) {
$tblPersonSibling = $tblPersonFrom;
} elseif ($tblPersonTo->getId() !== $tblPerson->getId()) {
Avoid deeply nested control flow statements. Open
Open
if ($tblCourse) {
if ($tblCourse->getName() == 'Gymnasium') {
$Item['Education'] = 'GY';
} elseif ($tblCourse->getName() == 'Hauptschule') {
$Item['Education'] = 'HS';
Avoid deeply nested control flow statements. Open
Open
if ($tblCity) {
$AddressCompanyCodeCity = $tblCity->getCode().' '.$tblCity->getDisplayName();
}
Avoid deeply nested control flow statements. Open
Open
if ($salutation->getId() == 1) {
$father = $guardian->getServiceTblPersonFrom();
} elseif ($salutation->getId() == 2) {
$mother = $guardian->getServiceTblPersonFrom();
}
Avoid deeply nested control flow statements. Open
Open
switch ($tblAgreementType->getName()) {
case 'in Schulschriften':
($CategoryString == 'Foto des Schülers'
? $Item['PictureSchoolWriting'] = $MarkValue
: $Item['NameSchoolWriting'] = $MarkValue);
Avoid deeply nested control flow statements. Open
Open
if (is_numeric($Year) && is_numeric($Month) && is_numeric($Day)) {
$Item['BirthdayYearSort'] = ($Year * 10000) + ($Month * 100) + $Day;
}
Avoid deeply nested control flow statements. Open
Open
if (($tblLevelTill = $tblStudentSubject->getServiceTblLevelTill()) &&
($LevelTill = Division::useService()->getLevelById($tblLevelTill->getId())->getName())
&& (is_numeric($LevelTill)) && (is_numeric($tblDivisionLevel->getName()))) {
if ($tblDivisionLevel->getName() > $LevelTill) {
$Item['ForeignLanguage' . $i] = '';
Avoid deeply nested control flow statements. Open
Open
switch($tblStudentAgreement->getTblStudentAgreementType()->getName()){
case 'in Schulschriften':
$Item['Picture1'] = 'Ja';
break;
case 'in Veröffentlichungen':
Avoid deeply nested control flow statements. Open
Open
switch($tblStudentAgreement->getTblStudentAgreementType()->getName()){
case 'in Schulschriften':
$Item['Name1'] = 'Ja';
break;
case 'in Veröffentlichungen':
Avoid deeply nested control flow statements. Open
Open
if ($tblToPhoneList) {
foreach ($tblToPhoneList as $tblToPhone) {
if (( $tblPhone = $tblToPhone->getTblPhone() )) {
if (!isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
$Item['PhoneGuardian'][$tblPersonGuardian->getId()] =
Avoid deeply nested control flow statements. Open
Open
if (isset($Item['PhoneGuardian'][$tblPersonGuardian->getId()])) {
$Item['PhoneGuardian'][$tblPersonGuardian->getId()] .= ')';
}