DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function createInterestedPersonsFromFile has a Cognitive Complexity of 200 (exceeds 5 allowed). Consider refactoring.
Open

    public function createInterestedPersonsFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Schneeberg/Service.php - About 4 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 processRow has a Cognitive Complexity of 200 (exceeds 5 allowed). Consider refactoring.
Open

    private function processRow(
        PhpExcel $Document,
        $Location,
        $RunY,
        $countPerson,
Severity: Minor
Found in Application/Transfer/Import/LebensweltZwenkau/Service.php - About 4 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 createInterestedFromFile has a Cognitive Complexity of 200 (exceeds 5 allowed). Consider refactoring.
Open

    public function createInterestedFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Minor
Found in Application/Transfer/Import/Tharandt/Service.php - About 4 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 createDivisionReportExcel has 814 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createDivisionReportExcel()
    {

        $tblYearList = false;
        $DataContent = array();
Severity: Major
Found in Application/Reporting/DeclarationBasis/Service.php - About 4 days to fix

    Method buildPage has 810 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function buildPage()
        {
    
            $SmallTextSize = '7px';
            $InputText = '12px';

      Method buildDocument has 807 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function buildDocument($pageList = array())
          {
      
              return (new Frame())->addDocument((new Document())
                  ->addPage((new Page())

        Function outerJoin has a Cognitive Complexity of 197 (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/Node7.php - About 4 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 frontendDashboard has 797 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendDashboard()
            {
        
                $Stage = new Stage('License', 'AGPLv3');
        
        
        Severity: Major
        Found in Application/Document/License.php - About 3 days to fix

          Function getSubjectLanes has a Cognitive Complexity of 192 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function getSubjectLanes(
                  $personId,
                  $isSlice = true,
                  $languagesWithStartLevel = array(),
                  $TextSize = '14px',
          Severity: Minor
          Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 3 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 784 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

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

            <?php
            /**
             * Created by PhpStorm.
             * User: Kauschke
             * Date: 30.09.2016
            Severity: Major
            Found in Application/Transfer/Import/Seelitz/Service.php - About 3 days to fix

              Method createStudentsFromFile has 775 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/Schneeberg/Service.php - About 3 days to fix

                Function createContactsFromFile has a Cognitive Complexity of 188 (exceeds 5 allowed). Consider refactoring.
                Open

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

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

                    private function setSelectStudentStage(Stage $Stage, $DivisionId = null, $GroupId = null, $IsHeadmaster = false)
                    {
                
                        $tblGroup = false;
                        $tblGroupTudor = Group::useService()->getGroupByMetaTable(TblGroup::META_TABLE_TUDOR);
                Severity: Minor
                Found in Application/Education/Graduation/Gradebook/Frontend.php - About 3 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 Service.php has 1429 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace SPHERE\Application\Education\Graduation\Gradebook;
                
                use SPHERE\Application\Education\Certificate\Generator\Generator;
                Severity: Major
                Found in Application/Education/Graduation/Gradebook/Service.php - About 3 days to fix

                  Function getScoreConditionByStudent has a Cognitive Complexity of 183 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function getScoreConditionByStudent(
                          TblScoreRule $tblScoreRule,
                          $tblGradeList,
                          TblYear $tblYear = null,
                          TblPeriod $tblPeriod = null,
                  Severity: Minor
                  Found in Application/Education/Graduation/Gradebook/Service.php - About 3 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 E07.php has 1410 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 27.09.2017
                  Severity: Major
                  Found in Application/Api/Document/Standard/Repository/KamenzReport/E07.php - About 3 days to fix

                    Function createStudentsFromFile has a Cognitive Complexity of 180 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function createStudentsFromFile(
                            IFormInterface $Form = null,
                            UploadedFile $File = null,
                            $Data = null
                        ) {
                    Severity: Minor
                    Found in Application/Transfer/Import/Hormersdorf/Service.php - About 3 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 createInterestedPersonsFromFile has a Cognitive Complexity of 180 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function createInterestedPersonsFromFile(
                            IFormInterface $Form = null,
                            UploadedFile $File = null
                        ) {
                    
                    
                    Severity: Minor
                    Found in Application/Transfer/Import/Naundorf/Service.php - About 3 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

                    Severity
                    Category
                    Status
                    Source
                    Language