DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method setLeaveContentForSekOne has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

        TblCertificate $tblCertificate = null,
        TblLeaveStudent $tblLeaveStudent = null,
        TblDivision $tblDivision = null,
        TblPerson $tblPerson = null,
        $Data,
Severity: Major
Found in Application/Education/Certificate/Prepare/Frontend.php - About 1 hr to fix

    Method createExamsButtonList has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            TblPrepareCertificate $tblPrepare,
            &$tblCurrentSubject,
            &$tblNextSubject,
            $tblTestList,
            $SubjectId,
    Severity: Major
    Found in Application/Education/Certificate/Prepare/Frontend.php - About 1 hr to fix

      Method createGenerateCertificate has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              TblYear $tblYear,
              $Date,
              $Name,
              TblCertificateType $tblCertificateType,
              TblTask $tblAppointedDateTask = null,
      Severity: Major
      Found in Application/Education/Certificate/Generate/Service/Data.php - About 1 hr to fix

        Method setStatusForDay has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                TblPerson $tblPerson,
                TblAbsence $tblAbsence,
                TblYear $tblYear,
                &$studentTable,
                \DateTime $date,
        Severity: Major
        Found in Application/Education/ClassRegister/Absence/Frontend.php - About 1 hr to fix

          Method countStudentLevels has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  TblPerson $tblPerson,
                  TblLevel $tblLevel,
                  &$gender,
                  $hasMigrationBackground,
                  $isInPreparationDivisionForMigrants,

            Method getContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getContent()
                {
            
                    return new Layout(
                        new LayoutGroup(
            Severity: Minor
            Found in Common/Documentation/Designer/Book.php - About 1 hr to fix

              Method getCompanySchoolByPerson has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getCompanySchoolByPerson(TblPerson $tblPerson, $IsParent = false)
                  {
              
                      $tblCompany = false;
                      if($IsParent){
              Severity: Minor
              Found in Application/Setting/User/Account/Service.php - About 1 hr to fix

                Method registerRoute has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function registerRoute(RouteParameter $Route)
                    {
                
                        try {
                            if (Access::useService()->hasAuthorization($Route->getPath())) {
                Severity: Minor
                Found in Application/Dispatcher.php - About 1 hr to fix

                  Method setupDatabaseSchema has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function setupDatabaseSchema($Simulate = true, $UTF8 = false)
                      {
                  
                          /**
                           * Table
                  Severity: Minor
                  Found in Application/Contact/Address/Service/Setup.php - About 1 hr to fix

                    Method getDownloadForm has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private function getDownloadForm($ViewType = TblWorkSpace::VIEW_TYPE_ALL) {
                            $tblAccount = Account::useService()->getAccountBySession();
                            if(!empty($tblAccount)) {
                                $tblWorkspaceAll = Individual::useService()->getWorkSpaceAllByAccount($tblAccount, $ViewType);
                                if (!empty($tblWorkspaceAll)) {
                    Severity: Minor
                    Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 1 hr to fix

                      Method replaceLevelTillByPersonIdList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function replaceLevelTillByPersonIdList(
                              $PersonIdArray = array(),
                              TblLevel $tblLevel = null,
                              TblStudentSubjectType $tblStudentSubjectType,
                              TblStudentSubjectRanking $tblStudentSubjectRanking
                      Severity: Minor
                      Found in Application/Api/People/Meta/Subject/StudentService.php - About 1 hr to fix

                        Method replaceLevelFromByPersonIdList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function replaceLevelFromByPersonIdList(
                                $PersonIdArray = array(),
                                TblLevel $tblLevel = null,
                                TblStudentSubjectType $tblStudentSubjectType,
                                TblStudentSubjectRanking $tblStudentSubjectRanking
                        Severity: Minor
                        Found in Application/Api/People/Meta/Subject/StudentService.php - About 1 hr to fix

                          Method checkInputDebtorNumber has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function checkInputDebtorNumber($Identifier = '', $PersonId = '', $DebtorNumberId = '',
                                  $DebtorNumber = array()
                              ){
                          
                                  $Error = false;
                          Severity: Minor
                          Found in Application/Api/Billing/Accounting/ApiDebtor.php - About 1 hr to fix

                            Method getCMSHead has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getCMSHead($PictureHeight = 100)
                                {
                            
                                    if ($this->isSample()) {
                                        $Header = (new Slice)->addSection((new Section())

                              Method getESRLDivisionAndYear has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getESRLDivisionAndYear($personId)
                                  {
                              
                                      $Section = (new Section());
                                      $Section->addElementColumn((new Element())

                                Method createMultiPdf has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function createMultiPdf(TblPerson $tblPerson, $tblSchoolTypeList, $paperOrientation = 'PORTRAIT')
                                    {
                                
                                        $Data['Person']['Id'] = $tblPerson->getId();
                                        $pageList = array();
                                Severity: Minor
                                Found in Application/Api/Document/Creator.php - About 1 hr to fix

                                  Method getEZSHCustody has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getEZSHCustody()
                                      {
                                  
                                          $SectionList = array();
                                          $SectionList[] = (new Section())->addElementColumn((new Element())

                                    Method setFieldValue has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private function setFieldValue($DataPost)
                                        {
                                    
                                            // PersonGender
                                            $this->FieldValue['Gender'] = '';

                                      Method countSubject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private function countSubject($tblPersonList, $SubjectType)
                                          {
                                      
                                              $result = array();
                                              if (empty( $tblPersonList )) {
                                      Severity: Minor
                                      Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 1 hr to fix

                                        Method createAddressPerson has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function createAddressPerson(
                                                TblSerialLetter $tblSerialLetter,
                                                TblPerson $tblPerson,
                                                TblPerson $tblPersonToAddress,
                                                TblToPerson $tblToPerson = null,
                                        Severity: Minor
                                        Found in Application/Reporting/SerialLetter/Service/Data.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language