DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method getContactData has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getContactData()
    {

        $Slice = new Slice();
        if($this->FieldValue['Phone'] === ' '){

    Method formFilterCompany has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function formFilterCompany($tblSerialLetter = null)
        {
    
            $tblGroupList = \SPHERE\Application\Corporation\Group\Group::useService()->getGroupAll();
            $tblGroup = \SPHERE\Application\Corporation\Group\Group::useService()->getGroupByMetaTable('COMMON');
    Severity: Major
    Found in Application/Reporting/SerialLetter/SerialLetterForm.php - About 3 hrs to fix

      Method getEditStudentGeneralForm has 85 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function getEditStudentGeneralForm(TblPerson $tblPerson = null)
          {
      
              /**
               * Panel: Agreement
      Severity: Major
      Found in Application/People/Person/Frontend/FrontendStudentGeneral.php - About 3 hrs to fix

        Method frontendShowCertificate has 85 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method createAbsenceList has 85 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createAbsenceList(
                  IFormInterface $Stage = null,
                  TblDivision $tblDivision,
                  $BasicRoute = '',
                  \DateTime $date = null,
          Severity: Major
          Found in Application/Education/ClassRegister/Absence/Service.php - About 3 hrs to fix

            Method outerJoin has 85 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
                {
                    $Result = array();
                    /** @var AbstractView $Node0 */
                    foreach ($List[0] as $Node0) {
            Severity: Major
            Found in System/Database/Filter/Link/Repository/Node6.php - About 3 hrs to fix

              Method showDeleteDebtorSelection has 84 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function showDeleteDebtorSelection($Identifier = '', $PersonId = '', $ItemId = '', $DebtorSelectionId = '')
                  {
              
                      $tblDebtorSelection = Debtor::useService()->getDebtorSelectionById($DebtorSelectionId);
              
              
              Severity: Major
              Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 3 hrs to fix

                Method downloadMultiPdf has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function downloadMultiPdf($PrepareId = null, $Name = 'Zeugnis', $Redirect = true)
                    {
                
                        if ($Redirect) {
                            return self::displayWaitingPage('/Api/Education/Certificate/Generator/DownLoadMultiPdf', array(
                Severity: Major
                Found in Application/Api/Education/Certificate/Generator/Creator.php - About 3 hrs to fix

                  Method getStudentTransferNewSchool has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function getStudentTransferNewSchool()
                      {
                          $Slice = new Slice();
                          $Slice->addSection((new Section())
                              ->addSliceColumn((new Slice())

                    Method createExtendedClassListExcel has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method createBalanceListExcel has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createBalanceListExcel($PriceList, $tblItemList = array())
                          {
                      
                              $PersonList = array();
                              if(!empty($PriceList)){
                      Severity: Major
                      Found in Application/Billing/Bookkeeping/Balance/Service.php - About 3 hrs to fix

                        Method getContent has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getContent($Data, $GroupId)
                            {
                        
                                if (($tblPrepareAdditionalGradeType = Prepare::useService()->getPrepareAdditionalGradeTypeByIdentifier('LEVEL-10'))
                                    && ($tblPrepareAdditionalGradeList = Prepare::useService()->getPrepareAdditionalGradeListBy(
                        Severity: Major
                        Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 3 hrs to fix

                          File Database.php has 306 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          namespace SPHERE\System\Database;
                          
                          use Doctrine\Common\Cache\ArrayCache;
                          use Doctrine\Common\Cache\MemcachedCache;
                          Severity: Minor
                          Found in System/Database/Database.php - About 3 hrs to fix

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

                            class Data extends AbstractData
                            {
                            
                                public function setupDatabaseContent()
                                {
                            Severity: Minor
                            Found in Application/Transfer/Indiware/Import/Service/Data.php - About 3 hrs to fix

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

                              class Data extends AbstractData
                              {
                              
                                  public function setupDatabaseContent()
                                  {
                              Severity: Minor
                              Found in Application/Platform/Gatekeeper/Authorization/Access/Service/Data.php - About 3 hrs to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                                            if (!$tblTestTemp->isContinues()    // Testdatum
                                                                                || ($tblTestTemp->isContinues()   // Notendatum
                                                                                    && $tblGrade->getDate() && $tblTask->getDate()
                                                                                    && ($taskDate = new \DateTime($tblTask->getDate()))
                                                                                    && ($gradeDate = new \DateTime($tblGrade->getDate()))
                                Severity: Critical
                                Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 hrs to fix

                                  Method layoutAccount has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function layoutAccount()
                                      {
                                  
                                          $tblAccountAll = Account::useService()->getAccountAll();
                                          if ($tblAccountAll) {
                                  Severity: Major
                                  Found in Application/Setting/Authorization/Account/Frontend.php - About 3 hrs to fix

                                    Method changeAccount has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function changeAccount(IFormInterface $Form, TblAccount $tblAccount, $Account)
                                        {
                                    
                                            if (null === $Account) {
                                    
                                    
                                    Severity: Major
                                    Found in Application/Setting/Authorization/Account/Service.php - About 3 hrs to fix

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

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

                                        Method previewMultiPdf has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function previewMultiPdf($PrepareId = null, $GroupId = null, $Name = 'Zeugnis', $Redirect = true)
                                            {
                                        
                                                if ($Redirect) {
                                                    return self::displayWaitingPage('/Api/Education/Certificate/Generator/PreviewMultiPdf', array(
                                        Severity: Major
                                        Found in Application/Api/Education/Certificate/Generator/Creator.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language