DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendSerialLetter has 178 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendSerialLetter(
        $SerialLetter = null,
        $TabActive = 'STATIC',
        $FilterGroup = null,
        $FilterPerson = null,
Severity: Major
Found in Application/Reporting/SerialLetter/Frontend.php - About 7 hrs to fix

    Method frontendLeaveStudentAbiturInformation has 178 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendLeaveStudentAbiturInformation($Id = null, $Data = null)
        {
    
            if (($tblLeaveStudent = Prepare::useService()->getLeaveStudentById($Id))
                && ($tblPerson = $tblLeaveStudent->getServiceTblPerson())
    Severity: Major
    Found in Application/Education/Certificate/Prepare/Frontend.php - About 7 hrs to fix

      Function filterPersonListByGroupAndDivision has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
      Open

          public function filterPersonListByGroupAndDivision(
              $tblPersonList,
              TblGroup $tblGroup = null,
              TblDivision $tblDivision = null
          ) {
      Severity: Minor
      Found in Application/People/Group/Service.php - About 7 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 getCurrentMainDivisionByPerson has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
      Open

          public function getCurrentMainDivisionByPerson(TblPerson $tblPerson)
          {
      
              if (Group::useService()->existsGroupPerson(Group::useService()->getGroupByMetaTable('STUDENT'),
                  $tblPerson)
      Severity: Minor
      Found in Application/People/Meta/Student/Service.php - About 7 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 getDivisionSubjectAllByPersonAndYear has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
      Open

          public
          function getDivisionSubjectAllByPersonAndYear(
              TblPerson $tblPerson,
              TblYear $tblYear
          ) {
      Severity: Minor
      Found in Application/Education/Lesson/Division/Service.php - About 7 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 getProfileStandardNew has 177 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method createClubMembersFromFile has 177 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/Hormersdorf/Service.php - About 7 hrs to fix

          Method setSubjectRow has 176 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function setSubjectRow($personId, $subjectName = ' ', $isForeignLanguage = false, $isLastRow = false)
              {
          
                  $textSize = '13px';
                  $colorPoints = '#BBB';

            Method getContent has 176 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/E04_1.php - About 7 hrs to fix

              Method getContent has 176 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/E07.php - About 7 hrs to fix

                Method frontendListObjectAdd has 175 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendListObjectAdd($ListId = null, $ObjectId = null, $ObjectTypeId = null, $Option = null)
                    {
                
                        $Stage = new Stage('Check-Listen', 'Ein Object einer Check-Liste hinzufügen');
                
                
                Severity: Major
                Found in Application/Reporting/CheckList/Frontend.php - About 7 hrs to fix

                  Service has 50 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Service extends AbstractService
                  {
                  
                      /**
                       * @param bool $doSimulation
                  Severity: Minor
                  Found in Application/Education/Lesson/Subject/Service.php - About 7 hrs to fix

                    File ApiItem.php has 458 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

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

                      Method getContent has 174 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/C01.php - About 6 hrs to fix

                        File GrammarSchool.php has 456 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Created by PhpStorm.
                         * User: Kauschke
                         * Date: 10.03.2017

                          Function formDebtorSelection has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function formDebtorSelection($BasketVerificationId = '')
                              {
                          
                                  // choose between Add and Edit
                                  $SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
                          Severity: Minor
                          Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 6 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 setPhoneNumbersByTypeName has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function setPhoneNumbersByTypeName(TblPerson $tblPerson, $TypeName = 'Privat')
                              {
                          
                                  $IsRemark = false;
                                  if($TypeName == 'Notfall'){
                          Severity: Minor
                          Found in Application/Api/Document/AbstractDocument.php - About 6 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 getCompanyTableByResult has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function getCompanyTableByResult($Result)
                              {
                          
                                  $TableSearch = array();
                                  if (!empty($Result)) {
                          Severity: Minor
                          Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 6 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 doCharDiff has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private static function doCharDiff($from_text, $to_text)
                              {
                          
                                  $result = array();
                                  $jobs = array(array(0, strlen($from_text), 0, strlen($to_text)));
                          Severity: Minor
                          Found in Application/Platform/System/Protocol/Difference/finediff.php - About 6 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 frontendDivisionTeacherTask has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function frontendDivisionTeacherTask($IsAllYears = false, $YearId = null)
                              {
                          
                                  $Stage = new Stage('Notenaufträge', 'Übersicht');
                                  $Stage->setMessage(
                          Severity: Minor
                          Found in Application/Education/Graduation/Evaluation/Frontend.php - About 6 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

                          Severity
                          Category
                          Status
                          Source
                          Language