DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method createStandardFilter has 331 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createStandardFilter(IFormInterface $Form, TblAccount $tblAccount, $Data = null, $Reset = null)
    {

        if ($Data === null && $Reset === null) {
            return $Form;
Severity: Major
Found in Application/Reporting/Dynamic/Service.php - About 1 day to fix

    Method createStudentsFromFile has 330 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function createStudentsFromFile(
            IFormInterface $Form = null,
            UploadedFile $File = null
        ) {
    
    
    Severity: Major
    Found in Application/Transfer/Import/Braeunsdorf/Service.php - About 1 day to fix

      Method formStudentTransfer has 330 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function formStudentTransfer()
          {
      //        $Data[] = 'BohrEy';
      
              return new Form(
      Severity: Major
      Found in Application/Document/Standard/AccidentReport/AccidentReport.php - About 1 day to fix

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

        <?php
        
        namespace SPHERE\Application\Billing\Bookkeeping\Invoice;
        
        use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
        Severity: Major
        Found in Application/Billing/Bookkeeping/Invoice/Service.php - About 1 day to fix

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

          <?php
          namespace SPHERE\Application\People\Group;
          
          use SPHERE\Application\Education\Lesson\Division\Division;
          use SPHERE\Application\Education\Lesson\Term\Term;
          Severity: Major
          Found in Application/People/Group/Frontend.php - About 1 day to fix

            File ApiBasketVerification.php has 712 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            namespace SPHERE\Application\Api\Billing\Bookkeeping;
            
            use SPHERE\Application\Api\ApiTrait;
            Severity: Major
            Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 1 day to fix

              Function frontendDivision has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendDivision($GenerateCertificateId = null)
                  {
              
                      $Stage = new Stage('Zeugnis generieren', 'Klassenübersicht');
                      $Stage->addButton(new Standard('Zurück', '/Education/Certificate/Generate', new ChevronLeft()));
              Severity: Minor
              Found in Application/Education/Certificate/Generate/Frontend.php - About 1 day 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 createInterestedFromFile has 326 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function createInterestedFromFile(
                      IFormInterface $Form = null,
                      UploadedFile $File = null
                  ) {
              
              
              Severity: Major
              Found in Application/Transfer/Import/Tharandt/Service.php - About 1 day to fix

                Function getCustodyTableContent has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getCustodyTableContent($Result, $MaxResult = 800, $TypeId = null)
                    {
                
                        $SearchResult = array();
                        if (!empty($Result)) {
                Severity: Minor
                Found in Application/Setting/User/Account/Frontend.php - About 1 day 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 frontendSetting has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function frontendSetting($PrepareId = null, $Route = 'Teacher', $Grades = null, $Remarks = null)
                    {
                
                        $Stage = new Stage('Noteninformation', 'Klassenübersicht');
                
                
                Severity: Minor
                Found in Application/Education/Certificate/GradeInformation/Frontend.php - About 1 day 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 setKamenzReportGsContent has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                Open

                    public static function setKamenzReportGsContent(
                        $Content
                    ) {
                
                        $tblCurrentYearList = false;
                Severity: Minor
                Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 1 day 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 createPersonsFromFile has 322 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function createPersonsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                    {
                
                        /**
                         * Skip to Frontend
                Severity: Major
                Found in Application/Transfer/Import/Chemnitz/Service.php - About 1 day to fix

                  Method createDatevCsv has 322 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createDatevCsv(TblBasket $tblBasket)
                      {
                  
                          $tblInvoiceList = Invoice::useService()->getInvoiceByBasket($tblBasket);
                          if(!$tblInvoiceList){
                  Severity: Major
                  Found in Application/Billing/Bookkeeping/Balance/Service.php - About 1 day to fix

                    File AccidentReport.php has 703 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    namespace SPHERE\Application\Document\Standard\AccidentReport;
                    
                    use MOC\V\Core\FileSystem\FileSystem;
                    Severity: Major
                    Found in Application/Document/Standard/AccidentReport/AccidentReport.php - About 1 day to fix

                      Method createFormerStudentsFromFile has 320 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function createFormerStudentsFromFile(
                              IFormInterface $Form = null,
                              UploadedFile $File = null
                          ) {
                      
                      
                      Severity: Major
                      Found in Application/Transfer/Import/Radebeul/Service.php - About 1 day to fix

                        Function hydrateAuthorization has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private function hydrateAuthorization()
                            {
                        
                                if (empty( self::$AuthorizationCache )) {
                                    if (false !== ( $tblAccount = Account::useService()->getAccountBySession() )) {
                        Severity: Minor
                        Found in Application/Platform/Gatekeeper/Authorization/Access/Service.php - About 1 day 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 importUntisLectureship has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function importUntisLectureship()
                            {
                        
                                $InfoList = array();
                                $tblUntisImportLectureshipList = $this->getUntisImportLectureshipAll(true);
                        Severity: Minor
                        Found in Application/Transfer/Untis/Import/Service.php - About 1 day 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 importIndiwareLectureship has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function importIndiwareLectureship()
                            {
                        
                                $InfoList = array();
                                $tblIndiwareImportLectureshipList = $this->getIndiwareImportLectureshipAll(true);
                        Severity: Minor
                        Found in Application/Transfer/Indiware/Import/Service.php - About 1 day 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 getDivisionMessageTable has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public static function getDivisionMessageTable(TblDivision $tblDivision, $isAccordion = false, &$totalCount, $IsTableAccordion = false)
                            {
                        
                                $list = array();
                                $missingGroupList = array();
                        Severity: Minor
                        Found in Application/Education/Lesson/Division/Filter/Service.php - About 1 day 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 createStudentsFromFile has 318 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createStudentsFromFile(
                                IFormInterface $Form = null,
                                UploadedFile $File = null,
                                $Data = null
                            ) {
                        Severity: Major
                        Found in Application/Transfer/Import/Hormersdorf/Service.php - About 1 day to fix
                          Severity
                          Category
                          Status
                          Source
                          Language