DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getEZSHDateSign has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getEZSHDateSign($personId)
    {

        $SectionList = array();
        $Section = new Section();

    Method createProfileListExcel has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function createProfileListExcel($PersonList, $tblPersonList)
        {
    
            if (!empty( $PersonList )) {
    
    
    Severity: Major
    Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 2 hrs to fix

      Method createClassList has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createClassList(TblDivision $tblDivision)
          {
      
              $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
      
      
      Severity: Major
      Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 2 hrs to fix

        Method getStudentFilterForm has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function getStudentFilterForm()
            {
                $tblLevelShowList = array();
        
                $tblLevelList = Division::useService()->getLevelAll();
        Severity: Major
        Found in Application/Reporting/Standard/Person/Frontend.php - About 2 hrs to fix

          Method sanitizeDivision has 57 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function sanitizeDivision($Value)
              {
                  $LevelName = null;
                  $DivisionName = null;
                  if ($Value === '') {
          Severity: Major
          Found in Application/Transfer/Untis/Import/LectureshipGateway.php - About 2 hrs to fix

            Method getInvoiceDebtorList has 57 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getInvoiceDebtorList(
                    $Year,
                    $Month,
                    $BasketName,
                    $IsFrontend
            Severity: Major
            Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 2 hrs to fix

              Function registerRoute has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function registerRoute(RouteParameter $Route)
                  {
              
                      try {
                          if (Access::useService()->hasAuthorization($Route->getPath())) {
              Severity: Minor
              Found in Application/Dispatcher.php - About 2 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 getAdditionalSubjectLanes has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
              Open

                  private function getAdditionalSubjectLanes(
                      $personId,
                      $TextSize = '14px',
                      $IsGradeUnderlined = false
                  ) {

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

                  public static function tableUsedSubject($DivisionId = null)
                  {
              
                      // get Content
                      $tblDivision = DivisionAPP::useService()->getDivisionById($DivisionId);
              Severity: Minor
              Found in Application/Api/Education/Division/SubjectSelect.php - About 2 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 tablePerson has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function tablePerson($DivisionId = null)
                  {
              
                      // get Content
                      $tblDivision = DivisionApplication::useService()->getDivisionById($DivisionId);
              Severity: Minor
              Found in Application/Api/Education/Division/StudentSelect.php - About 2 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 setPlaceholders has 18 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      $Text,
                      $ItemName,
                      $Year,
                      $TotalPrice,
                      $DebtorSalutation,
              Severity: Major
              Found in Application/Api/Document/Standard/Repository/Billing/Billing.php - About 2 hrs to fix

                Function createNursery has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function createNursery(TblGroup $tblGroup, $PLZ = '')
                    {
                
                        $TableContent = array();
                
                
                Severity: Minor
                Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 2 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 formFilterProspect has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function formFilterProspect(TblSerialLetter $tblSerialLetter = null)
                    {
                
                        $GroupList = array();
                        $tblGroup = Group::useService()->getGroupByMetaTable('PROSPECT');
                Severity: Minor
                Found in Application/Reporting/SerialLetter/SerialLetterForm.php - About 2 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 getGroupTableByResult has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getGroupTableByResult($Result)
                    {
                        $TableSearch = array();
                        if (!empty($Result)) {
                            /** @var AbstractView[]|ViewPerson[] $Row */
                Severity: Minor
                Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 2 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 createSessionCredential has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function createSessionCredential(
                        IFormInterface &$Form,
                        $CredentialName,
                        $CredentialLock,
                        TblIdentification $tblIdentification
                Severity: Minor
                Found in Application/Platform/Gatekeeper/Authorization/Account/Service.php - About 2 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 getServiceTblPeriodByDivision has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getServiceTblPeriodByDivision(TblDivision $tblDivision)
                    {
                
                        if ($this->serviceTblPeriod < 0) {
                            if (($tblLevel = $tblDivision->getTblLevel())

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

                    private function setWelcomeContent($taskList, $columns, $isFuture = false)
                    {
                        foreach ($taskList as $taskId => $list) {
                            if (($tblTask = Evaluation::useService()->getTaskById($taskId))
                                && $tblTestType = $tblTask->getTblTestType()
                Severity: Minor
                Found in Application/Education/Graduation/Evaluation/Service.php - About 2 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 getEditStudentProcessForm has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    private function getEditStudentProcessForm(TblPerson $tblPerson = null)
                    {
                
                        FrontendStudent::setYearAndDivisionForMassReplace($tblPerson, $Year, $Division);
                
                
                Severity: Minor
                Found in Application/People/Person/Frontend/FrontendStudentProcess.php - About 2 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 copyAbiturLeaveGradesFromCertificates has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function copyAbiturLeaveGradesFromCertificates(
                        TblPrepareStudent $tblPrepareStudent,
                        TblPrepareAdditionalGradeType $tblPrepareAdditionalGradeType,
                        TblLeaveStudent $tblLeaveStudent
                    ) {
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Service.php - About 2 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 getAbiturLeaveGradeBySubject has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getAbiturLeaveGradeBySubject($points)
                    {
                
                        if ($points === '15') {
                            return '1+';
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Service.php - About 2 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