DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method createTeachersFromFile has 135 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createTeachersFromFile(
        IFormInterface $Form = null,
        UploadedFile $File = null
    ) {

Severity: Major
Found in Application/Transfer/Import/FuxMedia/Service.php - About 5 hrs to fix

    Method createPersonsFromFile has 135 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/Braeunsdorf/Service.php - About 5 hrs to fix

      Method getFilterForm has 135 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getFilterForm($Balance, IMessageInterface $message = null, $IsMultiItem = '0')
          {
      
              $filterOptions = array(
                  self::FILTER_CLASS => 'Klasse',
      Severity: Major
      Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 5 hrs to fix

        Method createBasketVerificationBulk has 135 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function createBasketVerificationBulk(TblBasket $tblBasket, TblItem $tblItem, TblDivision $tblDivision = null, TblType $tblType = null)
            {
        
                $tblGroupList = $this->getGroupListByItem($tblItem);
        
        
        Severity: Major
        Found in Application/Billing/Bookkeeping/Basket/Service.php - About 5 hrs to fix

          File BlockII.php has 391 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * Created by PhpStorm.
           * User: Kauschke
           * Date: 15.03.2018
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Abitur/BlockII.php - About 5 hrs to fix

            Method getExaminationsBoard has 134 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getExaminationsBoard($marginTop, $textSize)
                {
            
                    $leaderName = '&nbsp;';
                    $leaderDescription = 'Vorsitzende(r)';

              Method frontendClassList has 134 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendClassList($DivisionId = null)
                  {
              
                      $Stage = new Stage('Auswertung', 'Klassenliste');
                      if (null !== $DivisionId) {
              Severity: Major
              Found in Application/Reporting/Custom/Schneeberg/Person/Frontend.php - About 5 hrs to fix

                Data has 40 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Data extends AbstractData
                {
                
                    /**
                     * @return false|ViewAddressToPerson[]
                Severity: Minor
                Found in Application/Contact/Address/Service/Data.php - About 5 hrs to fix

                  Service has 40 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Service extends AbstractService
                  {
                  
                      /**
                       * @param bool $doSimulation
                  Severity: Minor
                  Found in Application/Reporting/CheckList/Service.php - About 5 hrs to fix

                    TblImport has 40 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class TblImport extends Element
                    {
                    
                        const ATTR_ROW = 'Row';
                        const ATTR_FIRST_NAME = 'FirstName';
                    Severity: Minor
                    Found in Application/Billing/Inventory/Import/Service/Entity/TblImport.php - About 5 hrs to fix

                      Service has 40 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Service extends AbstractService
                      {
                      
                          /**
                           * @return false|ViewPeopleGroupMember[]
                      Severity: Minor
                      Found in Application/People/Group/Service.php - About 5 hrs to fix

                        Support has 40 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        abstract class Support extends Integration
                        {
                        
                            /**
                             * @param string $Name
                        Severity: Minor
                        Found in Application/People/Meta/Student/Service/Data/Support.php - About 5 hrs to fix

                          Method frontendConfirmPrintCertificate has 133 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function frontendConfirmPrintCertificate(
                                  $PrepareId = null,
                                  $DivisionId = null,
                                  $IsLeave = false,
                                  $Route = 'All'
                          Severity: Major
                          Found in Application/Education/Certificate/PrintCertificate/Frontend.php - About 5 hrs to fix

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

                            <?php
                            namespace SPHERE\Application\Corporation\Company;
                            
                            use SPHERE\Application\Corporation\Company\Service\Entity\ViewCompany;
                            use SPHERE\Application\Corporation\Group\Group;
                            Severity: Minor
                            Found in Application/Corporation/Company/Frontend.php - About 5 hrs to fix

                              Method getSchoolPart has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function getSchoolPart($personId)
                                  {
                              
                                      $sliceList = array();
                              
                              

                                Method getSignIndividualPart has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    private static function getSignIndividualPart($personId)
                                    {
                                
                                        $textSize = self::TEXT_SIZE;
                                        $fontFamily = self::FONT_FAMILY;

                                  Method frontendProtocol has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function frontendProtocol($Filter = null)
                                      {
                                  
                                          ini_set('memory_limit', '2G');
                                          require_once( __DIR__.'/Difference/finediff.php' );
                                  Severity: Major
                                  Found in Application/Platform/System/Protocol/Protocol.php - About 5 hrs to fix

                                    Function setFieldValue has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        private function setFieldValue($DataPost)
                                        {
                                    
                                            // Text choose decision
                                            //

                                    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 countSubject has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        private function countSubject($tblPersonList, $SubjectType)
                                        {
                                    
                                            $result = array();
                                            if (empty( $tblPersonList )) {
                                    Severity: Minor
                                    Found in Application/Reporting/Custom/Herrnhut/Person/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 addDivisionToAppointedDateTask has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function addDivisionToAppointedDateTask(
                                            TblTask $tblTask,
                                            TblDivision $tblDivision
                                        ) {
                                    
                                    
                                    Severity: Minor
                                    Found in Application/Education/Graduation/Evaluation/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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language