DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method showClassList has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function showClassList(Stage $Stage, $DivisionId, $showDownLoadButton = true)
    {

        $tblDivision = Division::useService()->getDivisionById($DivisionId);
        $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
Severity: Major
Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

    Method getBasketTable has 97 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getBasketTable($IsArchive = false)
        {
    
            // kommt manchmal als string
            if($IsArchive == 'false' || $IsArchive === false){
    Severity: Major
    Found in Application/Billing/Bookkeeping/Basket/Frontend.php - About 3 hrs to fix

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

      <?php
      namespace SPHERE\Application\Education\Certificate\Setting;
      
      use SPHERE\Application\Education\Certificate\Generator\Generator;
      use SPHERE\Application\Education\Certificate\Generator\Service\Entity\TblCertificate;
      Severity: Minor
      Found in Application/Education/Certificate/Setting/Frontend.php - About 3 hrs to fix

        Method setGradeLayoutHeaderForSekII has 96 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function setGradeLayoutHeaderForSekII(
                &$subjectPosition = array(),
                $countSubjectColumns = 23,
                $widthFirstColumns = 6,
                $widthLastColumns = 5,

          Method createLanguageListExcel has 96 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createLanguageListExcel($PersonList, $tblPersonList)
              {
          
                  if (!empty( $PersonList )) {
          
          
          Severity: Major
          Found in Application/Reporting/Custom/Herrnhut/Person/Service.php - About 3 hrs to fix

            Method setKamenzReportGsContent has 96 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function setKamenzReportGsContent(
                    $Content
                ) {
            
                    $tblCurrentYearList = false;
            Severity: Major
            Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

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

              class Service extends AbstractService
              {
              
                  /** @var array $AuthorizationRequest */
                  private static $AuthorizationRequest = array();
              Severity: Minor
              Found in Application/Platform/Gatekeeper/Authorization/Access/Service.php - About 3 hrs to fix

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

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

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

                  class Service extends AbstractService
                  {
                  
                      /**
                       * @param bool $doSimulation
                  Severity: Minor
                  Found in Application/Education/Certificate/Generator/Service.php - About 3 hrs to fix

                    File SchoolContract.php has 325 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    namespace SPHERE\Application\Api\Document\Custom\Zwickau\Repository;
                    
                    use SPHERE\Application\Api\Document\AbstractDocument;
                    use SPHERE\Application\Document\Generator\Repository\Document;
                    Severity: Minor
                    Found in Application/Api/Document/Custom/Zwickau/Repository/SchoolContract.php - About 3 hrs to fix

                      Method getDestroyDetailList has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getDestroyDetailList(TblPerson $tblPerson)
                          {
                      
                              $list[] = new Bold('Person: ' . $tblPerson->getLastFirstName());
                              // Group
                      Severity: Major
                      Found in Application/People/Person/Service.php - About 3 hrs to fix

                        File ApiRelationshipToCompany.php has 324 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Created by PhpStorm.
                         * User: Kauschke
                         * Date: 10.01.2019
                        Severity: Minor
                        Found in Application/Api/Contact/ApiRelationshipToCompany.php - About 3 hrs to fix

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

                          <?php
                          
                          namespace SPHERE\Application\Billing\Bookkeeping\Invoice\Service;
                          
                          use SPHERE\Application\Billing\Accounting\Creditor\Service\Entity\TblCreditor;
                          Severity: Minor
                          Found in Application/Billing/Bookkeeping/Invoice/Service/Data.php - About 3 hrs to fix

                            Method frontendSettings has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendSettings($Data = null)
                                {
                                    $stage = new Stage('Mandant' , 'Einstellungen');
                            
                                    if (($tblAccount = Account::useService()->getAccountBySession())
                            Severity: Major
                            Found in Application/Setting/Consumer/Setting/Frontend.php - About 3 hrs to fix

                              Method frontendCustodyShow has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendCustodyShow()
                                  {
                                      $Stage = new Stage('Sorgeberechtigten-Accounts', 'Übersicht');
                              
                                      $Stage->addButton(new Standard('Zurück', '/Setting/User', new ChevronLeft()));
                              Severity: Major
                              Found in Application/Setting/User/Account/Frontend.php - About 3 hrs to fix

                                Method frontendPhoneList has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function frontendPhoneList($GroupId = null)
                                    {
                                
                                        $Stage = new Stage('Individuelle Auswertung', 'Telefonliste');
                                        if (null !== $GroupId) {
                                Severity: Major
                                Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 3 hrs to fix

                                  Method frontendGroupList has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendGroupList($GroupId = null)
                                      {
                                  
                                          $Stage = new Stage('Auswertung', 'Institutionengruppenlisten');
                                          $tblGroupAll = Group::useService()->getGroupAll();
                                  Severity: Major
                                  Found in Application/Reporting/Standard/Company/Frontend.php - About 3 hrs to fix

                                    Method frontendHeadmasterTaskGrades has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function frontendHeadmasterTaskGrades($Id = null, $DivisionId = null)
                                        {
                                            $Stage = new Stage('Notenauftrag', 'Zensurenübersicht');
                                    
                                            $tblTask = false;
                                    Severity: Major
                                    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 hrs to fix

                                      Method setKamenzReportOsContent has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function setKamenzReportOsContent(
                                              $Content
                                          ) {
                                      
                                              $tblCurrentYearList = false;
                                      Severity: Major
                                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                                        File ApiSystemTest.php has 323 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        <?php
                                        
                                        namespace SPHERE\Application\Api\Platform\Test;
                                        
                                        use SPHERE\Application\Api\ApiTrait;
                                        Severity: Minor
                                        Found in Application/Api/Platform/Test/ApiSystemTest.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language