DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method performExtraAnalysis has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function performExtraAnalysis() {
        // La colonne extra contient des infos multiples alors on utilise un tableau d'information
        // Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
        $infos = array();
        // Contient Using temporary; Using filesort
Severity: Major
Found in xplain/app/Row.class.php - About 3 hrs to fix

    Method performExtraAnalysis has 91 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function performExtraAnalysis() {
            // La colonne extra contient des infos multiples alors on utilise un tableau d'information
            // Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
            $infos = array();
            // Contient Using temporary; Using filesort
    Severity: Major
    Found in xplain/app/Row.php - About 3 hrs to fix

      File RadebeulLernentwicklungsberichtHj.php has 318 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

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

        File RadebeulLernentwicklungsbericht.php has 318 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 07.11.2016

          File B01.php has 318 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * Created by PhpStorm.
           * User: lehmann
           * Date: 23.06.2017
          Severity: Minor
          Found in Application/Api/Document/Standard/Repository/KamenzReport/B01.php - About 3 hrs to fix

            Method frontendStudentShow has 90 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendStudentShow()
                {
                    $Stage = new Stage('Schüler-Accounts', 'Übersicht');
            
                    $Stage->addButton(new Standard('Zurück', '/Setting/User', new ChevronLeft()));
            Severity: Major
            Found in Application/Setting/User/Account/Frontend.php - About 3 hrs to fix

              Method frontendDestroyPrepare has 90 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendDestroyPrepare($Id = null, $Confirm = false)
                  {
              
                      $Stage = new Stage('Benutzer', 'Löschen');
                      if ($Id) {
              Severity: Major
              Found in Application/Setting/User/Account/Frontend.php - About 3 hrs to fix

                Method frontendAccountExport has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendAccountExport($Time = null)
                    {
                
                        $Stage = new Stage('Account', 'Serienbrief Export');
                        $Stage->setMessage('Neu erstellte Benutzerzugänge können auf dieser Seite als Excel-Datei für den 
                Severity: Major
                Found in Application/Setting/User/Account/Frontend.php - About 3 hrs to fix

                  Method createInterestedPersonListExcel has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createInterestedPersonListExcel($PersonList, $tblPersonList)
                      {
                  
                          if (!empty($PersonList)) {
                  
                  
                  Severity: Major
                  Found in Application/Reporting/Standard/Person/Service.php - About 3 hrs to fix

                    Method frontendInterestedPersonList has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendInterestedPersonList()
                        {
                    
                            $Stage = new Stage('Auswertung', 'Neuanmeldungen/Interessenten');
                            $tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByMetaTable('PROSPECT'));
                    Severity: Major
                    Found in Application/Reporting/Standard/Person/Frontend.php - About 3 hrs to fix

                      Method getCompanyFilterResultListBySerialLetter has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getCompanyFilterResultListBySerialLetter(
                              TblSerialLetter $tblSerialLetter = null,
                              $FilterGroupList = array(),
                              $FilterCompanyList = array(),
                              $FilterRelationshipList = array(),
                      Severity: Major
                      Found in Application/Reporting/SerialLetter/SerialLetterFilter.php - About 3 hrs to fix

                        Method updateDivisionTasks has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function updateDivisionTasks(IFormInterface $Stage = null, $Id, $Data = null)
                            {
                        
                                /**
                                 * Skip to Frontend
                        Severity: Major
                        Found in Application/Education/Graduation/Evaluation/Service.php - About 3 hrs to fix

                          Method getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup(
                                  TblDivision $tblDivision,
                                  TblSubject $tblSubject,
                                  TblTestType $tblTestType = null,
                                  TblPeriod $tblPeriod = null,
                          Severity: Major
                          Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 3 hrs to fix

                            Method frontendLeaveStudentAbiturPoints has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendLeaveStudentAbiturPoints($Id = null, $Data = null)
                                {
                            
                                    if (($tblLeaveStudent = Prepare::useService()->getLeaveStudentById($Id))
                                        && ($tblPerson = $tblLeaveStudent->getServiceTblPerson())
                            Severity: Major
                            Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 hrs to fix

                              Method frontendDestroyGenerate has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function frontendDestroyGenerate($Id = null, $Confirm = false)
                                  {
                              
                                      $Stage = new Stage('Zeugnisgenerierung', 'Löschen');
                              
                              
                              Severity: Major
                              Found in Application/Education/Certificate/Generate/Frontend.php - About 3 hrs to fix

                                Function moveFieldRight has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function moveFieldRight($WorkSpaceId = null, $ViewType = TblWorkSpace::VIEW_TYPE_ALL)
                                    {
                                
                                        $tblWorkSpace = Individual::useService()->getWorkSpaceById($WorkSpaceId);
                                        if ($tblWorkSpace) {
                                Severity: Minor
                                Found in Application/Api/Reporting/Individual/ApiIndividual.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

                                Function moveFieldLeft has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function moveFieldLeft($WorkSpaceId = null, $ViewType = TblWorkSpace::VIEW_TYPE_ALL)
                                    {
                                
                                        $tblWorkSpace = Individual::useService()->getWorkSpaceById($WorkSpaceId);
                                        if ($tblWorkSpace) {
                                Severity: Minor
                                Found in Application/Api/Reporting/Individual/ApiIndividual.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

                                Function getGradeLanesForRadebeul has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    protected function getGradeLanesForRadebeul(
                                        $personId,
                                        $TextColor = 'black',
                                        $TextSize = '13px',
                                        $GradeFieldBackgroundColor = 'rgb(224,226,231)',
                                Severity: Minor
                                Found in Application/Api/Education/Certificate/Generator/Certificate.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

                                Function getGradeLanesCoswig has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    protected function getGradeLanesCoswig(
                                        $personId,
                                        $TextSize = '14px',
                                        $IsGradeUnderlined = false,
                                        $MarginTop = '15px'
                                Severity: Minor
                                Found in Application/Api/Education/Certificate/Generator/Certificate.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

                                Function getGradeLanes has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    protected function getGradeLanes($personId, $TextSize = '14px', $IsGradeUnderlined = false, $MarginTop = '15px')
                                    {
                                
                                        $GradeSlice = (new Slice());
                                
                                
                                Severity: Minor
                                Found in Application/Api/Education/Certificate/Generator/Certificate.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