DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method createCompaniesFromFile has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createCompaniesFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Major
Found in Application/Transfer/Import/FuxMedia/Service.php - About 2 hrs to fix

    Method getPriceListByItemAndYear has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getPriceListByItemAndYear(
            TblItem $tblItem,
            $Year,
            $MonthFrom = '1',
            $MonthTo = '12',
    Severity: Major
    Found in Application/Billing/Bookkeeping/Balance/Service.php - About 2 hrs to fix

      Method formSpecial has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function formSpecial($PersonId, $SpecialId = null, $IsCanceled = false, $IsInit = false)
          {
      
              $Global = $this->getGlobal();
              if($SpecialId != null && !isset($Global->POST['Data']['Date'])) {
      Severity: Major
      Found in Application/People/Meta/Student/Frontend.php - About 2 hrs to fix

        Method getStudentTransferEnrollmentPanel has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static function getStudentTransferEnrollmentPanel(TblStudent $tblStudent = null)
            {
                $enrollmentCompany = '';
                $enrollmentType = '';
                $enrollmentTransferType = '';
        Severity: Major
        Found in Application/People/Person/Frontend/FrontendStudentTransfer.php - About 2 hrs to fix

          Method getStudentTransferArrivePanel has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private static function getStudentTransferArrivePanel(TblStudent $tblStudent = null)
              {
                  $arriveCompany = '';
                  $arriveStateCompany = '';
                  $arriveType = '';
          Severity: Major
          Found in Application/People/Person/Frontend/FrontendStudentTransfer.php - About 2 hrs to fix

            Method setMinimumGradeCountReporting has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function setMinimumGradeCountReporting($Data, $IsDivisionTeacher, $PersonId = null)
                {
                    $stage = new Stage('Mindestnotenanzahl', 'Auswertung');
                    $stage->addButton(new Standard(
                        'Zurück',

              Method frontendEditGradeType has 55 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendEditGradeType($Id = null, $GradeType = null)
                  {
              
                      $Stage = new Stage('Zensuren-Typ', 'Bearbeiten');
              
              
              Severity: Major
              Found in Application/Education/Graduation/Gradebook/Frontend.php - About 2 hrs to fix

                Method setHeaderButtonList has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function setHeaderButtonList(Stage $Stage, $view)
                    {
                        $hasTeacherRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/Teacher');
                        $hasHeadmasterRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/Headmaster');
                        $hasDiplomaRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/Diploma');
                Severity: Major
                Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 hrs to fix

                  Method getMessageForSubjectGroup has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getMessageForSubjectGroup()
                      {
                          $list = array();
                          if ($this->isFilterSet()
                              && ($tblDivisionSubject = $this->getTblDivisionSubject())
                  Severity: Major
                  Found in Application/Education/Lesson/Division/Filter/Filter.php - About 2 hrs to fix

                    Method frontendEditAbsence has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendEditAbsence($Id = null, $BasicRoute = '', $Data = null)
                        {
                    
                            $Stage = new Stage('Fehlzeiten', 'Bearbeiten');
                            $tblAbsence = Absence::useService()->getAbsenceById($Id);
                    Severity: Major
                    Found in Application/Education/ClassRegister/Absence/Frontend.php - About 2 hrs to fix

                      Method registerModule has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function registerModule()
                          {
                      
                              Main::getDisplay()->addModuleNavigation(
                                  new Link(new Link\Route(__NAMESPACE__), new Link\Name('Klassen')
                      Severity: Major
                      Found in Application/Education/Lesson/Division/Division.php - About 2 hrs to fix

                        Method outerJoin has 55 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/Node4.php - About 2 hrs to fix

                          Method frontendStudentList has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function frontendStudentList()
                              {
                          
                                  $Stage = new Stage('SchülerListe');
                          
                          
                          Severity: Major
                          Found in Application/Document/Custom/Radebeul/Radebeul.php - About 2 hrs to fix

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

                            <?php
                            
                            namespace SPHERE\Application\Reporting\Custom\Hormersdorf\Person;
                            
                            use SPHERE\Application\Education\Lesson\Division\Division;
                            Severity: Minor
                            Found in Application/Reporting/Custom/Hormersdorf/Person/Frontend.php - About 2 hrs to fix

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

                              <?php
                              /**
                               * Created by PhpStorm.
                               * User: Kauschke
                               * Date: 18.12.2018
                              Severity: Minor
                              Found in Application/Reporting/Custom/BadDueben/Person/Frontend.php - About 2 hrs to fix

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

                                <?php
                                
                                namespace SPHERE\Application\Transfer\Import\FuxMedia;
                                
                                use SPHERE\Application\Education\Lesson\Term\Term;
                                Severity: Minor
                                Found in Application/Transfer/Import/FuxMedia/Frontend.php - About 2 hrs to fix

                                  File Service.php has 257 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  namespace SPHERE\Application\Billing\Accounting\Debtor;
                                  
                                  use SPHERE\Application\Billing\Accounting\Debtor\Service\Data;
                                  use SPHERE\Application\Billing\Accounting\Debtor\Service\Entity\TblBankAccount;
                                  Severity: Minor
                                  Found in Application/Billing/Accounting/Debtor/Service.php - About 2 hrs to fix

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

                                    abstract class AbstractField extends Extension implements IFieldInterface
                                    {
                                    
                                        /** @var string $Name */
                                        protected $Name;
                                    Severity: Minor
                                    Found in Common/Frontend/Form/Repository/AbstractField.php - About 2 hrs to fix

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

                                      class ApiRelationshipToCompany  extends Extension implements IApiInterface
                                      {
                                      
                                          use ApiTrait;
                                      
                                      
                                      Severity: Minor
                                      Found in Application/Api/Contact/ApiRelationshipToCompany.php - About 2 hrs to fix

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

                                        class TblItem extends Element
                                        {
                                        
                                            const ATTR_NAME = 'Name';
                                        
                                        
                                        Severity: Minor
                                        Found in Application/Billing/Inventory/Item/Service/Entity/TblItem.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language