DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File E02_1.php has 299 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Created by PhpStorm.
 * User: lehmann
 * Date: 27.06.2017

    Service has 27 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Service extends AbstractService
    {
        /**
         * @param bool $doSimulation
         * @param bool $withData
    Severity: Minor
    Found in Application/Setting/User/Account/Service.php - About 3 hrs to fix

      Service has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Service extends AbstractService
      {
      
          /**
           * @param bool $doSimulation
      Severity: Minor
      Found in Application/Billing/Bookkeeping/Balance/Service.php - About 3 hrs to fix

        Service has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Service extends AbstractService
        {
        
            /**
             * @return false|ViewPerson[]
        Severity: Minor
        Found in Application/People/Person/Service.php - About 3 hrs to fix

          TblPerson has 27 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class TblPerson extends Element
          {
          
              const ATTR_FIRST_NAME = 'FirstName';
              const ATTR_LAST_NAME = 'LastName';
          Severity: Minor
          Found in Application/People/Person/Service/Entity/TblPerson.php - About 3 hrs to fix

            Function ModGrid has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $.fn.ModGrid = function(options)
                {
                    var selfElement = this;
                    // Basic jQuery handler to prevent event propagation
                    var preventClick = function(e)
            Severity: Major
            Found in Common/Script/ModGrid.js - About 3 hrs to fix

              Method frontendSettingAllConsumers has 79 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendSettingAllConsumers($SettingId = null)
                  {
                      $stage = new Stage('Mandant' , 'Einstellungen');
                      $stage->addButton(new Standard('Zurück', '/Setting/Consumer/Setting', new ChevronLeft()));
                      if (($tblSetting = Consumer::useService()->getSettingById($SettingId))) {
              Severity: Major
              Found in Application/Setting/Consumer/Setting/Frontend.php - About 3 hrs to fix

                Method frontendSearch has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendSearch($Id = false)
                    {
                
                        $Stage = new Stage('Suche', 'nach Gruppe');
                
                
                Severity: Major
                Found in Application/Corporation/Search/Group/Frontend.php - About 3 hrs to fix

                  Method getAddressHead has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function getAddressHead($AccountId)
                      {
                          $Slice = new Slice();
                          if($this->FieldValue['CompanyName'] === '&nbsp;'){
                              $Slice->addElement((new Element())

                    Method createMedicalInsuranceClassListExcel has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createMedicalInsuranceClassListExcel($PersonList, $tblPersonList)
                        {
                    
                            if (!empty($PersonList)) {
                    
                    
                    Severity: Major
                    Found in Application/Reporting/Standard/Person/Service.php - About 3 hrs to fix

                      Method frontendIdentificationCredential has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendIdentificationCredential($CredentialName = null, $CredentialLock = null)
                          {
                              $View = new Stage(new Nameplate().' Anmelden', '', $this->getIdentificationEnvironment());
                      
                              // Search for matching Account
                      Severity: Major
                      Found in Application/Platform/Gatekeeper/Authentication/Frontend.php - About 3 hrs to fix

                        Method frontendDashboard has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendDashboard()
                            {
                        
                                $Stage = new Stage('Dashboard', 'System');
                        
                        
                        Severity: Major
                        Found in Application/Platform/System/System.php - About 3 hrs to fix

                          Method frontendLectureshipEdit has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function frontendLectureshipEdit($Id = null, $Data = null, $Visible = false)
                              {
                                  $Stage = new Stage('Lehrauftrag', 'Bearbeiten');
                                  $tblIndiwareImportLectureship = ($Id !== null ? Import::useService()->getIndiwareImportLectureshipById($Id) : false);
                                  if (!$tblIndiwareImportLectureship) {
                          Severity: Major
                          Found in Application/Transfer/Indiware/Import/Lectureship.php - About 3 hrs to fix

                            Method getStudentGradeList has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getStudentGradeList($TaskId = false)
                                {
                            
                                    $tblTask = Evaluation::useService()->getTaskById($TaskId);
                                    if (!$tblTask) {
                            Severity: Major
                            Found in Application/Transfer/Indiware/Export/AppointmentGrade/Service.php - About 3 hrs to fix

                              Method frontendRelationshipCustody has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendRelationshipCustody()
                                  {
                                      $stage = new Stage('Einordnung der Sorgeberechtigten', 'nach S1, S2, S3');
                                      $stage->addButton(new Standard('Zurück', '/People/Group', new ChevronLeft()));
                              
                              
                              Severity: Major
                              Found in Application/People/Group/Frontend.php - About 3 hrs to fix

                                Method frontendDestroyMinimumGradeCount has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendDestroyMinimumGradeCount(
                                        $Id = null,
                                        $Confirm = false
                                    ) {
                                
                                

                                  Method setSubjectRow has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function setSubjectRow($array, $subjectName)
                                      {
                                  
                                          $course = '';
                                          $grades = array();
                                  Severity: Major
                                  Found in Application/Education/Certificate/Prepare/Abitur/BlockI.php - About 3 hrs to fix

                                    Method frontendTeacherSelectDivision has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function frontendTeacherSelectDivision($IsAllYears = false, $YearId = null)
                                        {
                                    
                                            $Stage = new Stage('Noteninformation', 'Klasse auswählen');
                                    
                                    
                                    Severity: Major
                                    Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 3 hrs to fix

                                      Method findDateTime has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private function findDateTime($Value)
                                          {
                                      
                                              $PatternList = false;
                                              $ResultList = array();
                                      Severity: Major
                                      Found in System/Database/Filter/Link/AbstractNode.php - About 3 hrs to fix

                                        File CheHjInfoGs.php has 298 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        <?php
                                        namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESZC;
                                        
                                        use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
                                        use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language