DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

<?php
namespace SPHERE\Application\Billing\Inventory\Setting;

use SPHERE\Application\Api\Billing\Inventory\ApiSetting;
use SPHERE\Application\Billing\Inventory\Setting\Service\Entity\TblSetting;
Severity: Minor
Found in Application/Billing/Inventory/Setting/Frontend.php - About 7 hrs to fix

    Method loadNameDefinition has 195 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function loadNameDefinition()
        {
    
            // S1
            $this->setNameDefinition(self::TBL_SALUTATION_SALUTATION_S1, 'S1: Anrede');

      Method loadNameDefinition has 195 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function loadNameDefinition()
          {
      
              // S1
              $this->setNameDefinition(self::TBL_SALUTATION_SALUTATION_S1, 'S1: Anrede');

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

        <?php
        namespace SPHERE\Application\Contact\Address;
        
        use SPHERE\Application\Api\Contact\ApiAddressToCompany;
        use SPHERE\Application\Api\Contact\ApiAddressToPerson;
        Severity: Minor
        Found in Application/Contact/Address/Frontend.php - About 7 hrs to fix

          Function loadTestPlanning has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
          Open

              public function loadTestPlanning($Data = null, $IsDivisionTeacher = null, $PersonId = null)
              {
                  $IsDivisionTeacher = $IsDivisionTeacher === 'true';
                  if ($Data === null) {
                      return '';
          Severity: Minor
          Found in Application/Api/Education/Graduation/Evaluation/ApiEvaluation.php - About 7 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function setAutoDroppedSubjects has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
          Open

              public function setAutoDroppedSubjects(TblPrepareCertificate $tblPrepare, TblPerson $tblPerson)
              {
          
                  $gradeString = '';
                  $tblLastDivision = false;
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Service.php - About 7 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function getAutoDroppedSubjects has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getAutoDroppedSubjects(TblPerson $tblPerson, TblDivision $tblCurrentDivision)
              {
          
                  $subjectList = array();
                  $tblLastDivision = false;
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Service.php - About 7 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function getPersonMessageTable has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
          Open

              public static function getPersonMessageTable(TblPerson $tblPerson)
              {
                  if (($tblStudent = $tblPerson->getStudent())
                      && ($tblDivisionList = $tblStudent->getCurrentDivisionList())
                  ) {
          Severity: Minor
          Found in Application/Education/Lesson/Division/Filter/Service.php - About 7 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method getSubjectLanesCustomForChemnitz has 193 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function getSubjectLanesCustomForChemnitz(
                  $personId,
                  $isSlice = true,
                  $languagesWithStartLevel = array(),
                  $TextSize = '14px',
          Severity: Major
          Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 7 hrs to fix

            Method createStaffsFromFile has 193 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                {
            
                    /**
                     * Skip to Frontend
            Severity: Major
            Found in Application/Transfer/Import/Naundorf/Service.php - About 7 hrs to fix

              File StudentCard.php has 488 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace SPHERE\Application\Api\Document\Custom\Radebeul\Repository;
              
              use SPHERE\Application\Api\Document\AbstractDocument;
              Severity: Minor
              Found in Application/Api/Document/Custom/Radebeul/Repository/StudentCard.php - About 7 hrs to fix

                File EsrlStyle.php has 487 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESRL;
                
                use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
                use SPHERE\Application\Education\Certificate\Generator\Generator;

                  File RadebeulBildungsempfehlung.php has 486 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 02.11.2016

                    File Data.php has 485 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    
                    namespace SPHERE\Application\Reporting\CheckList\Service;
                    
                    
                    Severity: Minor
                    Found in Application/Reporting/CheckList/Service/Data.php - About 7 hrs to fix

                      Method frontendScoreTypeSelect has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendScoreTypeSelect(
                              $Id = null,
                              $YearId = null,
                              $Data = null
                          ) {
                      Severity: Major
                      Found in Application/Education/Graduation/Gradebook/Frontend.php - About 7 hrs to fix

                        File Data.php has 485 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        namespace SPHERE\Application\Education\Lesson\Subject\Service;
                        
                        use SPHERE\Application\Education\Lesson\Subject\Service\Entity\TblCategory;
                        use SPHERE\Application\Education\Lesson\Subject\Service\Entity\TblCategorySubject;
                        Severity: Minor
                        Found in Application/Education/Lesson/Subject/Service/Data.php - About 7 hrs to fix

                          Function createMedicalInsuranceClassListExcel has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function createMedicalInsuranceClassListExcel($PersonList, $tblPersonList)
                              {
                          
                                  if (!empty($PersonList)) {
                          
                          
                          Severity: Minor
                          Found in Application/Reporting/Standard/Person/Service.php - About 7 hrs to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          Function getPersonGuardianAllByToPersonList has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function getPersonGuardianAllByToPersonList($tblToPersonList)
                              {
                          
                                  $GuardianList = array();
                                  if ($tblToPersonList && !empty($tblToPersonList)) {
                          Severity: Minor
                          Found in Application/People/Relationship/Service.php - About 7 hrs to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          File Data.php has 482 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          namespace SPHERE\Application\Setting\Consumer\Service;
                          
                          use SPHERE\Application\Contact\Address\Service\Entity\TblAddress;
                          Severity: Minor
                          Found in Application/Setting/Consumer/Service/Data.php - About 7 hrs to fix

                            File BeMi.php has 482 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository;
                            
                            use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
                            use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
                            Severity: Minor
                            Found in Application/Api/Education/Certificate/Generator/Repository/BeMi.php - About 7 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language