DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File Frontend.php has 1386 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Reporting\Standard\Person;

use SPHERE\Application\Api\Reporting\Standard\ApiStandard;
use SPHERE\Application\Education\Lesson\Division\Division;
Severity: Major
Found in Application/Reporting/Standard/Person/Frontend.php - About 3 days to fix

    Function setLeaveContentForSekOne has a Cognitive Complexity of 179 (exceeds 5 allowed). Consider refactoring.
    Open

        private function setLeaveContentForSekOne(
            TblCertificate $tblCertificate = null,
            TblLeaveStudent $tblLeaveStudent = null,
            TblDivision $tblDivision = null,
            TblPerson $tblPerson = null,
    Severity: Minor
    Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 days 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 1379 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace SPHERE\Application\Education\Graduation\Evaluation;
    
    use SPHERE\Application\Education\Graduation\Evaluation\Service\Data;
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Service.php - About 3 days to fix

      Method createStudentsFromFile has 727 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createStudentsFromFile(
              IFormInterface $Form = null,
              UploadedFile $File = null,
              $isFormerStudent = false
          ) {
      Severity: Major
      Found in Application/Transfer/Import/Herrnhut/Service.php - About 3 days to fix

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

        <?php
        namespace SPHERE\Application\Reporting\Custom\Chemnitz\Person;
        
        use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
        use MOC\V\Component\Document\Component\Exception\Repository\TypeFileException;
        Severity: Major
        Found in Application/Reporting/Custom/Chemnitz/Person/Service.php - About 3 days to fix

          File Frontend.php has 1376 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\Setting\User\Account;
          
          use SPHERE\Application\Api\Contact\ApiContactAddress;
          use SPHERE\Application\Api\Setting\UserAccount\ApiUserAccount;
          Severity: Major
          Found in Application/Setting/User/Account/Frontend.php - About 3 days to fix

            Function buildSearchQuery has a Cognitive Complexity of 174 (exceeds 5 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: Minor
            Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 3 days 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 createInterestedPersonsFromFile has a Cognitive Complexity of 174 (exceeds 5 allowed). Consider refactoring.
            Open

                public function createInterestedPersonsFromFile(
                    IFormInterface $Form = null,
                    UploadedFile $File = null
                ) {
            
            
            Severity: Minor
            Found in Application/Transfer/Import/Zwickau/Service.php - About 3 days 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 1338 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * Created by PhpStorm.
             * User: Kauschke
             * Date: 20.02.2017
            Severity: Major
            Found in Application/Transfer/Import/Zwickau/Service.php - About 3 days to fix

              Function createStudentsFromFile has a Cognitive Complexity of 171 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function createStudentsFromFile(
                      IFormInterface $Form = null,
                      UploadedFile $File = null,
                      $DivisionId = null
                  ) {
              Severity: Minor
              Found in Application/Transfer/Import/Chemnitz/Service.php - About 3 days 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 setRepeatersFromCertificates has a Cognitive Complexity of 171 (exceeds 5 allowed). Consider refactoring.
              Open

                  private static function setRepeatersFromCertificates(&$Content, $tblPastYearList, TblType $tblKamenzSchoolType)
                  {
              
                      if ($tblPastYearList) {
                          foreach ($tblPastYearList as $tblPastYear) {
              Severity: Minor
              Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 days 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 createPrepareCertificates has a Cognitive Complexity of 170 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function createPrepareCertificates(
                      IFormInterface $Form = null,
                      TblGenerateCertificate $tblGenerateCertificate,
                      $Data = null
                  ) {
              Severity: Minor
              Found in Application/Education/Certificate/Generate/Service.php - About 3 days 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 1317 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Created by PhpStorm.
               * User: Kauschke
               * Date: 06.07.2016
              Severity: Major
              Found in Application/Transfer/Import/Annaberg/Service.php - About 3 days to fix

                Function createStaffFromFile has a Cognitive Complexity of 169 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function createStaffFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                    {
                
                        /**
                         * Skip to Frontend
                Severity: Minor
                Found in Application/Transfer/Import/Tharandt/Service.php - About 3 days 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 contentTestSelected has a Cognitive Complexity of 169 (exceeds 5 allowed). Consider refactoring.
                Open

                    private function contentTestSelected($DivisionSubjectId, $Test, Stage $Stage, $BasicRoute)
                    {
                
                        $Stage->addButton(new Standard('Zurück', $BasicRoute, new ChevronLeft()));
                
                
                Severity: Minor
                Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 days 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 createCertificateContent has 689 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function createCertificateContent(
                        TblPrepareCertificate $tblPrepare = null,
                        TblLeaveStudent $tblLeaveStudent = null,
                        TblPerson $tblPerson,
                        $Content = array()
                Severity: Major
                Found in Application/Education/Certificate/Prepare/Service.php - About 3 days to fix

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

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 28.09.2018
                  Severity: Major
                  Found in Application/Transfer/Import/BadDueben/Service.php - About 3 days to fix

                    Function frontendSerialLetterPersonSelected has a Cognitive Complexity of 168 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function frontendSerialLetterPersonSelected(
                            $Id = null,
                            $FilterGroup = null,
                            $FilterStudent = null,
                            $FilterPerson = null,
                    Severity: Minor
                    Found in Application/Reporting/SerialLetter/Frontend.php - About 3 days 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 frontendFillStudentTransfer has a Cognitive Complexity of 167 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function frontendFillStudentTransfer($Id = null)
                        {
                    
                            $Stage = new Stage('Schülerüberweisung', 'Erstellen');
                            $Stage->addButton(new Standard('Zurück', '/Document/Standard/StudentTransfer', new ChevronLeft()));
                    Severity: Minor
                    Found in Application/Document/Standard/StudentTransfer/StudentTransfer.php - About 3 days 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 1300 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    namespace SPHERE\Application\Reporting\SerialLetter;
                    
                    use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
                    use MOC\V\Component\Document\Component\Parameter\Repository\FileParameter;
                    Severity: Major
                    Found in Application/Reporting/SerialLetter/Service.php - About 3 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language