DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File StudentCourseGateway.php has 292 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Import Schüler-Kurse. Reihenfolge der Felder aus der CSV-Datei Schüler.csv
 * wird Dynamisch ausgelesen (Erfolgt in Control)
 */
Severity: Minor
Found in Application/Transfer/Indiware/Import/StudentCourseGateway.php - About 3 hrs to fix

    Method formAddressToCompany has 75 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function formAddressToCompany($CompanyId, $ToCompanyId = null, $setPost = false)
        {
    
            if ($ToCompanyId && ($tblToCompany = Address::useService()->getAddressToCompanyById($ToCompanyId))) {
                // beim Checken der Inputfeldern darf der Post nicht gesetzt werden
    Severity: Major
    Found in Application/Contact/Address/Frontend.php - About 3 hrs to fix

      ApiSystemTest has 26 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class ApiSystemTest extends Extension implements IApiInterface
      {
      
          use ApiTrait;
      
      
      Severity: Minor
      Found in Application/Api/Platform/Test/ApiSystemTest.php - About 3 hrs to fix

        Method loadTestPlanning has 75 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function loadTestPlanning($Data = null, $IsDivisionTeacher = null, $PersonId = null)
            {
                $IsDivisionTeacher = $IsDivisionTeacher === 'true';
                if ($Data === null) {
                    return '';
        Severity: Major
        Found in Application/Api/Education/Graduation/Evaluation/ApiEvaluation.php - About 3 hrs to fix

          Method getAdditionalSubjectLanes has 75 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function getAdditionalSubjectLanes(
                  $personId,
                  $TextSize = '14px',
                  $IsGradeUnderlined = false
              ) {

            Method getOwnSignPart has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function getOwnSignPart($personId, $MarginTop = '25px')
                {
                    $SignSlice = (new Slice());
            
                    $SignSlice->addSection((new Section())

              Method createAddressPersonList has 75 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function createAddressPersonList(
                      $PersonListArray = array(),
                      $isCompany = false
                  ) {
              
              
              Severity: Major
              Found in Application/Reporting/SerialLetter/Service/Data.php - About 3 hrs to fix

                Method getProspectFilterResultListBySerialLetter has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getProspectFilterResultListBySerialLetter(
                        TblSerialLetter $tblSerialLetter = null,
                        $FilterGroupList = array(),
                        $FilterProspectList = array(),
                        &$IsTimeout = false
                Severity: Major
                Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 3 hrs to fix

                  Method frontendUpload has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendUpload(UploadedFile $File = null, $tblYear = null)
                      {
                  
                          $Stage = new Stage('Untis', 'Daten importieren');
                          $Stage->setMessage('Lehraufträge importieren');
                  Severity: Major
                  Found in Application/Transfer/Untis/Import/Lectureship.php - About 3 hrs to fix

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

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

                      Method createTicket has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createTicket(IFormInterface $Form = null, $Ticket, $Attachment)
                          {
                      
                              /**
                               * Skip to Frontend
                      Severity: Major
                      Found in Application/Manual/Support/Service.php - About 3 hrs to fix

                        Method getEditStudentSubjectForm has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private function getEditStudentSubjectForm(TblPerson $tblPerson = null)
                            {
                        
                                // Orientation
                                $tblSubjectOrientation = Subject::useService()->getSubjectOrientationAll();
                        Severity: Major
                        Found in Application/People/Person/Frontend/FrontendStudentSubject.php - About 3 hrs to fix

                          Method getTestLinkPanel has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getTestLinkPanel(
                                  TblYear $tblYear,
                                  TblDivisionSubject $tblDivisionSubjectSelected
                              ) {
                                  $panel = false;
                          Severity: Major
                          Found in Application/Education/Graduation/Evaluation/Service.php - About 3 hrs to fix

                            Method updateProposalBehaviorGrade has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function updateProposalBehaviorGrade(
                                    IFormInterface $form,
                                    TblDivision $tblDivision,
                                    TblTask $tblTask,
                                    TblGradeType $tblGradeType,
                            Severity: Major
                            Found in Application/Education/Graduation/Gradebook/Service.php - About 3 hrs to fix

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

                              class Frontend extends FrontendScoreRule
                              {
                              
                                  /**
                                   * @param null $GradeType
                              Severity: Minor
                              Found in Application/Education/Graduation/Gradebook/Frontend.php - About 3 hrs to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                        if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {
                                                            $isMuted = $isCourseMainDiploma;
                                                            $course = '';
                                                            if (($tblStudent = Student::useService()->getStudentByPerson($tblPerson))) {
                                                                $tblTransferType = Student::useService()->getStudentTransferTypeByIdentifier('PROCESS');
                                Severity: Critical
                                Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix

                                  Method getTemplateInformationForPreview has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function getTemplateInformationForPreview(
                                          TblPrepareCertificate $tblPrepareCertificate,
                                          TblPerson $tblPerson,
                                          &$studentTable,
                                          &$columnTable
                                  Severity: Major
                                  Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix

                                    File Setup.php has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    namespace SPHERE\Application\Education\Graduation\Gradebook\Service;
                                    
                                    use Doctrine\DBAL\Schema\Schema;
                                    use Doctrine\DBAL\Schema\Table;
                                    Severity: Minor
                                    Found in Application/Education/Graduation/Gradebook/Service/Setup.php - About 3 hrs to fix

                                      Method createAccount has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function createAccount(/*IFormInterface $form, */
                                              $PersonIdArray = array(),
                                              $AccountType = 'S'
                                          )
                                          {
                                      Severity: Major
                                      Found in Application/Setting/User/Account/Service.php - About 2 hrs to fix

                                        Method callMethod has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function callMethod($MethodName)
                                            {
                                        
                                                if( isset( $this->ApiMethod[$MethodName] ) ) {
                                                    $ApiMethod = $this->ApiMethod[$MethodName];
                                        Severity: Major
                                        Found in Application/Api/Dispatcher.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language