DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendUpdateGroupImport has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendUpdateGroupImport($File = null)
    {

        $View = new Stage('Import Dresden', 'Personen/Institutionen-Gruppen-Daten');
        $View->setContent(
Severity: Minor
Found in Application/Transfer/Import/Dresden/Frontend.php - About 1 hr to fix

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

        public static function registerModule()
        {
    
            /**
             * Register Module
    Severity: Minor
    Found in Application/Billing/Bookkeeping/Balance/Balance.php - About 1 hr to fix

      Method getSupportForReportingByPerson has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getSupportForReportingByPerson(TblPerson $tblPerson)
          {
              $tblSupport = false;
              if (($tblSupportType = Student::useService()->getSupportTypeByName('Förderbescheid'))
                  && ($tblSupportList = Student::useService()->getSupportAllByPersonAndSupportType($tblPerson, $tblSupportType))
      Severity: Minor
      Found in Application/People/Meta/Student/Service/Service/Support.php - About 1 hr to fix

        Method createGroup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function createGroup(IFormInterface $Form = null, $Group)
            {
        
                /**
                 * Skip to Frontend
        Severity: Minor
        Found in Application/People/Group/Service.php - About 1 hr to fix

          Method updateGroup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function updateGroup(IFormInterface $Form = null, TblGroup $tblGroup, $Group)
              {
          
                  /**
                   * Skip to Frontend
          Severity: Minor
          Found in Application/People/Group/Service.php - About 1 hr to fix

            Method getCurrentMainDivisionByPerson has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getCurrentMainDivisionByPerson(TblPerson $tblPerson)
                {
            
                    if (Group::useService()->existsGroupPerson(Group::useService()->getGroupByMetaTable('STUDENT'),
                        $tblPerson)
            Severity: Minor
            Found in Application/People/Meta/Student/Service.php - About 1 hr to fix

              Method setTableTask has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function setTableTask(Schema &$Schema, Table $tblTestType)
                  {
              
                      $Table = $this->getConnection()->createTable($Schema, 'tblTask');
                      if (!$this->getConnection()->hasColumn('tblTask', 'Name')) {
              Severity: Minor
              Found in Application/Education/Graduation/Evaluation/Service/Setup.php - About 1 hr to fix

                Method getTestListForPlanning has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getTestListForPlanning($tblDivisionList, TblGradeType $tblGradeType = null, $isHighlighted = false)
                    {
                
                        $result = array();
                        $tblGradeTypeList = array();
                Severity: Minor
                Found in Application/Education/Graduation/Evaluation/Service.php - About 1 hr to fix

                  Method getTeacherContent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function getTeacherContent($PersonId = null)
                      {
                          if (($tblPerson = Person::useService()->getPersonById($PersonId))
                              && ($tblGroup = Group::useService()->getGroupByMetaTable('TEACHER'))
                              && Group::useService()->existsGroupPerson($tblGroup, $tblPerson)
                  Severity: Minor
                  Found in Application/People/Person/Frontend/FrontendTeacher.php - About 1 hr to fix

                    Method createGrade has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createGrade(
                            TblPerson $tblPerson,
                            TblPerson $tblPersonTeacher = null,
                            TblDivision $tblDivision,
                            TblSubject $tblSubject,
                    Severity: Minor
                    Found in Application/Education/Graduation/Gradebook/Service/Data.php - About 1 hr to fix

                      Method getForm has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getForm()
                          {
                      
                              $form = new Form(array(
                                  new FormGroup(array(
                      Severity: Minor
                      Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 1 hr to fix

                        Method formAbsence has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private function formAbsence()
                            {
                        
                                return new Form(new FormGroup(array(
                                    new FormRow(array(
                        Severity: Minor
                        Found in Application/Education/ClassRegister/Absence/Frontend.php - About 1 hr to fix

                          Method formLinkSubject has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function formLinkSubject(TblCategory $tblCategory = null)
                              {
                          
                                  $tblSubjectAllSelected = $tblCategory->getTblSubjectAll();
                                  if ($tblSubjectAllSelected) {
                          Severity: Minor
                          Found in Application/Education/Lesson/Subject/Frontend.php - About 1 hr to fix

                            Method getCourses has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function getCourses(TblPerson $tblPerson, TblDivision $tblDivision, $advancedCourses, $basicCourses)
                                {
                            
                                    if (($tblDivisionSubjectList = Division::useService()->getDivisionSubjectByDivision($tblDivision))) {
                                        foreach ($tblDivisionSubjectList as $tblDivisionSubjectItem) {
                            Severity: Minor
                            Found in Application/Document/Generator/Service.php - About 1 hr to fix

                              Method frontendEditYear has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendEditYear($Id = null, $Year = null)
                                  {
                              
                                      $Stage = new Stage('Schuljahr', 'Bearbeiten');
                                      $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Term/Create/Year', new ChevronLeft()));
                              Severity: Minor
                              Found in Application/Education/Lesson/Term/Frontend.php - About 1 hr to fix

                                Method findBy has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function findBy($PropertySearch)
                                    {
                                
                                        Debugger::screenDump($PropertySearch);
                                        if (isset( $PropertySearch[$this->getCriteriaName()] )) {
                                Severity: Minor
                                Found in System/Database/Filter/Criteria/AbstractCriteria.php - About 1 hr to fix

                                  Method getRequest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getRequest($UrlRequestList, $CurlOptionList = array())
                                      {
                                  
                                          $CurlHandleList = array();
                                          $ResultData = array();
                                  Severity: Minor
                                  Found in System/Token/Type/YubiKey.php - About 1 hr to fix

                                    Function onLoadEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            var onLoadEvent = function (jqXHR, Config) {
                                                if (settings.Notify.onLoad.Message.length > 0 || settings.Notify.onLoad.Title.length > 0) {
                                                    var Notify = getNotifyObject();
                                                    if (!Notify) {
                                                        document.ModAjax.NotifyHandler[settings.Notify.Hash] = $.notify({
                                    Severity: Minor
                                    Found in Common/Script/ModAjax.js - About 1 hr to fix

                                      Method setStep has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function setStep(Step $Step)
                                          {
                                      
                                              if( preg_match('!^/Api/!is', $Step->getRoute() ) ) {
                                                  return null;
                                      Severity: Minor
                                      Found in Common/Frontend/Link/Repository/Backward/History.php - About 1 hr to fix

                                        Function onErrorEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                var onErrorEvent = function (request, status, error) {
                                                    isErrorEvent = true;
                                                    var Notify = getNotifyObject();
                                                    if (Notify) {
                                                        Notify.update({progress: getRandomInt(50, 80)});
                                        Severity: Minor
                                        Found in Common/Script/ModAjax.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language