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 ($infoSchool !== '') {
$remarkCommon = 'Name der bisher besuchten Schule: ' . $infoSchool;
}
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 ($tblPerson) {
Relationship::useService()->addCompanyRelationshipToPerson(
$tblCompany,
$tblPerson,
$tblTypeCommon
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 ($infoSchool !== '') {
$remarkCommon = 'staatliche GS: ' . $infoSchool;
}
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 ($subjectLanguage !== '') {
if ($subjectLanguage === 'EN'
|| $subjectLanguage === 'Englisch'
) {
$tblSubject = Subject::useService()->getSubjectByAcronym('EN');
Avoid deeply nested control flow statements. Open
Open
if (!$tblPerson->fetchMainAddress()) {
Address::useService()->insertAddressToPerson(
$tblPerson,
$streetName,
$streetNumber,
Method getPriceListByItemAndPerson
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getPriceListByItemAndPerson(TblItem $tblItem, $Year, $MonthFrom, $MonthTo, TblPerson $tblPerson, $PriceList = array())
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($phoneNumber, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Avoid deeply nested control flow statements. Open
Open
switch ($i) {
case 3: $tblPhonePerson = $tblPersonMother ? $tblPersonMother : $tblPerson; break;
case 4: $tblPhonePerson = $tblPersonFather ? $tblPersonFather : $tblPerson; break;
case 1:
case 2:
Avoid deeply nested control flow statements. Open
Open
if (strpos($phone, 'M') !== false) {
$remarkPhone = 'Mutter';
$phone = trim(str_replace('M', '', $phone));
}
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 ($tblSchoolType) {
$tblLevel = Division::useService()->insertLevel($tblSchoolType, $division);
if ($tblLevel) {
$tblDivision = Division::useService()->insertDivision(
$tblYear,
Avoid deeply nested control flow statements. Open
Open
if ($arriveSchool) {
GroupCompany::useService()->addGroupCompany(
GroupCompany::useService()->getGroupByMetaTable('COMMON'),
$arriveSchool
);
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 ($pos !== false) {
$cityDistrict = trim(substr($cityName, $pos + 4));
$cityName = trim(substr($cityName, 0, $pos));
}
Avoid deeply nested control flow statements. Open
Open
if (isset($nameArrayCustody1[1])) {
$lastNameCustody1 = $nameArrayCustody1[1];
}