DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

    public function buildPages(TblPerson $tblPerson = null)
    {

        $personId = $tblPerson ? $tblPerson->getId() : 0;

    Method frontendClassList has 157 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendClassList($DivisionId = null)
        {
    
            $Stage = new Stage('Auswertung', 'Klassenliste');
            if (null !== $DivisionId) {
    Severity: Major
    Found in Application/Reporting/Custom/Coswig/Person/Frontend.php - About 6 hrs to fix

      Method frontendSelectTemplate has 157 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendSelectTemplate($PrepareId = null, $DivisionId = null, $Data = null)
          {
      
              $Stage = new Stage('Zeugnis generieren', 'Zeugnisvorlagen auswählen');
      
      
      Severity: Major
      Found in Application/Education/Certificate/Generate/Frontend.php - About 6 hrs to fix

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

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 08.07.2016
        Severity: Minor
        Found in Application/Education/ClassRegister/Absence/Service.php - About 6 hrs to fix

          Function formBasket has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              public function formBasket($Identifier = '', $BasketId = '')
              {
          
                  // SelectBox content
                  $YearList = Invoice::useService()->getYearList(1, 1);
          Severity: Minor
          Found in Application/Api/Billing/Bookkeeping/ApiBasket.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 getAddressPersonAllByPerson has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getAddressPersonAllByPerson(
                  TblSerialLetter $tblSerialLetter,
                  TblPerson $tblPerson
              ) {
          
          
          Severity: Minor
          Found in Application/Reporting/SerialLetter/Service.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 createSepaCreditContent has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createSepaCreditContent(TblBasket $tblBasket)
              {
          
                  $tblInvoiceList = Invoice::useService()->getInvoiceByBasket($tblBasket);
                  if(!$tblInvoiceList){
          Severity: Minor
          Found in Application/Billing/Bookkeeping/Balance/Service.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 updateLeaveStudentAbiturPoints has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              public function updateLeaveStudentAbiturPoints(
                  IFormInterface $Form = null,
                  TblLeaveStudent $tblLeaveStudent,
                  $Data
              ) {
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Service.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 createExamsButtonList has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              private function createExamsButtonList(
                  TblPrepareCertificate $tblPrepare,
                  &$tblCurrentSubject,
                  &$tblNextSubject,
                  $tblTestList,
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/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

          Method buildSearchQuery has 156 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function buildSearchQuery($ViewType = TblWorkSpace::VIEW_TYPE_ALL, $SqlReturn = false)
              {
                  $Binding = Individual::useService()->getBinding();
                  $Manager = $Binding->getEntityManager();
                  $Builder = $Manager->getQueryBuilder();
          Severity: Major
          Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 6 hrs to fix

            Method frontendClassList has 156 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method frontendMedicalInsuranceClassList has 156 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendMedicalInsuranceClassList($DivisionId = null)
                  {
              
                      $Stage = new Stage('Auswertung', 'Klassenlisten Krankenkasse');
                      if (null !== $DivisionId) {
              Severity: Major
              Found in Application/Reporting/Standard/Person/Frontend.php - About 6 hrs to fix

                Method formRelationshipToPerson has 156 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function formRelationshipToPerson(
                        $PersonId,
                        $ToPersonId = null,
                        $setPost = false,
                        $Search = '',
                Severity: Major
                Found in Application/People/Relationship/Frontend.php - About 6 hrs to fix

                  Method contentEditTest has 156 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function contentEditTest(Stage $Stage, $Id, $Test, $BasicRoute)
                      {
                  
                          $tblTest = Evaluation::useService()->getTestById($Id);
                          if ($tblTest) {
                  Severity: Major
                  Found in Application/Education/Graduation/Evaluation/Frontend.php - About 6 hrs to fix

                    File KamenzService.php has 425 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * Created by PhpStorm.
                     * User: lehmann
                     * Date: 23.06.2017
                    Severity: Minor
                    Found in Application/Reporting/KamenzReport/KamenzService.php - About 6 hrs to fix

                      File LectureshipGateway.php has 425 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Import Unterricht. Reihenfolge der Felder aus der CSV-Datei SpUnterricht.csv
                       * wird Dynamisch ausgelesen (Erfolgt in Control)
                       */
                      Severity: Minor
                      Found in Application/Transfer/Indiware/Import/LectureshipGateway.php - About 6 hrs to fix

                        Method createInvoice has 155 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createInvoice(TblBasket $tblBasket)
                            {
                                /** Shopping Content */
                                $tblBasketVerificationList = Basket::useService()->getBasketVerificationAllByBasket($tblBasket);
                                if(!$tblBasketVerificationList){
                        Severity: Major
                        Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 6 hrs to fix

                          Method formSetting has 155 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function formSetting($Category = TblSetting::CATEGORY_REGULAR)
                              {
                          
                                  $elementList = array();
                                  $tblSettingList = Setting::useService()->getSettingAllByCategory($Category);
                          Severity: Major
                          Found in Application/Billing/Inventory/Setting/Frontend.php - About 6 hrs to fix

                            File Data.php has 425 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            namespace SPHERE\Application\People\Relationship\Service;
                            
                            use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
                            use SPHERE\Application\People\Person\Service\Entity\TblPerson;
                            Severity: Minor
                            Found in Application/People/Relationship/Service/Data.php - About 6 hrs to fix

                              File CosHjSek.php has 424 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;
                              use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
                                Severity
                                Category
                                Status
                                Source
                                Language