DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function countCourses has a Cognitive Complexity of 106 (exceeds 5 allowed). Consider refactoring.
Open

    private static function countCourses(
        TblLevel $tblLevel,
        TblDivision $tblDivision,
        &$countAdvancedCourseArray,
        &$countBasicCourseArray,
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 days 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 frontendListObjectSelect has 427 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendListObjectSelect(
        $ListId = null,
        $ObjectTypeId = null,
        $ObjectTypeSelect = null
    ) {
Severity: Major
Found in Application/Reporting/CheckList/Frontend.php - About 2 days to fix

    Method frontendDivisionShow has 424 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendDivisionShow($Id = null)
        {
    
            $Stage = new Stage('Klassenansicht', 'Übersicht');
            $Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
    Severity: Major
    Found in Application/Education/Lesson/Division/Frontend.php - About 2 days to fix

      Function createStudentMetasFromFile has a Cognitive Complexity of 105 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createStudentMetasFromFile(
              IFormInterface $Form = null,
              UploadedFile $File = null
          ) {
      
      
      Severity: Minor
      Found in Application/Transfer/Import/Naundorf/Service.php - About 2 days 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 setCurrentTaskList has a Cognitive Complexity of 105 (exceeds 5 allowed). Consider refactoring.
      Open

          private function setCurrentTaskList(
              TblDivision $tblDivision,
              TblSubject $tblSubject,
              TblSubjectGroup $tblSubjectGroup = null,
              TblTestType $tblTestType,
      Severity: Minor
      Found in Application/Education/Graduation/Evaluation/Service.php - About 2 days 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 innerJoin has a Cognitive Complexity of 105 (exceeds 5 allowed). Consider refactoring.
      Open

          protected function innerJoin($List)
          {
              $Result = array();
              /** @var AbstractView $Node0 */
              foreach ($List[0] as $Node0) {
      Severity: Minor
      Found in System/Database/Filter/Link/Repository/Node7.php - About 2 days 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 ApiPersonEdit.php has 868 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      namespace SPHERE\Application\Api\People\Person;
      
      use SPHERE\Application\Api\ApiTrait;
      Severity: Major
      Found in Application/Api/People/Person/ApiPersonEdit.php - About 2 days to fix

        Function createStaffsFromFile has a Cognitive Complexity of 104 (exceeds 5 allowed). Consider refactoring.
        Open

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

            public function createAddressPersonGuardian(TblSerialLetter $tblSerialLetter)
            {
                $tblSerialPersonList = SerialLetter::useService()->getSerialPersonBySerialLetter($tblSerialLetter);
                if ($tblSerialPersonList) {
                    $CreateArray = array();
        Severity: Minor
        Found in Application/Reporting/SerialLetter/Service.php - About 2 days 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 frontendDivision has a Cognitive Complexity of 103 (exceeds 5 allowed). Consider refactoring.
        Open

            public function frontendDivision(
                $PrepareId = null,
                $DivisionId = null,
                $IsLeave = false,
                $IsAllYears = false
        Severity: Minor
        Found in Application/Education/Certificate/Approve/Frontend.php - About 2 days 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 buildPages has 414 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function buildPages(TblPerson $tblPerson = null)
            {
        
                $personId = $tblPerson ? $tblPerson->getId() : 0;
        
        

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

          <?php
          
          namespace SPHERE\Application\Reporting\Custom\Herrnhut\Person;
          
          use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
          Severity: Major
          Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 2 days to fix

            File PrimarySchool.php has 849 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

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

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

              <?php
              
              
              namespace SPHERE\Application\Transfer\Import\FuxMedia;
              
              
              Severity: Major
              Found in Application/Transfer/Import/FuxMedia/Service.php - About 2 days to fix

                Function createStaffsFromFile has a Cognitive Complexity of 101 (exceeds 5 allowed). Consider refactoring.
                Open

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

                    public function frontendPrepareDiplomaSetting(
                        $PrepareId = null,
                        $GroupId = null,
                        $SubjectId = null,
                        $Route = null,
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 days 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 outerJoin has a Cognitive Complexity of 101 (exceeds 5 allowed). Consider refactoring.
                Open

                    protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
                    {
                        $Result = array();
                        /** @var AbstractView $Node0 */
                        foreach ($List[0] as $Node0) {
                Severity: Minor
                Found in System/Database/Filter/Link/Repository/Node5.php - About 2 days 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 License.php has 842 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                namespace SPHERE\Application\Document;
                
                use SPHERE\Application\IApplicationInterface;
                use SPHERE\Application\IClusterInterface;
                Severity: Major
                Found in Application/Document/License.php - About 2 days to fix

                  Method setLeaveContentForSekOne has 405 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function setLeaveContentForSekOne(
                          TblCertificate $tblCertificate = null,
                          TblLeaveStudent $tblLeaveStudent = null,
                          TblDivision $tblDivision = null,
                          TblPerson $tblPerson = null,
                  Severity: Major
                  Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 days to fix

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

                    <?php
                    /**
                     * Created by PhpStorm.
                     * User: Kauschke
                     * Date: 08.07.2016
                    Severity: Major
                    Found in Application/Education/ClassRegister/Absence/Frontend.php - About 2 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language