DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method outerJoin has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
    {
        $Result = array();
        /** @var AbstractView $Node0 */
        foreach ($List[0] as $Node0) {
Severity: Major
Found in System/Database/Filter/Link/Repository/Node5.php - About 2 hrs to fix

    File EssGsJOne.php has 283 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      File E12.php has 283 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/E12.php - About 2 hrs to fix

        File C01.php has 282 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Created by PhpStorm.
         * User: Kauschke
         * Date: 07.09.2018
        Severity: Minor
        Found in Application/Api/Document/Standard/Repository/KamenzReport/C01.php - About 2 hrs to fix

          File DocumentWarning.php has 282 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace SPHERE\Application\Api\Document\Standard\Repository\Billing;
          
          use SPHERE\Application\Billing\Inventory\Item\Service\Entity\TblItem;
          use SPHERE\Application\Contact\Address\Address;

            Method checkInputDebtorSelection has 69 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function checkInputDebtorSelection(
                    $BasketVerificationId = '',
                    $DebtorSelection = array()
                ){
            
            
            Severity: Major
            Found in Application/Api/Billing/Bookkeeping/ApiBasketVerification.php - About 2 hrs to fix

              Method saveEditDebtorSelection has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function saveEditDebtorSelection(
                      $Identifier = '',
                      $PersonId = '',
                      $ItemId = '',
                      $DebtorSelectionId = '',
              Severity: Major
              Found in Application/Api/Billing/Accounting/ApiDebtorSelection.php - About 2 hrs to fix

                Method getGradeLanesCustomForChemnitz has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function getGradeLanesCustomForChemnitz(
                        $personId,
                        $TextSize = '14px',
                        $IsGradeUnderlined = false,
                        $MarginTop = '15px'
                Severity: Major
                Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 2 hrs to fix

                  Method getGradeLanesForRadebeul has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function getGradeLanesForRadebeul(
                          $personId,
                          $TextColor = 'black',
                          $TextSize = '13px',
                          $GradeFieldBackgroundColor = 'rgb(224,226,231)',
                  Severity: Major
                  Found in Application/Api/Education/Certificate/Generator/Certificate.php - About 2 hrs to fix

                    Method frontendSandbox has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendSandbox()
                        {
                    //        $this->getCache(new TwigHandler())->clearCache();
                    
                            $Stage = new Stage('SandBox');
                    Severity: Major
                    Found in Application/Platform/System/Test/Frontend.php - About 2 hrs to fix

                      Method frontendAppointmentGradePrepare has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function frontendAppointmentGradePrepare()
                          {
                              $Stage = new Stage('Indiware', 'Datentransfer');
                              $Stage->addButton(new Standard('Zurück', '/Transfer/Indiware/Export', new ChevronLeft()));
                              $Stage->setMessage('Exportvorbereitung / Daten exportieren');
                      Severity: Major
                      Found in Application/Transfer/Indiware/Export/AppointmentGrade/Frontend.php - About 2 hrs to fix

                        Method getCommonContent has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function getCommonContent($PersonId = null)
                            {
                                if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                    if (($tblCommon = $tblPerson->getCommon())
                                        && ($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())
                        Severity: Major
                        Found in Application/People/Person/Frontend/FrontendCommon.php - About 2 hrs to fix

                          Method setStudentList has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function setStudentList(
                                  TblDivisionSubject $tblDivisionSubject,
                                  TblTest $tblTest,
                                  $studentList,
                                  &$studentTestList,
                          Severity: Major
                          Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

                            Method frontendProposalTestSelected has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function frontendProposalTestSelected($DivisionId = null)
                                {
                                    $stage = new Stage('Kopfnotenvorschlag des Klassenlehrers', 'Übersicht');
                            
                                    if (($tblDivision = Division::useService()->getDivisionById($DivisionId))) {
                            Severity: Major
                            Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

                              Method registerModule has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function registerModule()
                                  {
                              
                                      /*
                                       * Navigation
                              Severity: Major
                              Found in Application/Education/Certificate/Prepare/Prepare.php - About 2 hrs to fix

                                Method createExamsButtonList has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    private function createExamsButtonList(
                                        TblPrepareCertificate $tblPrepare,
                                        &$tblCurrentSubject,
                                        &$tblNextSubject,
                                        $tblTestList,
                                Severity: Major
                                Found in Application/Education/Certificate/Prepare/Frontend.php - About 2 hrs to fix

                                  Method setSubjectRow has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function setSubjectRow($array, $subjectName)
                                      {
                                  
                                          $course = '';
                                          $grades = array();
                                  Severity: Major
                                  Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 2 hrs to fix

                                    Method addSubjectWithGroups has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function addSubjectWithGroups(
                                            TblDivision $tblDivision,
                                            TblDivision $tblDivisionCopy
                                        ) {
                                    
                                    
                                    Severity: Major
                                    Found in Application/Education/Lesson/Division/Service.php - About 2 hrs to fix

                                      Method setStudentLevels has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private static function setStudentLevels(
                                              &$Content,
                                              $countArray,
                                              $countMigrantsArray,
                                              $countMigrantsNationalityArray
                                      Severity: Major
                                      Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs to fix

                                        Function saveEditAddressToPersonModal has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            public function saveEditAddressToPersonModal($PersonId, $ToPersonId, $Street, $City, $State, $Type, $County, $Nation, $Relationship)
                                            {
                                        
                                                if (!($tblPerson = Person::useService()->getPersonById($PersonId))) {
                                                    return new Danger('Die Person wurde nicht gefunden', new Exclamation());
                                        Severity: Minor
                                        Found in Application/Api/Contact/ApiAddressToPerson.php - About 2 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