DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function frontendPrepare has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendPrepare($DivisionId = null, $GroupId = null, $Route = 'Teacher')
    {

        $Stage = new Stage('Zeugnisvorbereitungen', 'Übersicht');
        $Stage->addButton(new Standard(
Severity: Minor
Found in Application/Education/Certificate/Prepare/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

Method __construct has 131 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct(
        $DataList,
        Title $TableTitle = null,
        $ColumnDefinition = array(),
        $Interactive = true,
Severity: Major
Found in Common/Frontend/Table/Structure/TableData.php - About 5 hrs to fix

    Method setExamRows has 131 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function setExamRows($personId, $isBellUsed)
        {
            $color = '#BBB';
            $sectionList = array();
    
    

      File EmergencyDocument.php has 385 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Created by PhpStorm.
       * User: Kauschke
       * Date: 09.09.2016

        Method setupDatabaseContent has 131 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function setupDatabaseContent()
            {
        
                /**
                 * CLOUD
        Severity: Major
        Found in Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php - About 5 hrs to fix

          Method createDonorsFromFile has 131 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method createPersonsFromFile has 131 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method frontendPrepareDiplomaAbiturOtherInformation has 131 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendPrepareDiplomaAbiturOtherInformation(
                      $PrepareId = null,
                      $GroupId = null,
                      $PersonId = null,
                      $Data = null
              Severity: Major
              Found in Application/Education/Certificate/Prepare/Abitur/Frontend.php - About 5 hrs to fix

                Method parseScript has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function parseScript($FrontendElement = null)
                    {
                        foreach ($this->Emitter as $Index => $Emitter) {
                            $Method = 'GET';
                            $Data = array();
                Severity: Major
                Found in Common/Frontend/Ajax/Pipeline.php - About 5 hrs to fix

                  Method getFilter has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getFilter($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
                      {
                  
                          $tblWorkSpaceList = Individual::useService()->getWorkSpaceAll($ViewType);
                          $LayoutColumnAll = array();
                  Severity: Major
                  Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 5 hrs to fix

                    Method getContent has 130 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/KamenzReport/G01.php - About 5 hrs to fix

                      File RadebeulJahreszeugnis.php has 382 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Created by PhpStorm.
                       * User: Kauschke
                       * Date: 01.11.2016

                        TblInvoiceItemDebtor has 39 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class TblInvoiceItemDebtor extends Element
                        {
                        
                            const ATTR_SERVICE_TBL_ITEM = 'serviceTblItem';
                            const ATTR_NAME = 'Name';

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

                          class Data extends AbstractData
                          {
                          
                              /**
                               * @return false|ViewYear[]
                          Severity: Minor
                          Found in Application/Education/Lesson/Term/Service/Data.php - About 5 hrs to fix

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

                                public function buildPages(TblPerson $tblPerson = null)
                                {
                            
                                    $personId = $tblPerson ? $tblPerson->getId() : 0;
                            
                            

                              Method allocatePersonParentsContact has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private function allocatePersonParentsContact(&$Data)
                                  {
                              
                                      $Data['Person']['Contact']['All']['Mail'] = '';
                                      $Data['Person']['Contact']['All']['Person']['Mail'] = '';
                              Severity: Major
                              Found in Application/Api/Document/AbstractDocument.php - About 5 hrs to fix

                                Method createNurseryExcel has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function createNurseryExcel($PersonList, $PLZ = '')
                                    {
                                
                                        if (!empty($PersonList)) {
                                
                                
                                Severity: Major
                                Found in Application/Reporting/Custom/Radebeul/Person/Service.php - About 5 hrs to fix

                                  Method setLeaveContentForSekTwo has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function setLeaveContentForSekTwo(
                                          TblCertificate $tblCertificate = null,
                                          TblLeaveStudent $tblLeaveStudent = null,
                                          TblDivision $tblDivision = null,
                                          TblPerson $tblPerson = null,
                                  Severity: Major
                                  Found in Application/Education/Certificate/Prepare/Frontend.php - About 5 hrs to fix

                                    File BeSOFS.php has 381 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository;
                                    
                                    use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
                                    use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
                                    Severity: Minor
                                    Found in Application/Api/Education/Certificate/Generator/Repository/BeSOFS.php - About 5 hrs to fix

                                      Method saveAddBasket has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function saveAddBasket($Identifier = '', $Basket = array())
                                          {
                                      
                                              // Handle error's
                                              if($form = $this->checkInputBasket($Identifier, '', $Basket)){
                                      Severity: Major
                                      Found in Application/Api/Billing/Bookkeeping/ApiBasket.php - About 5 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language