DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getModalPreset has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getModalPreset($Info = '', $ViewType = TblWorkSpace::VIEW_TYPE_ALL)
    {

        $tblPresetList = Individual::useService()->getPresetAll();
        $TableContent = array();
Severity: Major
Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 2 hrs to fix

    Method getModalSavePreset has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getModalSavePreset($Info = '', $ViewType = TblWorkSpace::VIEW_TYPE_ALL)
        {
    
            $Global = $this->getGlobal();
            $Post = $Global->POST;
    Severity: Major
    Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 2 hrs to fix

      Method getHeadForDiploma has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function getHeadForDiploma($IsSample, $showPicture)
          {
      
              if ($showPicture) {
                  $pictureAddress = '';

        Method formSupport has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function formSupport($PersonId, $SupportId = null)
            {
        
                $Global = $this->getGlobal();
                if($SupportId != null && !isset($Global->POST['Data']['Date'])){
        Severity: Major
        Found in Application/People/Meta/Student/Frontend.php - About 2 hrs to fix

          Method getSupportTable has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getSupportTable(TblPerson $tblPerson, $hasEdit = true)
              {
          
                  $tblSupportList = Student::useService()->getSupportByPerson($tblPerson);
                  $TableContent = array();
          Severity: Major
          Found in Application/People/Meta/Student/Frontend.php - About 2 hrs to fix

            Method loadSimilarPersonContent has 66 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function loadSimilarPersonContent($Person)
                {
                    if ((!isset($Person['FirstName']) || empty($Person['FirstName']))
                        || (!isset($Person['LastName']) || empty($Person['LastName']))
                    ) {
            Severity: Major
            Found in Application/People/Person/Frontend/FrontendBasic.php - About 2 hrs to fix

              Method setTableContentForAppointedDateTask has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function setTableContentForAppointedDateTask(
                      TblDivision $tblDivision,
                      TblTest $tblTest,
                      TblSubject $tblSubject,
                      TblPerson $tblPerson,
              Severity: Major
              Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

                Method getAutoDroppedSubjects has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getAutoDroppedSubjects(TblPerson $tblPerson, TblDivision $tblCurrentDivision)
                    {
                
                        $subjectList = array();
                        $tblLastDivision = false;
                Severity: Major
                Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

                  Method updatePrepareBehaviorGrades has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function updatePrepareBehaviorGrades(
                          IFormInterface $Stage = null,
                          TblPrepareCertificate $tblPrepare,
                          TblGroup $tblGroup = null,
                          TblGradeType $tblGradeType,
                  Severity: Major
                  Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

                    Method getResultForAbiturBlockII has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getResultForAbiturBlockII(
                            TblPrepareCertificate $tblPrepareCertificate,
                            TblPerson $tblPerson
                        ) {
                    
                    
                    Severity: Major
                    Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

                      Method setTableContentForAppointedDateTask has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private function setTableContentForAppointedDateTask(
                              TblDivision $tblDivision,
                              TblTest $tblTest,
                              TblSubject $tblSubject,
                              TblPerson $tblPerson,
                      Severity: Major
                      Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 hrs to fix

                        Method createCertificateSetting has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createCertificateSetting(
                                IFormInterface $Form,
                                TblCertificate $tblCertificate,
                                $GradeList,
                                $SubjectList
                        Severity: Major
                        Found in Application/Education/Certificate/Generator/Service.php - About 2 hrs to fix

                          Method setupDatabaseContent has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function setupDatabaseContent()
                              {
                          
                                  // Schülerkartei - Grundschule
                                  if (($tblSchoolType = Type::useService()->getTypeByName('Grundschule'))) {
                          Severity: Major
                          Found in Application/Document/Generator/Service/Data.php - About 2 hrs to fix

                            Method frontendCreatePeriod has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendCreatePeriod($Period = null)
                                {
                            
                                    $Stage = new Stage('Zeitraum', 'Übersicht');
                                    $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Term', new ChevronLeft()));
                            Severity: Major
                            Found in Application/Education/Lesson/Term/Frontend.php - About 2 hrs to fix

                              File Frontend.php has 276 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              namespace SPHERE\Application\Setting\Consumer\SponsorAssociation;
                              
                              use SPHERE\Application\Contact\Address\Address;
                              use SPHERE\Application\Corporation\Company\Company;
                              Severity: Minor
                              Found in Application/Setting/Consumer/SponsorAssociation/Frontend.php - About 2 hrs to fix

                                Method downloadZip has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function downloadZip($PrepareId = null, $Name = 'Zeugnis')
                                    {
                                
                                        if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
                                            && ($tblDivision = $tblPrepare->getServiceTblDivision())
                                Severity: Major
                                Found in Application/Api/Education/Certificate/Generator/Creator.php - About 2 hrs to fix

                                  Method loadNameDefinition has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function loadNameDefinition()
                                      {
                                  
                                          // S1
                                          $this->setNameDefinition(self::TBL_SALUTATION_SALUTATION_BEV, 'Bev: Anrede');

                                    Method createCsv has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function createCsv($DivisionId = '')
                                        {
                                    
                                    
                                            $PersonList = array();
                                    Severity: Major
                                    Found in Application/Transfer/Indiware/Export/Meta/Service.php - About 2 hrs to fix

                                      Method getResultForAbiturAverageGrade has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function  getResultForAbiturAverageGrade(
                                              $totalPoints
                                          ) {
                                      
                                              // ist Formel korrekt?
                                      Severity: Major
                                      Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

                                        Method frontendHeadmasterSelectDivision has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function frontendHeadmasterSelectDivision($IsAllYears = false, $YearId = null)
                                            {
                                                $Stage = new Stage('Noteninformation', 'Klasse auswählen');
                                        
                                                $hasHeadmasterRight = Access::useService()->hasAuthorization('/Education/Certificate/GradeInformation/Headmaster');
                                        Severity: Major
                                        Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language