DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

class Data extends AbstractData
{

    /**
     * @return false|ViewPerson[]
Severity: Minor
Found in Application/People/Person/Service/Data.php - About 2 hrs to fix

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

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

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

          public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false, $Anchor = null)
          {
      
              if( !empty( $Anchor ) ) {
                  $this->setName($Name.' '.new Link() );
      Severity: Major
      Found in Common/Frontend/Link/Repository/AbstractLink.php - About 2 hrs to fix

        Method formSchoolCompanyCreate has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function formSchoolCompanyCreate()
            {
        
                $PanelSelectCompanyTitle = new PullClear(
                    'Schule auswählen:'
        Severity: Major
        Found in Application/Setting/Consumer/School/Frontend.php - About 2 hrs to fix

          Method getRelationshipList has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function getRelationshipList(TblPerson $tblPerson, $list, $isDeepSearch)
              {
                  if (($tblRelationshipList = Relationship::useService()->getPersonRelationshipAllByPerson($tblPerson))) {
                      foreach ($tblRelationshipList as $tblToPerson) {
                          if (($tblType = $tblToPerson->getTblType())
          Severity: Major
          Found in Application/Contact/Address/Frontend.php - About 2 hrs to fix

            Method setFieldValue has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function setFieldValue($DataPost)
                {
            //        echo new Code(print_r($DataPost, true));
            //        exit;
            
            

              Method createClassListExcel has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method loadNameDefinition has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function loadNameDefinition()
                    {
                
                //        //NameDefinition
                        $this->setNameDefinition(self::TBL_SUBJECT_NAME_FOREIGN_LANGUAGE_1, 'Fremdsprache 1: Fach');

                  Method formCreateStandard has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function formCreateStandard(TblAccount $tblAccount)
                      {
                  
                          // possible Filter
                          $DataAll = $this->FilterPackAll;
                  Severity: Major
                  Found in Application/Reporting/Dynamic/Frontend.php - About 2 hrs to fix

                    Method frontendRight has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendRight($Name = null)
                        {
                    
                            $Stage = new Stage('Berechtigungen', 'Rechte');
                            $this->menuButton($Stage);
                    Severity: Major
                    Found in Application/Platform/Gatekeeper/Authorization/Access/Frontend.php - About 2 hrs to fix

                      Method getInvoiceUpPaidList has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getInvoiceUpPaidList()
                          {
                      
                              $TableContent = array();
                              if($tblInvoiceItemDebtorList = Invoice::useService()->getInvoiceItemDebtorByIsPaid()){
                      Severity: Major
                      Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 2 hrs to fix

                        Method getDebtorTable has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getDebtorTable($GroupId)
                            {
                        
                                $TableContent = array();
                                if(($tblGroup = Group::useService()->getGroupById($GroupId))){
                        Severity: Major
                        Found in Application/Billing/Accounting/Debtor/Frontend.php - About 2 hrs to fix

                          Method createTask has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function createTask(IFormInterface $Stage = null, $Task, TblYear $tblYear = null)
                              {
                          
                                  /**
                                   * Skip to Frontend
                          Severity: Major
                          Found in Application/Education/Graduation/Evaluation/Service.php - About 2 hrs to fix

                            Method getAbsenceAllByDay has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getAbsenceAllByDay(\DateTime $dateTime, TblType $tblType = null, $divisionList = array())
                                {
                                    $resultList = array();
                                    $tblAbsenceList = array();
                                    if (!empty($divisionList)
                            Severity: Major
                            Found in Application/Education/ClassRegister/Absence/Service.php - About 2 hrs to fix

                              File StudentSelect.php has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /**
                               * Created by PhpStorm.
                               * User: Kauschke
                               * Date: 30.05.2017
                              Severity: Minor
                              Found in Application/Api/Education/Division/StudentSelect.php - About 2 hrs to fix

                                File Integration.php has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

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

                                  Method processRow has 17 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          PhpExcel $Document,
                                          $Location,
                                          $RunY,
                                          $countPerson,
                                          $countCompany,
                                  Severity: Major
                                  Found in Application/Transfer/Import/LebensweltZwenkau/Service.php - About 2 hrs to fix

                                    Method getCustodyFilterForm has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private function getCustodyFilterForm()
                                        {
                                            $tblLevelShowList = array();
                                    
                                            $tblLevelList = Division::useService()->getLevelAll();
                                    Severity: Major
                                    Found in Application/Setting/User/Account/Frontend.php - About 2 hrs to fix

                                      Method frontendPasswordGeneration has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function frontendPasswordGeneration($Id = null, $Path = '/Setting/User', $IsParent = false, $Data = null)
                                          {
                                      
                                              $Stage = new Stage('Account Passwort', 'neu generieren');
                                              if ($Id) {
                                      Severity: Major
                                      Found in Application/Setting/User/Account/Frontend.php - About 2 hrs to fix

                                        Method frontendLayoutCompanyNew has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function frontendLayoutCompanyNew(TblCompany $tblCompany)
                                            {
                                        
                                                if (($tblAddressList = Address::useService()->getAddressAllByCompany($tblCompany))){
                                                    $LayoutRowList = array();
                                        Severity: Major
                                        Found in Application/Contact/Address/Frontend.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language