DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File AbstractDocument.php has 696 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Api\Document;

use MOC\V\Component\Template\Component\IBridgeInterface;
use SPHERE\Application\Contact\Address\Address;
Severity: Major
Found in Application/Api/Document/AbstractDocument.php - About 1 day to fix

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

    <?php
    namespace SPHERE\Application\Platform\Gatekeeper\Authorization\Account\Service;
    
    use SPHERE\Application\People\Person\Person;
    use SPHERE\Application\People\Person\Service\Entity\TblPerson;

      Function createCompaniesNurseryFromFile has a Cognitive Complexity of 79 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createCompaniesNurseryFromFile(
              IFormInterface $Form = null,
              UploadedFile $File = null
          ) {
      
      
      Severity: Minor
      Found in Application/Transfer/Import/Muldental/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

      Method getGradebookOverviewSlice has 314 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getGradebookOverviewSlice()
          {
      
              if ($this->getTblDivision()
                  && ($tblPerson = $this->getTblPerson())

        Method getSubjectLanes has 312 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function getSubjectLanes(
                $personId,
                $isSlice = true,
                $languagesWithStartLevel = array(),
                $TextSize = '14px',
        Severity: Major
        Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 1 day to fix

          Method buildPages has 311 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method getContent has 311 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/B01_1.php - About 1 day to fix

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

              <?php
              /**
               * Created by PhpStorm.
               * User: Kauschke
               * Date: 12.09.2016
              Severity: Major
              Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 1 day to fix

                Function getStudentTableContent has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getStudentTableContent($Result, $MaxResult = 800)
                    {
                
                        $SearchResult = array();
                        if (!empty($Result)) {
                Severity: Minor
                Found in Application/Setting/User/Account/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

                Function innerJoin has a Cognitive Complexity of 78 (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/Node6.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 Service.php has 682 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                namespace SPHERE\Application\Setting\User\Account;
                
                use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
                use MOC\V\Component\Document\Component\Exception\Repository\TypeFileException;
                Severity: Major
                Found in Application/Setting/User/Account/Service.php - About 1 day to fix

                  Method createExamsContent has 308 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function createExamsContent(
                          $tblTestList,
                          $IsFinalGrade,
                          $studentTable,
                          $tblCurrentSubject,
                  Severity: Major
                  Found in Application/Education/Certificate/Prepare/Frontend.php - About 1 day to fix

                    Method getContent has 307 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/B01.php - About 1 day to fix

                      Function getStudentProcessContent has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public static function getStudentProcessContent($PersonId = null)
                          {
                      
                              if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                  $tblStudent = $tblPerson->getStudent();
                      Severity: Minor
                      Found in Application/People/Person/Frontend/FrontendStudentProcess.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 copySubjectGradesByPerson has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function copySubjectGradesByPerson(TblPrepareCertificate $tblPrepare, TblPerson $tblPerson, $isDiploma = false)
                          {
                      
                              $Manager = $this->getConnection()->getEntityManager();
                      
                      
                      Severity: Minor
                      Found in Application/Education/Certificate/Prepare/Service/Data.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 ModAjax has 305 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          $.fn.ModAjax = function (options) {
                      
                      // Settings
                      
                              var settings = $.extend(true, {
                      Severity: Major
                      Found in Common/Script/ModAjax.js - About 1 day to fix

                        File Lectureship.php has 673 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        namespace SPHERE\Application\Transfer\Untis\Import;
                        
                        use SPHERE\Application\Document\Storage\FilePointer;
                        use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblSubjectTeacher;
                        Severity: Major
                        Found in Application/Transfer/Untis/Import/Lectureship.php - About 1 day to fix

                          Method buildPages has 303 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method buildPages has 303 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Function getStudentExistInTaskList has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function getStudentExistInTaskList($TaskId = false)
                                  {
                                      $tblTask = Evaluation::useService()->getTaskById($TaskId);
                                      if (!$tblTask) {
                                          return false;
                              Severity: Minor
                              Found in Application/Transfer/Indiware/Export/AppointmentGrade/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

                              Severity
                              Category
                              Status
                              Source
                              Language