DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method createDivisionsFromFile has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createDivisionsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null,
        $TypeId = null,
        $YearId = null
Severity: Major
Found in Application/Transfer/Import/FuxMedia/Service.php - About 3 hrs to fix

    Method setContentForBehaviorTask has 92 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function setContentForBehaviorTask(
            TblTest $tblTest,
            TblTask $tblTask = null,
            TblDivision $tblDivision,
            TblSubject $tblSubject,
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 hrs to fix

      Method frontendScoreGroup has 92 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendScoreGroup(
              $ScoreGroup = null
          ) {
      
              $Stage = new Stage('Zensuren-Gruppe', 'Übersicht');
      Severity: Major
      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 3 hrs to fix

        Method getScoreConditionByStudent has 92 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getScoreConditionByStudent(
                TblScoreRule $tblScoreRule,
                $tblGradeList,
                TblYear $tblYear = null,
                TblPeriod $tblPeriod = null,
        Severity: Major
        Found in Application/Education/Graduation/Gradebook/Service.php - About 3 hrs to fix

          Method frontendDestroyDroppedSubjects has 92 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendDestroyDroppedSubjects(
                  $Id = null,
                  $GroupId = null,
                  $Confirm = false,
                  $Route = null
          Severity: Major
          Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix

            Method setStudentFocus has 92 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private static function setStudentFocus(
                    TblPerson $tblPerson,
                    TblLevel $tblLevel,
                    &$Content,
                    $gender,
            Severity: Major
            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

              Frontend has 30 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Frontend extends FrontendMinimumGradeCount
              {
              
                  const SCORE_RULE = 0;
                  const SCORE_CONDITION = 1;
              Severity: Minor
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 3 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                            if ($tblConsumer
                                && $tblConsumer->getAcronym() == 'EVSR'
                                && $isDivisionTeacherAvailable
                            ) {
                                $firstName = $tblPersonSigner->getFirstName();
                Severity: Critical
                Found in Application/Education/Certificate/Prepare/Service.php - About 3 hrs to fix

                  Method saveEditDebtorSelection has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function saveEditDebtorSelection(
                          $BasketVerificationId,
                          $DebtorSelection = array()
                      ){
                  
                  
                  Severity: Major
                  Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 3 hrs to fix

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

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

                      Method getCmsMsHjSlice has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getCmsMsHjSlice($personId, $TitleText = '')
                          {
                              return (new Slice())
                                  ->stylePaddingLeft('16px')
                                  ->stylePaddingRight('16px')

                        Method createBillingDocumentPdf has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function createBillingDocumentPdf($Data = array(), $Redirect = true)
                            {
                        
                                if ($Redirect) {
                                    return \SPHERE\Application\Api\Education\Certificate\Generator\Creator::displayWaitingPage(
                        Severity: Major
                        Found in Application/Api/Document/Creator.php - About 3 hrs to fix

                          Method frontendCompanyExport has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function frontendCompanyExport(TblSerialLetter $tblSerialLetter)
                              {
                                  $Stage = new Stage('Adresslisten für Serienbriefe', 'Institutionen mit Adressen uns Ansprechpartner herunterladen');
                                  $Stage->addButton(new Standard('Zurück', '/Reporting/SerialLetter', new ChevronLeft()));
                                  $Stage->addButton(new Standard('Bearbeiten', '/Reporting/SerialLetter/Edit', new Edit(),
                          Severity: Major
                          Found in Application/Reporting/SerialLetter/Frontend.php - About 3 hrs to fix

                            Method frontendPrivilegeGrantRight has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendPrivilegeGrantRight($Id)
                                {
                            
                                    $Stage = new Stage('Berechtigungen', 'Privileg');
                                    $this->menuButton($Stage);
                            Severity: Major
                            Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 3 hrs to fix

                              Method frontendLevelGrantPrivilege has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendLevelGrantPrivilege($Id)
                                  {
                              
                                      $Stage = new Stage('Berechtigungen', 'Zugriffslevel');
                                      $this->menuButton($Stage);
                              Severity: Major
                              Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 3 hrs to fix

                                Method frontendRoleGrantLevel has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendRoleGrantLevel($Id)
                                    {
                                
                                        $Stage = new Stage('Berechtigungen', 'Rolle');
                                        $this->menuButton($Stage);
                                Severity: Major
                                Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 3 hrs to fix

                                  Method formHandyCap has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Method frontendLayoutCompanyNew has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function frontendLayoutCompanyNew(Element $tblEntity)
                                        {
                                    
                                            if ($tblEntity instanceof TblPerson) {
                                                $tblRelationshipAll = Relationship::useService()->getCompanyRelationshipAllByPerson($tblEntity);
                                    Severity: Major
                                    Found in Application/People/Relationship/Frontend.php - About 3 hrs to fix

                                      Method getCommonFormRow has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getCommonFormRow($genderId = 0)
                                          {
                                              $tblCommonBirthDatesAll = Common::useService()->getCommonBirthDatesAll();
                                              $tblBirthplaceAll = array();
                                              if ($tblCommonBirthDatesAll) {
                                      Severity: Major
                                      Found in Application/People/Person/Frontend/FrontendCommon.php - About 3 hrs to fix

                                        Method frontendLeaveSelectStudent has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function frontendLeaveSelectStudent($YearId = null)
                                            {
                                                $Stage = new Stage('Zeugnisvorbereitung', 'Abgangszeugnis - Schüler auswählen');
                                                $this->setHeaderButtonList($Stage, View::LEAVE);
                                        
                                        
                                        Severity: Major
                                        Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language