DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getContent has 142 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/G01.php - About 5 hrs to fix

    Method frontendChoosePeriod has 142 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendChoosePeriod($Id = null, $Period = null, $Remove = null)
        {
    
            $tblYear = $Id === null ? false : Term::useService()->getYearById($Id);
            if ($tblYear) {
    Severity: Major
    Found in Application/Education/Lesson/Term/Frontend.php - About 5 hrs to fix

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

          public static function getContent()
          {
              $sliceList = array();
              $left = '30%';
      
      
      Severity: Major
      Found in Application/Api/Document/Standard/Repository/KamenzReport/C01.php - About 5 hrs to fix

        File ApiBankReference.php has 401 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/ApiBankReference.php - About 5 hrs to fix

          File ApiDebtor.php has 401 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/ApiDebtor.php - About 5 hrs to fix

            Method createPersonsFromFile has 140 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function updatePassword has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function updatePassword(
                      IFormInterface $Form,
                      TblAccount $tblAccount,
                      $CredentialLock,
                      $CredentialLockSafety
              Severity: Minor
              Found in Application/Setting/MyAccount/Service.php - About 5 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 checkInputBasket has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

                  private function checkInputBasket(
                      $Identifier = '',
                      $BasketId = '',
                      $Basket = array()
                  ){
              Severity: Minor
              Found in Application/Api/Billing/Bookkeeping/ApiBasket.php - About 5 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 getESRLSubjectLanes has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function getESRLSubjectLanes($personId, $Height = '175px')
                  {
              
                      $SubjectSlice = (new Slice());
              
              

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

                  public static function getContent($ShowAll = false)
                  {
                      $validationTable = array();
              
                      if (!$ShowAll) {
              Severity: Minor
              Found in Application/Api/Education/Division/ValidationFilter.php - About 5 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 migrateReporting has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function migrateReporting()
                  {
                      // All available Consumer
                      try {
                          $ConsumerList = $this->getConsumerList();
              Severity: Minor
              Found in Application/Platform/System/Database/ReportingUpgrade.php - About 5 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 sanitizeDivision has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

                  protected function sanitizeDivision($Value)
                  {
                      $LevelName = null;
                      $DivisionName = null;
                      if ($Value === '') {
              Severity: Minor
              Found in Application/Transfer/Untis/Import/LectureshipGateway.php - About 5 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 outerJoin has a Cognitive Complexity of 37 (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/Node3.php - About 5 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 getExaminationsBoard has 139 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function getExaminationsBoard($marginTop, $textSize)
                  {
              
                      $leaderName = '&nbsp;';
                      $leaderDescription = 'Vorsitzende(r)';

                Method setGradeLayoutBody has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function setGradeLayoutBody(
                        $subjectPosition = array(),
                        $typeId = 0,
                        $countSubjectColumns = 18,
                        $countRows = 12,

                  Method frontendTeacherAdd has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendTeacherAdd($Id = null, $TeacherId = null, $Remove = null, $Description = null)
                      {
                  
                          $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                          if (!$tblDivision) {
                  Severity: Major
                  Found in Application/Education/Lesson/Division/Frontend.php - About 5 hrs to fix

                    Method frontendCustodyAdd has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendCustodyAdd($Id = null, $PersonId = null, $Remove = null, $Description = null)
                        {
                    
                            $tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
                            if (!$tblDivision) {
                    Severity: Major
                    Found in Application/Education/Lesson/Division/Frontend.php - About 5 hrs to fix

                      File ApiCreditor.php has 397 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/ApiCreditor.php - About 5 hrs to fix

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

                            public static function getContent()
                            {
                                $sliceList = array();
                        
                        
                        
                        Severity: Major
                        Found in Application/Api/Document/Standard/Repository/KamenzReportGym/E18.php - About 5 hrs to fix

                          Method createClubMembersFromFile has 138 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function createClubMembersFromFile(
                                  IFormInterface $Form = null,
                                  UploadedFile $File = null
                              ) {
                          
                          
                          Severity: Major
                          Found in Application/Transfer/Import/Muldental/Service.php - About 5 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language