DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getLayoutRowsForTestPlanning has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getLayoutRowsForTestPlanning($testArray)
    {
        $preview = array();
        if (!empty($testArray)) {
            $trans = array(
Severity: Major
Found in Application/Education/Graduation/Evaluation/Service.php - About 4 hrs to fix

    Method updatePrepareExamGrades has 106 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function updatePrepareExamGrades(
            IFormInterface $form,
            TblPrepareCertificate $tblPrepare,
            TblSubject $tblCurrentSubject,
            TblSubject $tblNextSubject = null,
    Severity: Major
    Found in Application/Education/Certificate/Prepare/Service.php - About 4 hrs to fix

      Method frontendCopyDivision has 106 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendCopyDivision($Id = null, $Division = null, $Level = null)
          {
      
              $Stage = new Stage('Klasse', 'Kopieren');
              $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
      Severity: Major
      Found in Application/Education/Lesson/Division/Frontend.php - About 4 hrs to fix

        File FrontendStudentProcess.php has 342 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 19.12.2018
        Severity: Minor
        Found in Application/People/Person/Frontend/FrontendStudentProcess.php - About 4 hrs to fix

          Method frontendScoreGroupSelect has 105 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendScoreGroupSelect(
                  $Id = null
              ) {
          
                  $Stage = new Stage('Berechnungsvariante', 'Zensuren-Gruppen auswählen');
          Severity: Major
          Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

            Data has 33 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Data extends AbstractData
            {
            
                public function setupDatabaseContent()
                {
            Severity: Minor
            Found in Application/Billing/Inventory/Item/Service/Data.php - About 4 hrs to fix

              Data has 33 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Data extends AbstractData
              {
              
                  public function setupDatabaseContent()
                  {
              Severity: Minor
              Found in Application/Billing/Bookkeeping/Basket/Service/Data.php - About 4 hrs to fix

                TblStudent has 33 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class TblStudent extends Element
                {
                
                    const SERVICE_TBL_PERSON = 'serviceTblPerson';
                    const ATTR_TBL_PREFIX = 'Prefix';
                Severity: Minor
                Found in Application/People/Meta/Student/Service/Entity/TblStudent.php - About 4 hrs to fix

                  Data has 33 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Data extends AbstractData
                  {
                  
                      public function setupDatabaseContent()
                      {
                  Severity: Minor
                  Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 4 hrs to fix

                    Data has 33 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Data extends \SPHERE\Application\Education\Graduation\Gradebook\ScoreRule\Data
                    {
                    
                        public function setupDatabaseContent()
                        {
                    Severity: Minor
                    Found in Application/Education/Graduation/Gradebook/Service/Data.php - About 4 hrs to fix

                      TblGrade has 33 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class TblGrade extends Element
                      {
                      
                          const ATTR_TBL_GRADE_TYPE = 'tblGradeType';
                          const ATTR_TBL_GRADE_TEXT = 'tblGradeText';

                        KamenzReportService has 33 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class KamenzReportService
                        {
                        
                            /**
                             * @param array $Content
                        Severity: Minor
                        Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 hrs to fix

                          File Script.php has 340 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          namespace SPHERE\Common;
                          
                          use MOC\V\Core\FileSystem\FileSystem;
                          use SPHERE\System\Extension\Extension;
                          Severity: Minor
                          Found in Common/Script.php - About 4 hrs to fix

                            Method frontendTeacherDivisionList has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendTeacherDivisionList($IsAllYears = false, $IsGroup = false, $YearId = null)
                                {
                            
                                    $Stage = new Stage('Schülerübersicht', 'Klasse des Schülers Auswählen');
                                    $Stage->addButton(
                            Severity: Major
                            Found in Application/Education/Graduation/Gradebook/Frontend.php - About 4 hrs to fix

                              Method frontendScoreRuleConditionSelect has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendScoreRuleConditionSelect(
                                      $Id = null
                                  ) {
                              
                                      $Stage = new Stage('Berechnungsvorschrift', 'Berechnungsvarianten auswählen');
                              Severity: Major
                              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

                                Method setupDatabaseContent has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function setupDatabaseContent()
                                    {
                                
                                        $hasSubjects = $this->getSubjectAll();
                                
                                
                                Severity: Major
                                Found in Application/Education/Lesson/Subject/Service/Data.php - About 4 hrs to fix

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

                                  <?php
                                  namespace SPHERE\Application\Setting\Consumer\Responsibility;
                                  
                                  use SPHERE\Application\Contact\Address\Address;
                                  use SPHERE\Application\Corporation\Company\Company;
                                  Severity: Minor
                                  Found in Application/Setting/Consumer/Responsibility/Frontend.php - About 4 hrs to fix

                                    Method createAgreementClassList has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function createAgreementClassList(TblDivision $tblDivision)
                                        {
                                    
                                            $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                                            $TableContent = array();
                                    Severity: Major
                                    Found in Application/Reporting/Standard/Person/Service.php - About 4 hrs to fix

                                      Method frontendIdentificationAgb has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function frontendIdentificationAgb($tblAccount, $tblIdentification, $doAccept = 0)
                                          {
                                              $View = new Stage(new MoreItems().' Anmelden', '', $this->getIdentificationEnvironment());
                                      
                                              $tblAccount = Account::useService()->getAccountById($tblAccount);
                                      Severity: Major
                                      Found in Application/Platform/Gatekeeper/Authentication/Frontend.php - About 4 hrs to fix

                                        Method doFragmentDiff has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private static function doFragmentDiff($from_text, $to_text, $delimiters)
                                            {
                                        
                                                // Empty delimiter means character-level diffing.
                                                // In such case, use code path optimized for character-level
                                        Severity: Major
                                        Found in Application/Platform/System/Protocol/Difference/finediff.php - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language