DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function frontendWelcome has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendWelcome()
    {

        $Stage = new Stage('Rechteverwaltung');
        $this->menuButton($Stage);
Severity: Minor
Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 4 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 updateDivisionBehaviorTaskAsBulk has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateDivisionBehaviorTaskAsBulk(
        $behaviorTaskAddList,
        $behaviorTaskRemoveTestList
    ) {

Severity: Minor
Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 4 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 getResultForAbiturAverageGrade has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public function  getResultForAbiturAverageGrade(
        $totalPoints
    ) {

        // ist Formel korrekt?
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.php - About 4 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 frontendTeacherSelectDivision has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

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

        $Stage = new Stage('Zeugnisvorbereitung', 'Klasse auswählen');
        $this->setHeaderButtonList($Stage, View::TEACHER);
Severity: Minor
Found in Application/Education/Certificate/Prepare/Frontend.php - About 4 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 getStudentCardSubjectListByPerson has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public function getStudentCardSubjectListByPerson(TblPerson $tblPerson, AbstractDocument $documentClass)
    {

        $resultList = array();
        $list = array();
Severity: Minor
Found in Application/Document/Generator/Service.php - About 4 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 frontendFillSchoolContract has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendFillSchoolContract($PersonId = null)
    {

        $Stage = new Stage('Schulvertrag', 'Erstellen');
        $tblPerson = Person::useService()->getPersonById($PersonId);
Severity: Minor
Found in Application/Document/Custom/Zwickau/Zwickau.php - About 4 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 setStudentLevels has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    private static function setStudentLevels(
        &$Content,
        $countArray,
        $countMigrantsArray,
        $countMigrantsNationalityArray
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 4 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 registerModule has 122 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function registerModule()
    {

        $consumerAcronym = ( Consumer::useService()->getConsumerBySession() ? Consumer::useService()->getConsumerBySession()->getAcronym() : '' );

Severity: Major
Found in Application/Api/Reporting/Custom/Custom.php - About 4 hrs to fix

    Method getSignPart has 122 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function getSignPart($personId, $isExtended = true, $MarginTop = '25px')
        {
            $SignSlice = (new Slice());
            if ($isExtended) {
                $SignSlice->addSection((new Section())
    Severity: Major
    Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 4 hrs to fix

      Method getESRLTeacher has 122 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function getESRLTeacher($personId, $isExtended = true, $MarginTop = '25px')
          {
              $SignSlice = (new Slice());
              if ($isExtended) {
                  $SignSlice->addSection((new Section())

        Method runConvert has 122 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function runConvert($Row)
            {
                $Result = array();
                foreach ($Row as $Part) {
                    $Result = array_merge($Result, $Part);
        Severity: Major
        Found in Application/Transfer/Indiware/Import/LectureshipGateway.php - About 4 hrs to fix

          Method updateRemarkFromFile has 122 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function updateRemarkFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Major
          Found in Application/Transfer/Import/Dresden/Service.php - About 4 hrs to fix

            File ApiBankAccount.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            namespace SPHERE\Application\Api\Billing\Accounting;
            
            use SPHERE\Application\Api\ApiTrait;
            use SPHERE\Application\Api\Dispatcher;
            Severity: Minor
            Found in Application/Api/Billing/Accounting/ApiBankAccount.php - About 4 hrs to fix

              File SignOutCertificate.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace SPHERE\Application\Document\Standard\SignOutCertificate;
              
              use MOC\V\Core\FileSystem\FileSystem;

                Method buildContent has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function buildContent()
                    {
                        $textSize = '11px';
                        $fontFamily = 'MetaPro';
                        $columnHeight = '27';
                Severity: Major
                Found in Application/Api/Document/Custom/Radebeul/Repository/StudentList.php - About 4 hrs to fix

                  Method getContent has 121 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/E10.php - About 4 hrs to fix

                    Method frontendBalancePdf has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendBalancePdf($Balance = array())
                        {
                    
                            $Stage = new Stage('Belegdruck', 'PDF');
                            if(!isset($Balance['Year'])){
                    Severity: Major
                    Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 4 hrs to fix

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

                      <?php
                      
                      namespace SPHERE\Application\Billing\Inventory\Item\Service;
                      
                      use SPHERE\Application\Billing\Accounting\Account\Service\Entity\TblAccount;
                      Severity: Minor
                      Found in Application/Billing/Inventory/Item/Service/Data.php - About 4 hrs to fix

                        Method formDebtorSelection has 120 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function formDebtorSelection($BasketVerificationId = '')
                            {
                        
                                // choose between Add and Edit
                                $SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
                        Severity: Major
                        Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 4 hrs to fix

                          Method getContent has 120 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/E04.php - About 4 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language