DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendCreateFilter has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendCreateFilter($FilterName = null, $IsPublic = 0)
    {

        $tblAccount = Account::useService()->getAccountBySession();
//        if ($tblAccount) {
Severity: Major
Found in Application/Reporting/Dynamic/Frontend.php - About 5 hrs to fix

    Method frontendExport has 128 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendExport()
        {
    
            $Stage = new Stage('Export', 'Stichtagsnoten eines Halbjahres');
    
    
    Severity: Major
    Found in Application/Transfer/Indiware/Export/AppointmentGrade/Frontend.php - About 5 hrs to fix

      Method updateAbiturExamGrades has 128 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function updateAbiturExamGrades(
              IFormInterface $form,
              TblPrepareCertificate $tblPrepare,
              TblPerson $tblPerson,
              $Data,
      Severity: Major
      Found in Application/Education/Certificate/Prepare/Service.php - About 5 hrs to fix

        Method formStudentDocument has 128 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function formStudentDocument($Gender)
            {
        //        $Data[] = 'BohrEy';
        
                return new Form(

          Function setSubjectRow has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              private function setSubjectRow($personId, $subjectName = ' ', $hasAdvancedCourse = true, $isLastRow = false)
              {
          
                  $color = '#BBB';
                  $isAdvancedSubject = false;

          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

          Function createCompaniesFromFile has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createCompaniesFromFile(
                  IFormInterface $Form = null,
                  UploadedFile $File = null
              ) {
          
          
          Severity: Minor
          Found in Application/Transfer/Import/FuxMedia/Service.php - About 5 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

          Function getBasketVerificationLayout has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getBasketVerificationLayout($BasketId = null)
              {
          
                  $tblBasket = Basket::useService()->getBasketById($BasketId);
                  if(!$tblBasket){
          Severity: Minor
          Found in Application/Billing/Bookkeeping/Basket/Frontend.php - About 5 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

          Function importBillingData has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function importBillingData()
              {
          
          //        $InfoList = array();
                  $tblImportList = $this->getImportAll();
          Severity: Minor
          Found in Application/Billing/Inventory/Import/Service.php - About 5 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

          Function getEditStudentGeneralContent has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getEditStudentGeneralContent($PersonId = null)
              {
          
                  $tblPerson = false;
                  if ($PersonId && ($tblPerson = Person::useService()->getPersonById($PersonId))) {
          Severity: Minor
          Found in Application/People/Person/Frontend/FrontendStudentGeneral.php - About 5 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

          Function __construct has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function __construct(
                  TblDivision $tblDivision,
                  TblPerson $tblPerson,
                  TblPrepareCertificate $tblPrepareCertificate
              ) {
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 5 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

          Function getReferenceForLanguageByStudent has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getReferenceForLanguageByStudent(
                  TblCertificate $tblCertificate,
                  TblStudentSubject $tblStudentSubject,
                  TblPerson $tblPerson,
                  TblDivision $tblDivision
          Severity: Minor
          Found in Application/Education/Certificate/Generator/Service.php - About 5 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

          Method frontendLayoutPersonNew has 127 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function frontendLayoutPersonNew(TblPerson $tblPerson)
              {
          
                  $phoneList = array();
                  $phoneEmergencyList = array();
          Severity: Major
          Found in Application/Contact/Phone/Frontend.php - About 5 hrs to fix

            Method setRow has 127 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private static function setRow(&$sliceList, $identifier, $name)
                {
            
                    $paddingLeft = '5px';
                    $section = new Section();
            Severity: Major
            Found in Application/Api/Document/Standard/Repository/KamenzReport/C01.php - About 5 hrs to fix

              Method getTeacherWelcome has 127 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getTeacherWelcome(TblPerson $tblPerson)
                  {
              
                      $appointedDateTaskList = array();
                      $behaviorTask = array();
              Severity: Major
              Found in Application/Education/Graduation/Evaluation/Service.php - About 5 hrs to fix

                Method frontendFillSignOutCertificate has 127 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendFillSignOutCertificate($Id = null)
                    {
                
                        $Stage = new Stage('Schülerüberweisung', 'Erstellen');
                        $Stage->addButton(new Standard('Zurück', '/Document/Standard/SignOutCertificate', new ChevronLeft()));

                  Method displaySetting has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function displaySetting($Category = TblSetting::CATEGORY_REGULAR)
                      {
                  
                          $tblSettingList = Setting::useService()->getSettingAllByCategory($Category);
                          $Listing = array();
                  Severity: Major
                  Found in Application/Billing/Inventory/Setting/Frontend.php - About 5 hrs to fix

                    Method frontendPrintCertificateDivisionTeacher has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendPrintCertificateDivisionTeacher()
                        {
                    
                            $Stage = new Stage('Zeugnis', 'Übersicht (nicht gedruckte Zeugnisse)');
                    
                    
                    Severity: Major
                    Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 5 hrs to fix

                      File HorJOne.php has 375 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\FESH;
                      
                      use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
                      use SPHERE\Application\Education\Certificate\Generator\Repository\Element;

                        Method getStudentTransferHead has 125 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private function getStudentTransferHead()
                            {
                                $Slice = new Slice();
                                $Slice->addElement((new Element())
                                    ->setContent('Abgebende Schule')

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

                              public static function getContent()
                              {
                                  $sliceList = array();
                          
                                  $sliceList[] = (new Slice())
                          Severity: Major
                          Found in Application/Api/Document/Standard/Repository/KamenzReport/E04.php - About 5 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language