DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function frontendHeadmasterGradeBook has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendHeadmasterGradeBook($IsAllYears = false, $YearId = null)
    {

        $Stage = new Stage('Notenbuch', 'Auswahl');
        $Stage->setMessage(
Severity: Minor
Found in Application/Education/Graduation/Gradebook/Frontend.php - About 1 day 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 __construct has 289 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function __construct()
    {

        /**
         * Source (Library)
Severity: Major
Found in Common/Script.php - About 1 day to fix

    Method frontendSelectContent has 289 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendSelectContent(
            $Division = null,
            $Person = null,
            $Certificate = null,
            $Content = array(),
    Severity: Major
    Found in Application/Education/Certificate/Generator/Frontend.php - About 1 day to fix

      Method setStudentCardContent has 289 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function setStudentCardContent(
              $Data,
              TblPerson $tblPerson,
              AbstractDocument $documentClass,
              TblType $tblType = null
      Severity: Major
      Found in Application/Document/Generator/Service.php - About 1 day to fix

        File E16_01.php has 648 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: lehmann
         * Date: 27.06.2017

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

              public static function getContent()
              {
                  $sliceList = array();
          
                  $sliceList[] = (new Slice())

            File EzshGymAbg.php has 645 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

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

              Method getContent has 287 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/KamenzReportGym/E03.php - About 1 day to fix

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

                <?php
                namespace SPHERE\Application\People\Relationship;
                
                use SPHERE\Application\Api\Contact\ApiRelationshipToCompany;
                use SPHERE\Application\Api\Contact\ApiRelationshipToPerson;
                Severity: Major
                Found in Application/People/Relationship/Frontend.php - About 1 day to fix

                  Method getContent has 286 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/KamenzReportGym/E02.php - About 1 day to fix

                    Function buildContent has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function buildContent()
                        {
                            $textSize = '11px';
                            $fontFamily = 'MetaPro';
                            $columnHeight = '27';
                    Severity: Minor
                    Found in Application/Api/Document/Custom/Radebeul/Repository/StudentList.php - About 1 day 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 getFormField has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getFormField( $PropertyName, $Placeholder = null, $Label = null, IIconInterface $Icon = null, $doResetCount = false )
                        {
                    
                            switch ($PropertyName) {
                                case self::TBL_SUBJECT_NAME_FOREIGN_LANGUAGE_1:

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

                        public function createPersonsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                        {
                    
                            /**
                             * Skip to Frontend
                    Severity: Minor
                    Found in Application/Transfer/Import/Braeunsdorf/Service.php - About 1 day 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 createAbsenceList has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function createAbsenceList(
                            IFormInterface $Stage = null,
                            TblDivision $tblDivision,
                            $BasicRoute = '',
                            \DateTime $date = null,
                    Severity: Minor
                    Found in Application/Education/ClassRegister/Absence/Service.php - About 1 day 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 copyDivision has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public
                        function copyDivision(
                            IFormInterface $Form,
                            TblDivision $tblDivision,
                            $Level,
                    Severity: Minor
                    Found in Application/Education/Lesson/Division/Service.php - About 1 day 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 642 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    namespace SPHERE\Application\Reporting\SerialLetter\Service;
                    
                    use SPHERE\Application\Contact\Address\Address;
                    use SPHERE\Application\Contact\Address\Service\Entity\TblToCompany;
                    Severity: Major
                    Found in Application/Reporting/SerialLetter/Service/Data.php - About 1 day to fix

                      Method getContent has 284 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/KamenzReportGS/D01.php - About 1 day to fix

                        Method createStudentsFromFile has 284 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createStudentsFromFile(
                                IFormInterface $Form = null,
                                UploadedFile $File = null
                            ) {
                        
                        
                        Severity: Major
                        Found in Application/Transfer/Import/Naundorf/Service.php - About 1 day to fix

                          Method createInterestedPersonsFromFile has 284 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function createInterestedPersonsFromFile(
                                  IFormInterface $Form = null,
                                  UploadedFile $File = null
                              ) {
                          
                          
                          Severity: Major
                          Found in Application/Transfer/Import/Braeunsdorf/Service.php - About 1 day to fix

                            Method setGradeOverview has 284 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function setGradeOverview(
                                    TblYear $tblYear,
                                    TblPerson $tblPerson,
                                    $divisionList,
                                    &$rowList,
                            Severity: Major
                            Found in Application/Education/Graduation/Gradebook/Frontend.php - About 1 day to fix
                              Severity
                              Category
                              Status
                              Source
                              Language