Showing 5,014 of 7,620 total issues
Avoid deeply nested control flow statements. Open
Open
if ($phoneNumber) {
// Vereinheitlichen der Telefonnummer
$phoneNumber = str_replace(' / ', '/', $phoneNumber);
$phoneNumber = str_replace(' - ', '/', $phoneNumber);
$phoneNumber = str_replace('- ', '/', $phoneNumber);
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'KB') !== false) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Körperliche Beeinträchtigung');
Student::useService()->addStudentDisorder($tblStudent,
$tblStudentDisorderType);
}
Avoid deeply nested control flow statements. Open
Open
if (strpos($photo, '5') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(3);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
Avoid deeply nested control flow statements. Open
Open
if ($tblProfileSubject) {
Student::useService()->addStudentSubject(
$tblStudent,
Student::useService()->getStudentSubjectTypeByIdentifier('PROFILE'),
Student::useService()->getStudentSubjectRankingByIdentifier('1'),
Avoid deeply nested control flow statements. Open
Open
if ($FaxNumber != '') {
Phone::useService()->insertPhoneToPerson($tblPerson, $FaxNumber,
Phone::useService()->getTypeById(7), '');
}
Avoid deeply nested control flow statements. Open
Open
if (0 === strpos($phone, '01')) {
$tblType = Phone::useService()->getTypeById(2);
}
Method createMinimumGradeCounts
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function createMinimumGradeCounts(TblLevel $tblLevel,TblSubject $tblSubject,PhpExcel $Document, $RunY, $period, $course)
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 !== 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 ($pos !== null) {
$streetName = trim(substr($street, 0, $pos));
$streetNumber = trim(substr($street, $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 ($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, '1') !== false) {
$tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(2);
Student::useService()->insertStudentAgreement($tblStudent,
$tblStudentAgreementType);
}
Avoid deeply nested control flow statements. Open
Open
if($Key == 'Kind'){
// Kinder zur Hauptperson
Relationship::useService()->insertRelationshipToPerson($tblMainPerson, $tblPersonPeople, $tblRelationShipType, '');
} elseif($Key != 'Haupt') {
// Verheiratet
Avoid deeply nested control flow statements. Open
Open
if (strpos($integration, 'Dyskalkulie') !== false) {
$tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Dyskalkulie');
Student::useService()->addStudentDisorder($tblStudent,
$tblStudentDisorderType);
}
Avoid deeply nested control flow statements. Open
Open
if ($Division != '') {
if (( $pos = strpos($Division, $Level) ) !== false) {
if (strlen($Division) > ( ( $start = $pos + strlen($Level) ) )) {
$Division = substr($Division, $start);
}
Avoid deeply nested control flow statements. Open
Open
if ($streetName && $streetNumber && $zipCode && $city) {
Address::useService()->insertAddressToCompany(
$tblCompany,
$streetName,
$streetNumber,
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 ($tblSubject) {
Student::useService()->addStudentSubject(
$tblStudent,
Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'),
Student::useService()->getStudentSubjectRankingByIdentifier('1'),