DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File finediff.php has 506 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * FINE granularity DIFF
 *
 * Computes a set of instructions to convert the content of
Severity: Major
Found in Application/Platform/System/Protocol/Difference/finediff.php - About 1 day to fix

    File Service.php has 505 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace SPHERE\Application\Contact\Address;
    
    use SPHERE\Application\Contact\Address\Service\Data;
    use SPHERE\Application\Contact\Address\Service\Entity\TblAddress;
    Severity: Major
    Found in Application/Contact/Address/Service.php - About 1 day to fix

      Method frontendAbsenceMonth has 203 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendAbsenceMonth($DivisionId = null, $Month = null, $Year = null, $BasicRoute = '')
          {
      
              $Stage = new Stage('Fehlzeiten', 'Monatsübersicht');
              $tblDivision = Division::useService()->getDivisionById($DivisionId);
      Severity: Major
      Found in Application/Education/ClassRegister/Absence/Frontend.php - About 1 day to fix

        File E03.php has 504 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: lehmann
         * Date: 23.06.2017
        Severity: Major
        Found in Application/Api/Document/Standard/Repository/KamenzReport/E03.php - About 1 day to fix

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

              public function formDebtorSelection($Identifier = '', $PersonId = '', $ItemId = '', $DebtorSelectionId = '')
              {
          
                  // choose between Add and Edit
                  $SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
          Severity: Minor
          Found in Application/Api/Billing/Accounting/ApiDebtorSelection.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 getESSSubjectLanes has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function getESSSubjectLanes(
              $personId,
              $marginTop = '10px',
              $isSlice = true,
              $TextSize = self::TEXT_SIZE

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

              public function frontendConfirmPrintCertificate(
                  $PrepareId = null,
                  $DivisionId = null,
                  $IsLeave = false,
                  $Route = 'All'
          Severity: Minor
          Found in Application/Education/Certificate/PrintCertificate/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

          Function setDivisionStudentsForSecondarySchool has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
          Open

              private static function setDivisionStudentsForSecondarySchool(
                  &$Content,
                  $countDivisionStudents
              ) {
          
          
          Severity: Minor
          Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.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 frontendTestTeacher has 201 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendTestTeacher($IsAllYears = false, $YearId = null)
              {
          
                  $Stage = new Stage('Leistungsüberprüfung', 'Auswahl');
                  $Stage->setMessage(
          Severity: Major
          Found in Application/Education/Graduation/Evaluation/Frontend.php - About 1 day to fix

            File E02_1.php has 501 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * Created by PhpStorm.
             * User: lehmann
             * Date: 23.06.2017
            Severity: Major
            Found in Application/Api/Document/Standard/Repository/KamenzReport/E02_1.php - About 1 day to fix

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

              abstract class Data extends \SPHERE\Application\Education\Graduation\Gradebook\MinimumGradeCount\Data
              {
              
                  /**
                   * @param $Name
              Severity: Major
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Data.php - About 1 day to fix

                File E02.php has 499 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace SPHERE\Application\Api\Document\Standard\Repository\KamenzReport;
                
                use SPHERE\Application\Document\Generator\Repository\Element;
                Severity: Minor
                Found in Application/Api/Document/Standard/Repository/KamenzReport/E02.php - About 1 day to fix

                  File Roadmap.php has 498 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  namespace SPHERE\Application\Platform\Roadmap;
                  
                  use SPHERE\Application\IApplicationInterface;
                  use SPHERE\Application\IModuleInterface;
                  Severity: Minor
                  Found in Application/Platform/Roadmap/Roadmap.php - About 7 hrs to fix

                    Function setGradeMirror has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private function setGradeMirror(TblScoreType $tblScoreType = null, $gradeList, $Grade)
                        {
                            $minRange = null;
                            $maxRange = null;
                            if ($tblScoreType) {
                    Severity: Minor
                    Found in Application/Education/Graduation/Evaluation/Frontend.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 frontendLeaveStudentTemplate has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function frontendLeaveStudentTemplate($PersonId = null, $DivisionId = null, $Data = null, $ChangeCertificate = null)
                        {
                            if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                $stage = new Stage('Zeugnisvorbereitung', 'Abgangszeugnis - Schüler');
                                $stage->addButton(new Standard('Zurück', '/Education/Certificate/Prepare/Leave', new ChevronLeft()));
                    Severity: Minor
                    Found in Application/Education/Certificate/Prepare/Frontend.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

                    File Service.php has 495 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    namespace SPHERE\Application\Platform\Gatekeeper\Authorization\Account;
                    
                    use SPHERE\Application\People\Person\Service\Entity\TblPerson;
                    use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Service\Entity\TblRole;
                    Severity: Minor
                    Found in Application/Platform/Gatekeeper/Authorization/Account/Service.php - About 7 hrs to fix

                      Method createStaffsFromFile has 197 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                          {
                      
                              /**
                               * Skip to Frontend
                      Severity: Major
                      Found in Application/Transfer/Import/Muldental/Service.php - About 7 hrs to fix

                        Method createInstitutionFromFile has 197 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          File Service.php has 494 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          namespace SPHERE\Application\Transfer\Indiware\Import;
                          
                          use SPHERE\Application\Education\Lesson\Division\Division;
                          Severity: Minor
                          Found in Application/Transfer/Indiware/Import/Service.php - About 7 hrs to fix

                            Method frontendGroupPersonAdd has 196 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendGroupPersonAdd(
                                    $Id = null,
                                    $DataAddPerson = null,
                                    $DataRemovePerson = null,
                                    $Filter = null,
                            Severity: Major
                            Found in Application/People/Group/Frontend.php - About 7 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language