DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

    private function setStudentOverviewStage(
        $DivisionId,
        $GroupId,
        $PersonId,
        Stage $Stage,
Severity: Major
Found in Application/Education/Graduation/Gradebook/Frontend.php - About 5 hrs to fix

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

    class Service extends AbstractService
    {
    
        /**
         * @return false|ViewAddressToPerson[]
    Severity: Minor
    Found in Application/Contact/Address/Service.php - About 5 hrs to fix

      Data has 41 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Data extends AbstractData
      {
      
          public function setupDatabaseContent()
          {
      Severity: Minor
      Found in Application/Reporting/SerialLetter/Service/Data.php - About 5 hrs to fix

        Frontend has 41 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Frontend extends Extension implements IFrontendInterface
        {
        
            /**
             * @return Stage
        Severity: Minor
        Found in Application/Education/Graduation/Evaluation/Frontend.php - About 5 hrs to fix

          File CosHjPri.php has 395 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\EVSC;
          
          use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;

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

              Method copySubjectGradesByPrepare has 136 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function copySubjectGradesByPrepare(TblPrepareCertificate $tblPrepare, $isDiploma = false)
                  {
              
                      $Manager = $this->getConnection()->getEntityManager();
              
              
              Severity: Major
              Found in Application/Education/Certificate/Prepare/Service/Data.php - About 5 hrs to fix

                Function getFilter has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getFilter($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
                    {
                
                        $tblWorkSpaceList = Individual::useService()->getWorkSpaceAll($ViewType);
                        $LayoutColumnAll = array();
                Severity: Minor
                Found in Application/Api/Reporting/Individual/ApiIndividual.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 saveEditDebtorSelection has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function saveEditDebtorSelection(
                        $Identifier = '',
                        $PersonId = '',
                        $ItemId = '',
                        $DebtorSelectionId = '',
                Severity: Minor
                Found in Application/Api/Billing/Accounting/ApiDebtorSelection.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 setGradeLayoutBody has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

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

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

                    public function createExtendedClassListExcel($PersonList, $tblPersonList)
                    {
                
                        if (!empty( $PersonList )) {
                
                
                Severity: Minor
                Found in Application/Reporting/Custom/Herrnhut/Person/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 updateDynamicSerialCompany has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function updateDynamicSerialCompany(TblSerialLetter $tblSerialLetter, $tblCompanySearchList)
                    {
                
                        if (!empty($tblCompanySearchList)) {
                
                
                Severity: Minor
                Found in Application/Reporting/SerialLetter/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 isCredentialValid has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    private function isCredentialValid($Username, $Password, $TokenString, TblIdentification $tblIdentification)
                    {
                
                        if (false === ($tblAccount = $this->getAccountByCredential($Username, $Password, $tblIdentification))) {
                            return false;
                Severity: Minor
                Found in Application/Platform/Gatekeeper/Authorization/Account/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 updatePersonService has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function updatePersonService(TblPerson $tblPerson, $Person)
                    {
                        // SSw-699 Bearbeitung Stammdaten (Anrede -> automatisches Geschlecht)
                        $updateGender = false;
                        $salutationId = ($tblSalutationOld = $tblPerson->getTblSalutation()) ? $tblSalutationOld->getId() : 0;
                Severity: Minor
                Found in Application/People/Person/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 updateScoreRuleSubjectGroup has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function updateScoreRuleSubjectGroup(
                        IFormInterface $Stage = null,
                        TblScoreRule $tblScoreRule,
                        TblYear $tblYear = null,
                        $Data = null
                Severity: Minor
                Found in Application/Education/Graduation/Gradebook/ScoreRule/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 updateProposalBehaviorGrade has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function updateProposalBehaviorGrade(
                        IFormInterface $form,
                        TblDivision $tblDivision,
                        TblTask $tblTask,
                        TblGradeType $tblGradeType,
                Severity: Minor
                Found in Application/Education/Graduation/Gradebook/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 frontendPrepareDiplomaAbiturOtherInformation has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function frontendPrepareDiplomaAbiturOtherInformation(
                        $PrepareId = null,
                        $GroupId = null,
                        $PersonId = null,
                        $Data = null
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Abitur/Frontend.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 getYearAllSinceYears has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getYearAllSinceYears($Year)
                    {
                
                        $Now = (new \DateTime('now'))->sub(new \DateInterval('P' . $Year . 'Y'));
                
                
                Severity: Minor
                Found in Application/Education/Lesson/Term/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 innerJoin has a Cognitive Complexity of 36 (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/Node4.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 getYearAllFutureYears has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getYearAllFutureYears($Year)
                    {
                
                        $Now = (new \DateTime('now'))->add(new \DateInterval('P' . $Year . 'Y'));
                
                
                Severity: Minor
                Found in Application/Education/Lesson/Term/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

                Severity
                Category
                Status
                Source
                Language