DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getHistoryByPerson has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getHistoryByPerson($PersonId = '')
    {

        if(!$tblPerson = Person::useService()->getPersonById($PersonId)){
            return new Warning('Person nicht gefunden');
Severity: Major
Found in Application/Billing/Accounting/Causer/Frontend.php - About 2 hrs to fix

    Method setGradeMirror has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function setGradeMirror(TblScoreType $tblScoreType = null, $gradeList, $Grade)
        {
            $minRange = null;
            $maxRange = null;
            if ($tblScoreType) {
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

      Method frontendResetApprovePrepareDivision has 62 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendResetApprovePrepareDivision(
              $PrepareId = null,
              $DivisionId = null,
              $IsLeave = false,
              $Route = '/Education/Certificate/Approve/Prepare',
      Severity: Major
      Found in Application/Education/Certificate/Approve/Frontend.php - About 2 hrs to fix

        Method setPrepareDivisionSelectData has 62 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function setPrepareDivisionSelectData($tblDivision, $Route, $tableData, $GroupId = false)
            {
        
                /** @var TblDivision $tblDivision */
                $tblPrepareAllByDivision = Prepare::useService()->getPrepareAllByDivision($tblDivision);
        Severity: Major
        Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 hrs to fix

          Method frontendApprovePrepareDivision has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendApprovePrepareDivision(
                  $PrepareId = null,
                  $DivisionId = null,
                  $IsLeave = false,
                  $Route = '/Education/Certificate/Approve/Prepare',
          Severity: Major
          Found in Application/Education/Certificate/Approve/Frontend.php - About 2 hrs to fix

            Function ModAlways has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $.fn.ModAlways = function ()
                {
                    $(document).ready(function ()
                    {
                        // MOVED TO FORM
            Severity: Major
            Found in Common/Script/ModAlways.js - About 2 hrs to fix

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

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

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

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

                  Method createPhoneListExcel has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createPhoneListExcel($PersonList)
                      {
                  
                          if (!empty($PersonList)) {
                  
                  
                  Severity: Major
                  Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 2 hrs to fix

                    Method registerModule has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function registerModule()
                        {
                    
                            Main::getDisplay()->addModuleNavigation(
                                new Link(new Link\Route(__NAMESPACE__.'/ClassList'), new Link\Name('Klassenlisten'))
                    Severity: Major
                    Found in Application/Reporting/Custom/Chemnitz/Person/Person.php - About 2 hrs to fix

                      Method createAddressPersonGuardian has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createAddressPersonGuardian(TblSerialLetter $tblSerialLetter)
                          {
                              $tblSerialPersonList = SerialLetter::useService()->getSerialPersonBySerialLetter($tblSerialLetter);
                              if ($tblSerialPersonList) {
                                  $CreateArray = array();
                      Severity: Major
                      Found in Application/Reporting/SerialLetter/Service.php - About 2 hrs to fix

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

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

                          Method widgetPersonGroupList has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function widgetPersonGroupList()
                              {
                          
                                  $tblGroupAll = Group::useService()->getGroupAllSorted();
                                  $tblGroupLockedList = array();
                          Severity: Major
                          Found in Application/People/People.php - About 2 hrs to fix

                            Method getBasicFormRow has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function getBasicFormRow($isCreate)
                                {
                                    $tblSalutationAll = Person::useService()->getSalutationAll();
                            
                                    $tblGroupList = Group::useService()->getGroupAllSorted();
                            Severity: Major
                            Found in Application/People/Person/Frontend/FrontendBasic.php - About 2 hrs to fix

                              Method filterDivisionSubjectList has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function filterDivisionSubjectList(
                                      $tblDivisionSubjectList,
                                      TblYear $filterYear = null,
                                      TblType $filterType = null,
                                      TblLevel $filterLevel = null
                              Severity: Major
                              Found in Application/Education/Graduation/Gradebook/Service.php - About 2 hrs to fix

                                Method updateAbiturPrepareInformation has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function updateAbiturPrepareInformation(
                                        IFormInterface $form,
                                        TblPrepareCertificate $tblPrepare,
                                        TblPerson $tblPerson,
                                        $Data,
                                Severity: Major
                                Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

                                  Method countCourses has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private static function countCourses(
                                          TblLevel $tblLevel,
                                          TblDivision $tblDivision,
                                          &$countAdvancedCourseArray,
                                          &$countBasicCourseArray,
                                  Severity: Major
                                  Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                                    Method setCoursesMatrix has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private static function setCoursesMatrix(
                                            &$Content,
                                            $personAdvancedCourseList
                                        ) {
                                    
                                    
                                    Severity: Major
                                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

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

                                      <?php
                                      namespace SPHERE\Application\Platform\System\Anonymous;
                                      
                                      use SPHERE\Application\Platform\Gatekeeper\Authorization\Account\Account;
                                      use SPHERE\Application\Platform\Gatekeeper\Authorization\Consumer\Consumer;
                                      Severity: Minor
                                      Found in Application/Platform/System/Anonymous/Frontend.php - About 2 hrs to fix

                                        File TblGrade.php has 268 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        <?php
                                        namespace SPHERE\Application\Education\Graduation\Gradebook\Service\Entity;
                                        
                                        use Doctrine\ORM\Mapping\Cache;
                                        use Doctrine\ORM\Mapping\Column;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language