DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method setDivisionStudents has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function setDivisionStudents(
        &$Content,
        TblPerson $tblPerson,
        TblLevel $tblLevel,
        TblDivision $tblDivision,
Severity: Major
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

    Method formLevelDivision has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function formLevelDivision(TblLevel $tblLevel = null, TblDivision $tblDivision = null, $future = false)
        {
    
            $tblLevelAll = Division::useService()->getLevelAll();
            $acNameAll = array();
    Severity: Major
    Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

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

      class Service extends AbstractService
      {
      
          /**
           * @param bool $doSimulation
      Severity: Minor
      Found in Application/Contact/Mail/Service.php - About 2 hrs to fix

        ApiBasket has 23 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class ApiBasket extends Extension implements IApiInterface
        {
        
            // registered method
            use ApiTrait;
        Severity: Minor
        Found in Application/Api/Billing/Bookkeeping/ApiBasket.php - About 2 hrs to fix

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

          class Service extends AbstractService
          {
          
              /**
               * @param bool $doSimulation
          Severity: Minor
          Found in Application/Reporting/Dynamic/Service.php - About 2 hrs to fix

            TblDebtorSelection has 23 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class TblDebtorSelection extends Element
            {
            
                const ATTR_SERVICE_TBL_PERSON_CAUSER = 'serviceTblPersonCauser';
                const ATTR_SERVICE_TBL_PERSON_DEBTOR = 'serviceTblPersonDebtor';

              Integration has 23 functions (exceeds 20 allowed). Consider refactoring.
              Open

              abstract class Integration extends Subject
              {
              
                  /**
                   * @param string $Name
              Severity: Minor
              Found in Application/People/Meta/Student/Service/Data/Integration.php - About 2 hrs to fix

                TblTask has 23 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class TblTask extends Element
                {
                
                    const ATTR_TBL_TEST_TYPE = 'tblTestType';
                    const ATTR_SERVICE_TBL_PERIOD = 'serviceTblPeriod';

                  Method frontendUpdateAccount has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendUpdateAccount($Id = null, $Account = null)
                      {
                  
                          $Stage = new Stage('Benutzerkonto', 'Bearbeiten');
                          $Stage->addButton(new Standard('Zurück', '/Setting/Authorization/Account', new ChevronLeft()));
                  Severity: Major
                  Found in Application/Setting/Authorization/Account/Frontend.php - About 2 hrs to fix

                    Method showDeleteBasketSelection has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function showDeleteBasketSelection($Identifier = '', $BasketVerificationId = '')
                        {
                    
                            $tblBasketVerification = Basket::useService()->getBasketVerificationById($BasketVerificationId);
                            if($tblBasketVerification){
                    Severity: Major
                    Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 2 hrs to fix

                      Method formCreditor has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function formCreditor($Identifier = '', $CreditorId = '')
                          {
                      
                              // choose between Add and Edit
                              $SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
                      Severity: Major
                      Found in Application/Api/Billing/Accounting/ApiCreditor.php - About 2 hrs to fix

                        File StudentService.php has 270 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        namespace SPHERE\Application\Api\People\Meta\Transfer;
                        
                        use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
                        Severity: Minor
                        Found in Application/Api/People/Meta/Transfer/StudentService.php - About 2 hrs to fix

                          Method getFrontendStudentFilter has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getFrontendStudentFilter($modalField, $Year = null, $Division = null, $Node = null)
                              {
                                  /** @var SelectBox|TextField $Field */
                                  $Field = unserialize(base64_decode($modalField));
                                  $CloneField = (new ApiMassReplace())->cloneField($Field, 'CloneField', 'Auswahl/Eingabe '
                          Severity: Major
                          Found in Application/Api/MassReplace/StudentFilter.php - About 2 hrs to fix

                            File EssGsHjThree.php has 270 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESS;
                            
                            use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
                            use SPHERE\Application\Education\Certificate\Generator\Repository\Page;

                              Method getEmergencySlice has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function getEmergencySlice()
                                  {
                              
                                      $slice = new Slice();
                              
                              
                              Severity: Major
                              Found in Application/Api/Document/AbstractDocument.php - About 2 hrs to fix

                                Method getStudentsWithoutDivision has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function getStudentsWithoutDivision(&$count = 0)
                                    {
                                
                                        $personList = array();
                                        if (($tblGroup = Group::useService()->getGroupByMetaTable('STUDENT'))
                                Severity: Major
                                Found in Application/Reporting/KamenzReport/KamenzService.php - About 2 hrs to fix

                                  Method frontendSerialLetterDestroy has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendSerialLetterDestroy($Id = null, $Confirm = false)
                                      {
                                  
                                          $Stage = new Stage('Adresslisten für Serienbriefe', 'Löschen');
                                          if ($Id) {
                                  Severity: Major
                                  Found in Application/Reporting/SerialLetter/Frontend.php - About 2 hrs to fix

                                    Method frontendDestroyList has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function frontendDestroyList($Id = null, $Confirm = false)
                                        {
                                    
                                            $Stage = new Stage('Check-List', 'Löschen');
                                            if ($Id) {
                                    Severity: Major
                                    Found in Application/Reporting/CheckList/Frontend.php - About 2 hrs to fix

                                      Method frontendStudentCourseEdit has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function frontendStudentCourseEdit($Id = null, $Data = null, $Visible = false)
                                          {
                                              $Stage = new Stage('Lehrauftrag', 'Bearbeiten');
                                              $tblIndiwareImportStudent = ($Id !== null ? Import::useService()->getIndiwareImportStudentById($Id) : false);
                                              if (!$tblIndiwareImportStudent) {
                                      Severity: Major
                                      Found in Application/Transfer/Indiware/Import/StudentCourse.php - About 2 hrs to fix

                                        Method createInvoiceItemDebtorList has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function createInvoiceItemDebtorList($InvoiceCauserList)
                                            {
                                        
                                                if(!empty($InvoiceCauserList)){
                                                    $Manager = $this->getConnection()->getEntityManager();
                                        Severity: Major
                                        Found in Application/Billing/Bookkeeping/Invoice/Service/Data.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language