DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendSubjectTeacherShow has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendSubjectTeacherShow($Id)
    {

        $Stage = new Stage('Lehrer', 'Auswahl');
        $tblDivision = Division::useService()->getDivisionById($Id);
Severity: Major
Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

    Method isChecked has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function isChecked($RequestKey, $Value)
        {
    
            if (preg_match('!^(.*?)\[(.*?)\]$!is', $RequestKey, $Match)) {
                if (false === strpos($Match[2], '[')) {
    Severity: Major
    Found in Common/Frontend/Form/Repository/AbstractField.php - About 2 hrs to fix

      Method getStudentFilterResult has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function getStudentFilterResult($Person, $Year, $Division)
          {
      
              $Pile = new Pile(Pile::JOIN_TYPE_INNER);
              $Pile->addPile((new ViewPeopleGroupMember())->getViewService(), new ViewPeopleGroupMember(),
      Severity: Major
      Found in Application/Setting/User/Account/Frontend.php - About 2 hrs to fix

        Method frontendLayoutToken has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendLayoutToken()
            {
        
                $headerList = array(
                    'Serial' => 'Seriennummer',
        Severity: Major
        Found in Application/Setting/Authorization/Token/Frontend.php - About 2 hrs to fix

          File ApiUserGroup.php has 265 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\Api\Platform\Gatekeeper;
          
          use SPHERE\Application\Api\ApiTrait;
          use SPHERE\Application\Api\Dispatcher;
          Severity: Minor
          Found in Application/Api/Platform/Gatekeeper/ApiUserGroup.php - About 2 hrs to fix

            Method buildPages has 59 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function buildPages(TblPerson $tblPerson = null)
                {
            
                    $personId = $tblPerson ? $tblPerson->getId() : 0;
            
            

              Method firstPage has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function firstPage($personId)
                  {
                      $Page = (new Page())
                          ->addSlice(
                              (new Slice())

                Method firstPage has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function firstPage($personId)
                    {
                        $Page = (new Page())
                            ->addSlice(
                                (new Slice())

                  Method createSchoolFeeList has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createSchoolFeeList()
                      {
                  
                          $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Schüler'));
                          $TableContent = array();
                  Severity: Major
                  Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 2 hrs to fix

                    Method frontendStudentCoursePrepare has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendStudentCoursePrepare()
                        {
                            $Stage = new Stage('Indiware', 'Datentransfer');
                            $Stage->addButton(new Standard('Zurück', '/Transfer/Indiware/Import', new ChevronLeft()));
                    
                    
                    Severity: Major
                    Found in Application/Transfer/Indiware/Import/StudentCourse.php - About 2 hrs to fix

                      Method getInvoiceCauserList has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getInvoiceCauserList(
                              $Year,
                              $Month,
                              $BasketName,
                              $ItemName,
                      Severity: Major
                      Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 2 hrs to fix

                        Method frontendAccountFibu has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendAccountFibu($Account = null)
                            {
                        
                                $Stage = new Stage();
                                $Stage->setTitle('FIBU-Konten');
                        Severity: Major
                        Found in Application/Billing/Accounting/Account/Frontend.php - About 2 hrs to fix

                          Method updateTask has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function updateTask(IFormInterface $Stage = null, $Id, $Task)
                              {
                          
                                  /**
                                   * Skip to Frontend
                          Severity: Major
                          Found in Application/Education/Graduation/Evaluation/Service.php - About 2 hrs to fix

                            Method updateScoreTypeDivisionSubject has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function updateScoreTypeDivisionSubject(
                                    IFormInterface $Stage = null,
                                    TblScoreType $tblScoreType,
                                    TblYear $tblYear = null,
                                    $Data = null
                            Severity: Major
                            Found in Application/Education/Graduation/Gradebook/Service.php - About 2 hrs to fix

                              Method frontendLinkPerson has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendLinkPerson($Id = null)
                                  {
                              
                                      $Stage = new Stage('', 'Zuordnung');
                                      $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Subject', new ChevronLeft()));
                              Severity: Major
                              Found in Application/Education/Lesson/Subject/Frontend.php - About 2 hrs to fix

                                Method flushCache has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    final public function flushCache($Region = null)
                                    {
                                
                                        /** @var MemcachedHandler $Cache */
                                        $Cache = $this->getCache(new MemcachedHandler());
                                Severity: Major
                                Found in System/Database/Fitting/Manager.php - About 2 hrs to fix

                                  ApiDebtorSelection has 22 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class ApiDebtorSelection extends Extension implements IApiInterface
                                  {
                                  
                                      // registered method
                                      use ApiTrait;
                                  Severity: Minor
                                  Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if (($fromLevel = $tblStudentSubject->getServiceTblLevelFrom())
                                                        && ($tillLevel = $tblStudentSubject->getServiceTblLevelTill())
                                                        && $fromLevel->getName()
                                                        && $tillLevel->getName()
                                                        && floatval($fromLevel->getName()) <= floatval($level)
                                    Severity: Critical
                                    Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 2 hrs to fix

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

                                      class Service extends AbstractService
                                      {
                                          /**
                                           * @param bool $doSimulation
                                           * @param bool $withData
                                      Severity: Minor
                                      Found in Application/Transfer/Indiware/Import/Service.php - About 2 hrs to fix

                                        TblUntisImportLectureship has 22 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class TblUntisImportLectureship extends Element
                                        {
                                        
                                            const ATTR_SERVICE_TBL_YEAR = 'serviceTblYear';
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language