DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Avoid deeply nested control flow statements.
Open

                                    if (0 === strpos($Number, '01')) {
                                        $tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(4);
                                    }
Severity: Major
Found in Application/Transfer/Import/Chemnitz/Service.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                                if ($occupationMother !== '') {
                                                    Custody::useService()->insertMeta(
                                                        $tblPersonMother,
                                                        $occupationMother,
                                                        '',
    Severity: Major
    Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if ($phoneNumber != '') {
                                              $tblType = Phone::useService()->getTypeById(3);
                                              if (0 === strpos($phoneNumber, '01')) {
                                                  $tblType = Phone::useService()->getTypeById(4);
                                              }
      Severity: Major
      Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        if ($pos !== false) {
                                            $cityDistrict = trim(substr($cityName, $pos + 4));
                                            $cityName = trim(substr($cityName, 0, $pos));
                                        }
        Severity: Major
        Found in Application/Transfer/Import/Naundorf/Service.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if ($phoneNumber != '') {
                                                  $tblType = Phone::useService()->getTypeById(1);
                                                  if (0 === strpos($phoneNumber, '01')) {
                                                      $tblType = Phone::useService()->getTypeById(2);
                                                  }
          Severity: Major
          Found in Application/Transfer/Import/Naundorf/Service.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                                    if ($subjectLanguage !== '') {
                                                        if ($subjectLanguage === 'EN'
                                                            || $subjectLanguage === 'Englisch'
                                                        ) {
                                                            $tblSubject = Subject::useService()->getSubjectByAcronym('EN');
            Severity: Major
            Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                      if (strpos($integration, 'Hören') !== false) {
                                                          $tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Gehörschwierigkeiten');
                                                          if ($tblStudentDisorderType) {
                                                              Student::useService()->addStudentDisorder($tblStudent,
                                                                  $tblStudentDisorderType);
              Severity: Major
              Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                    if (0 === strpos($Number, '01')) {
                                                        $tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(4);
                                                    }
                Severity: Major
                Found in Application/Transfer/Import/Chemnitz/Service.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if ($pos !== false) {
                                                          $cityDistrict = trim(substr($cityName, $pos + 4));
                                                          $cityName = trim(substr($cityName, 0, $pos));
                                                      }
                  Severity: Major
                  Found in Application/Transfer/Import/Naundorf/Service.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                            if ((Common::useService()->updateMetaService($tblPerson, $Meta))) {
                                                                $countStudent++;
                                                            }
                    Severity: Major
                    Found in Application/Transfer/Import/Naundorf/Service.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                              if ($tblSchoolType) {
                                                                  $tblLevel = Division::useService()->insertLevel($tblSchoolType, $level);
                                                                  if ($tblLevel) {
                                                                      $tblDivision = Division::useService()->insertDivision(
                                                                          $tblYear,
                      Severity: Major
                      Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                                if ($pos !== null) {
                                                                    $streetName = trim(substr($street, 0, $pos));
                                                                    $streetNumber = trim(substr($street, $pos));
                                                                }
                        Severity: Major
                        Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if ($phoneNumber != '') {
                                                                  $tblType = Phone::useService()->getTypeById(7);
                          
                                                                  $pos = strpos($phoneNumber, " ");
                                                                  if ($pos !== false) {
                          Severity: Major
                          Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                    if (0 === strpos($phoneNumber, '01')) {
                                                                        $tblType = Phone::useService()->getTypeById(2);
                                                                    }
                            Severity: Major
                            Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                      if ($tblSubject) {
                                                                          Student::useService()->addStudentSubject(
                                                                              $tblStudent,
                                                                              Student::useService()->getStudentSubjectTypeByIdentifier('RELIGION'),
                                                                              Student::useService()->getStudentSubjectRankingByIdentifier('1'),
                              Severity: Major
                              Found in Application/Transfer/Import/Herrnhut/Service.php - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                        if ($integration === 'Diskalkulie') {
                                                                            $tblStudentDisorderType = Student::useService()->getStudentDisorderTypeByName('Dyskalkulie');
                                                                            Student::useService()->addStudentDisorder($tblStudent,
                                                                                $tblStudentDisorderType);
                                                                        } elseif ($integration === 'LRS') {
                                Severity: Major
                                Found in Application/Transfer/Import/Herrnhut/Service.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                  if (!$tblSalutation) {
                                                                      $errorList[] = array(
                                                                          'RowCount' => $rowCount,
                                                                          'Message' => 'Die Anrede: ' . $salutation . ' konnte nicht gefunden werden.',
                                                                          'Result' => 'Die Person wird ohne Anrede angelegt.'
                                  Severity: Major
                                  Found in Application/Transfer/Import/Herrnhut/Service.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        if ($mailAddress != '') {
                                                                            Mail::useService()->insertMailToPerson(
                                                                                $tblPerson,
                                                                                $mailAddress,
                                                                                Mail::useService()->getTypeById(1),
                                    Severity: Major
                                    Found in Application/Transfer/Import/Radebeul/Service.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                                  if (!$tblPeriodList) {
                                                                                      // firstTerm
                                                                                      $tblPeriod = Term::useService()->insertPeriod(
                                                                                          '1. Halbjahr',
                                                                                          '01.08.20' . $year,
                                      Severity: Major
                                      Found in Application/Transfer/Import/Herrnhut/Service.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                            if (0 === strpos($Number, '01')) {
                                                                                $tblType = \SPHERE\Application\Contact\Phone\Phone::useService()->getTypeById(2);
                                                                            }
                                        Severity: Major
                                        Found in Application/Transfer/Import/Chemnitz/Service.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language