DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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 buildPages has 83 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

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

          public static function tablePerson($DivisionId = null)
          {
      
              // get Content
              $tblDivision = DivisionApplication::useService()->getDivisionById($DivisionId);
      Severity: Major
      Found in Application/Api/Education/Division/StudentSelect.php - About 3 hrs to fix

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

            public function frontendKindergartenList($GroupId = null)
            {
        
                $Stage = new Stage('Individuelle Auswertung', 'Kinderhausliste');
                if (null !== $GroupId) {
        Severity: Major
        Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 3 hrs to fix

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

              public function frontendMetaDataComparison($Person = null, $Year = null, $Division = null, $Option = null, $PersonGroup = null) {
                  $Stage = new Stage('Auswertung', 'Stammdatenabfrage');
          
                  $FilterForm = $this->getStudentFilterForm();
          
          
          Severity: Major
          Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

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

                public function contentDestroyTest(Stage $Stage, $Id, $Confirm, $BasicRoute)
                {
            
                    $tblTest = Evaluation::useService()->getTestById($Id);
                    if ($tblTest) {
            Severity: Major
            Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 hrs to fix

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

                  public function frontendSelectCertificate($Division = null, $Person = null)
                  {
              
                      $Stage = new Stage('Zeugnisvorlage', 'wählen');
                      // Zurück button bei bedarf einbauen
              Severity: Major
              Found in Application/Education/Certificate/Generator/Frontend.php - About 3 hrs to fix

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

                    public function frontendFillSchoolContract($PersonId = null)
                    {
                
                        $Stage = new Stage('Schulvertrag', 'Erstellen');
                        $tblPerson = Person::useService()->getPersonById($PersonId);
                Severity: Major
                Found in Application/Document/Custom/Zwickau/Zwickau.php - About 3 hrs to fix

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

                      public function frontendDashboard()
                      {
                  
                          $Stage = new Stage('Schuljahr', 'Dashboard');
                  
                  
                  Severity: Major
                  Found in Application/Education/Lesson/Term/Term.php - About 3 hrs to fix

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

                        private static function countForeignLanguages(
                            TblStudent $tblStudent,
                            TblLevel $tblLevel,
                            TblType $tblType,
                            &$Content,
                    Severity: Major
                    Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 hrs to fix

                      File ApiDocument.php has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Created by PhpStorm.
                       * User: Kauschke
                       * Date: 12.03.2019
                      Severity: Minor
                      Found in Application/Api/Billing/Inventory/ApiDocument.php - About 3 hrs to fix

                        Method frontendResetAccount has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function frontendResetAccount($Id = null, $Confirm = false, $Path = '/Setting/User')
                            {
                        
                                $Stage = new Stage('Account Passwort', 'zurücksetzen');
                                if ($Id) {
                        Severity: Major
                        Found in Application/Setting/User/Account/Frontend.php - About 3 hrs to fix

                          Method getESRLSubjectLanes has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getESRLSubjectLanes($personId, $Height = '175px')
                              {
                          
                                  $SubjectSlice = (new Slice());
                          
                          

                            Method frontendRegularSchoolList has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendRegularSchoolList($GroupId = null)
                                {
                            
                                    $Stage = new Stage('Individuelle Auswertung', 'Stammschulenliste');
                                    if (null !== $GroupId) {
                            Severity: Major
                            Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 3 hrs to fix

                              Method importIndiwareStudentCourse has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function importIndiwareStudentCourse()
                                  {
                              
                              //        $InfoList = array();
                                      $tblIndiwareImportStudentList = $this->getIndiwareImportStudentAll(true);
                              Severity: Major
                              Found in Application/Transfer/Indiware/Import/Service.php - About 3 hrs to fix

                                Method createInvoiceDebtorListExcel has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function createInvoiceDebtorListExcel(
                                        $Year,
                                        $Month,
                                        $BasketName
                                    ) {
                                Severity: Major
                                Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 3 hrs to fix

                                  Method frontendSearch has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendSearch($Filter = null)
                                      {
                                  
                                          $Stage = new Stage('Suche', 'nach Eigenschaften');
                                          $Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
                                  Severity: Major
                                  Found in Application/People/Search/Filter/Frontend.php - About 3 hrs to fix

                                    Method setAutoDroppedSubjects has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function setAutoDroppedSubjects(TblPrepareCertificate $tblPrepare, TblPerson $tblPerson)
                                        {
                                    
                                            $gradeString = '';
                                            $tblLastDivision = false;
                                    Severity: Major
                                    Found in Application/Education/Certificate/Prepare/Service.php - About 3 hrs to fix

                                      Method frontendLeaveStudentTemplate has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function frontendLeaveStudentTemplate($PersonId = null, $DivisionId = null, $Data = null, $ChangeCertificate = null)
                                          {
                                              if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                                  $stage = new Stage('Zeugnisvorbereitung', 'Abgangszeugnis - Schüler');
                                                  $stage->addButton(new Standard('Zurück', '/Education/Certificate/Prepare/Leave', new ChevronLeft()));
                                      Severity: Major
                                      Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix

                                        Function runPlatform has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            public function runPlatform()
                                            {
                                        
                                                /**
                                                 * REST-API
                                        Severity: Minor
                                        Found in Common/Main.php - About 3 hrs to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language