DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File SerialLetterFilter.php has 607 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Reporting\SerialLetter;


use SPHERE\Application\Contact\Address\Address;
Severity: Major
Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 1 day to fix

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

    <?php
    namespace SPHERE\Application\Platform\Gatekeeper\Authorization\Access;
    
    use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Frontend\Summary;
    use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Service\Entity\TblLevel;
    Severity: Major
    Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 1 day to fix

      Method getOrientationStandard has 264 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
          {
      
              $tblPerson = Person::useService()->getPersonById($personId);
      
      
      Severity: Major
      Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 1 day to fix

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

          Function setPersonAddressSelection has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
          Open

              public function setPersonAddressSelection(
                  IFormInterface $Form,
                  TblSerialLetter $tblSerialLetter,
                  TblPerson $tblPerson,
                  $Check,
          Severity: Minor
          Found in Application/Reporting/SerialLetter/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

          Function panelSubjectList has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
          Open

              private function panelSubjectList(
                  $Identifier,
                  $Title,
                  $Label,
                  $SubjectList,
          Severity: Minor
          Found in Application/People/Person/Frontend/FrontendStudentSubject.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 frontendSubjectPersonAdd has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
          Open

              public function frontendSubjectPersonAdd(
                  $Id = null,
                  $SubjectId = null,
                  $Group = null,
                  $DataAddPerson = null,
          Severity: Minor
          Found in Application/Education/Lesson/Subject/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

          ApiPersonEdit has 70 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class ApiPersonEdit extends Extension implements IApiInterface
          {
          
              use ApiTrait;
          
          
          Severity: Major
          Found in Application/Api/People/Person/ApiPersonEdit.php - About 1 day to fix

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

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

              Method createCheckListExcel has 258 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function createCheckListExcel(
                      TblList $tblList,
                      $YearPersonId = null,
                      $LevelPersonId = null,
                      $SchoolOption1Id = null,
              Severity: Major
              Found in Application/Reporting/CheckList/Service.php - About 1 day to fix

                Method getEZSHSubjectLanes has 257 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function getEZSHSubjectLanes(
                        $personId,
                        $isSlice = true,
                        $languagesWithStartLevel = array(),
                        $isTitle = true,

                  Method frontendPrintClassList has 257 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendPrintClassList($DivisionId = null)
                      {
                  
                          $Stage = new Stage('ESZC Auswertung', 'Klassenliste zum Ausdrucken');
                          if (null !== $DivisionId) {
                  Severity: Major
                  Found in Application/Reporting/Custom/Chemnitz/Person/Frontend.php - About 1 day to fix

                    Function getTestLinkPanel has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getTestLinkPanel(
                            TblYear $tblYear,
                            TblDivisionSubject $tblDivisionSubjectSelected
                        ) {
                            $panel = false;
                    Severity: Minor
                    Found in Application/Education/Graduation/Evaluation/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

                    Function outerJoin has a Cognitive Complexity of 65 (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/Node4.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 591 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * Created by PhpStorm.
                     * User: Kauschke
                     * Date: 08.03.2017
                    Severity: Major
                    Found in Application/Document/Generator/Service.php - About 1 day to fix

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

                          public function buildDocument($pageList = array())
                          {
                              return (new Frame())->addDocument((new Document())
                                  ->addPage((new Page())
                                      ->addSlice((new Slice())
                      Severity: Major
                      Found in Application/Api/Document/Standard/Repository/EnrollmentDocument.php - About 1 day to fix

                        File B01_1.php has 587 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Created by PhpStorm.
                         * User: lehmann
                         * Date: 27.06.2017

                          Function previewMultiPdf has a Cognitive Complexity of 64 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public static function previewMultiPdf($PrepareId = null, $GroupId = null, $Name = 'Zeugnis', $Redirect = true)
                              {
                          
                                  if ($Redirect) {
                                      return self::displayWaitingPage('/Api/Education/Certificate/Generator/PreviewMultiPdf', array(
                          Severity: Minor
                          Found in Application/Api/Education/Certificate/Generator/Creator.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 buildPages has 252 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

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

                                public function buildPages(TblPerson $tblPerson = null)
                                {
                            
                                    $personId = $tblPerson ? $tblPerson->getId() : 0;
                            
                            
                              Severity
                              Category
                              Status
                              Source
                              Language