DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function setCourses has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
Open

    private function setCourses(TblPerson $tblPerson = null)
    {

        $advancedCourses = array();
        $basicCourses = array();

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 getProspectTableByResult has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
Open

    public function getProspectTableByResult($Result)
    {

        $TableSearch = array();
        if (!empty($Result)) {
Severity: Minor
Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 6 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 getPriceListByItemAndYear has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPriceListByItemAndYear(
        TblItem $tblItem,
        $Year,
        $MonthFrom = '1',
        $MonthTo = '12',
Severity: Minor
Found in Application/Billing/Bookkeeping/Balance/Service.php - About 6 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 updatePrepareBehaviorGradesAndRemark has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
Open

    public function updatePrepareBehaviorGradesAndRemark(
        IFormInterface $Stage = null,
        TblPrepareCertificate $tblPrepare,
        $Route = 'Teacher',
        $Grades,
Severity: Minor
Found in Application/Education/Certificate/GradeInformation/Service.php - About 6 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 createStaffsFromFile has 163 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/Seelitz/Service.php - About 6 hrs to fix

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

        public function getContent($GroupId = null, $Data = null)
        {
    
            $dataList = array();
            if (($tblPrepareAdditionalGradeList = Prepare::useService()->getPrepareAdditionalGradeListBy(
    Severity: Major
    Found in Application/Education/Certificate/Prepare/Abitur/BlockII.php - About 6 hrs to fix

      Method frontendSubjectTeacherAdd has 163 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendSubjectTeacherAdd($Id = null, $DivisionSubjectId = null, $SubjectTeacherId = null, $PersonId = null)
          {
      
              $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
              if (!$tblDivision) {
      Severity: Major
      Found in Application/Education/Lesson/Division/Frontend.php - About 6 hrs to fix

        File Service.php has 438 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        namespace SPHERE\Application\People\Relationship;
        
        use SPHERE\Application\Corporation\Company\Company;
        use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
        Severity: Minor
        Found in Application/People/Relationship/Service.php - About 6 hrs to fix

          File Support.php has 437 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\People\Meta\Student\Service\Data;
          
          use SPHERE\Application\People\Meta\Student\Service\Entity\TblHandyCap;
          use SPHERE\Application\People\Meta\Student\Service\Entity\TblSpecial;
          Severity: Minor
          Found in Application/People/Meta/Student/Service/Data/Support.php - About 6 hrs to fix

            Method createInterestedPersonList has 162 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function createInterestedPersonList()
                {
            
                    $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Interessent'));
                    $TableContent = array();
            Severity: Major
            Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 6 hrs to fix

              Method frontendScoreSubjectGroup has 162 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method getDivisionMessageTable has 162 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function getDivisionMessageTable(TblDivision $tblDivision, $isAccordion = false, &$totalCount, $IsTableAccordion = false)
                    {
                
                        $list = array();
                        $missingGroupList = array();
                Severity: Major
                Found in Application/Education/Lesson/Division/Filter/Service.php - About 6 hrs to fix

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

                      public static function getContent()
                      {
                          $sliceList = array();
                  
                          $sliceList[] = (new Slice())
                  Severity: Major
                  Found in Application/Api/Document/Standard/Repository/KamenzReport/E05.php - About 6 hrs to fix

                    Method createClubsFromFile has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method getStudentGeneralContent has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function getStudentGeneralContent($PersonId = null)
                          {
                      
                              if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                  $billingSiblingRank = '';
                      Severity: Major
                      Found in Application/People/Person/Frontend/FrontendStudentGeneral.php - About 6 hrs to fix

                        Function checkInputDebtorSelection has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function checkInputDebtorSelection(
                                $BasketVerificationId = '',
                                $DebtorSelection = array()
                            ){
                        
                        
                        Severity: Minor
                        Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 6 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 setCourses has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function setCourses(TblPerson $tblPerson = null)
                            {
                        
                                $advancedCourses = array();
                                $basicCourses = array();

                        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 getSchoolPartAbitur has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function getSchoolPartAbitur($personId, $MarginTop = '20px')
                            {
                        
                                if (($tblSetting = Consumer::useService()->getSetting(
                                        'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))

                        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 getSubjectLanesForRadebeul has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
                        Open

                            protected function getSubjectLanesForRadebeul(
                                $personId,
                                $TextColor = 'black',
                                $TextSize = '13px',
                                $GradeFieldBackgroundColor = 'rgb(224,226,231)',
                        Severity: Minor
                        Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 6 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 fetchDivision has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
                        Open

                            protected function fetchDivision($Value)
                            {
                                if ($Value != '') {
                                    $LevelName = null;
                                    $DivisionName = null;
                        Severity: Minor
                        Found in Application/Transfer/Untis/Import/LectureshipGateway.php - About 6 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

                        Severity
                        Category
                        Status
                        Source
                        Language