DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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/KamenzReportGym/E15.php - About 5 hrs to fix

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

    class Data extends AbstractData
    {
    
        public function setupDatabaseContent()
        {
    Severity: Minor
    Found in Application/Billing/Accounting/Debtor/Service/Data.php - About 5 hrs to fix

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

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

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

            public function frontendPersonReadOnly($Id = null, $Group = null)
            {
        
                $stage = new Stage('Person', 'Datenblatt ' . ($Id ? 'bearbeiten' : 'anlegen'));
                $stage->addButton(
        Severity: Major
        Found in Application/People/Person/FrontendReadOnly.php - About 5 hrs to fix

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

              public function frontendMinimumGradeCount($MinimumGradeCount = null)
              {
          
                  $Stage = new Stage('Mindestnotenanzahl', 'Übersicht');
                  $Stage->setMessage(

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

                public function frontendScoreGroupGradeTypeSelect(
                    $Id = null
                ) {
            
                    $Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
            Severity: Major
            Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 5 hrs to fix

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

                  public function frontendStudentCardSubjects($Id = null, $Data = null)
                  {
              
                      $Stage = new Stage('Schülerkartei Einstellungen', 'Fächer zuweisen');
                      $Stage->addButton(new Standard(
              Severity: Major
              Found in Application/Document/Standard/StudentCard/Frontend.php - About 5 hrs to fix

                Method frontendScore has 124 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function frontendScore(
                        $ScoreRule = null
                    ) {
                
                        $Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
                Severity: Major
                Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 4 hrs to fix

                  File StudentGroupSelect.php has 373 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  namespace SPHERE\Application\Api\Education\Division;
                  
                  use SPHERE\Application\Api\ApiTrait;
                  use SPHERE\Application\Api\Dispatcher;
                  Severity: Minor
                  Found in Application/Api/Education/Division/StudentGroupSelect.php - About 4 hrs to fix

                    File E01.php has 373 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/KamenzReportGS/E01.php - About 4 hrs to fix

                      File ItemCalculation.php has 372 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      namespace SPHERE\Application\Api\Billing\Inventory;
                      
                      use SPHERE\Application\Billing\Inventory\Item\Item;
                      use SPHERE\Common\Frontend\Ajax\Emitter\ServerEmitter;
                      Severity: Minor
                      Found in Application/Api/Billing/Inventory/ItemCalculation.php - About 4 hrs to fix

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

                            public function frontendLayoutPersonNew(TblPerson $tblPerson)
                            {
                        
                                $addressList = array();
                                if (($tblAddressList = Address::useService()->getAddressAllByPerson($tblPerson))){
                        Severity: Major
                        Found in Application/Contact/Address/Frontend.php - About 4 hrs to fix

                          Method createElectiveClassList has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function createElectiveClassList(TblDivision $tblDivision)
                              {
                          
                                  $tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
                                  $TableContent = array();
                          Severity: Major
                          Found in Application/Reporting/Standard/Person/Service.php - About 4 hrs to fix

                            Function isChecked has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function isChecked($RequestKey, $Value)
                                {
                            
                                    if (preg_match('!^(.*?)\[(.*?)\]$!is', $RequestKey, $Match)) {
                                        if (false === strpos($Match[2], '[')) {
                            Severity: Minor
                            Found in Common/Frontend/Form/Repository/AbstractField.php - About 4 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 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function __construct(
                                    $DataList,
                                    Title $TableTitle = null,
                                    $ColumnDefinition = array(),
                                    $Interactive = true,
                            Severity: Minor
                            Found in Common/Frontend/Table/Structure/TableData.php - About 4 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 callMethod has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function callMethod($MethodName)
                                {
                            
                                    if( isset( $this->ApiMethod[$MethodName] ) ) {
                                        $ApiMethod = $this->ApiMethod[$MethodName];
                            Severity: Minor
                            Found in Application/Api/Dispatcher.php - About 4 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 previewZip has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function previewZip($PrepareId = null, $Name = 'Zeugnis Muster')
                                {
                            
                                    if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
                                        && ($tblDivision = $tblPrepare->getServiceTblDivision())
                            Severity: Minor
                            Found in Application/Api/Education/Certificate/Generator/Creator.php - About 4 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 createPdf has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createPdf($PrepareId = null, $PersonId = null)
                                {
                            
                                    if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
                                        && ($tblPerson = Person::useService()->getPersonById($PersonId))
                            Severity: Minor
                            Found in Application/Api/Education/Certificate/Generator/Creator.php - About 4 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 createClassListExcel has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createClassListExcel($PersonList, $tblPersonList)
                                {
                            
                                    if (!empty( $PersonList )) {
                            
                            
                            Severity: Minor
                            Found in Application/Reporting/Custom/Coswig/Person/Service.php - About 4 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 frontendListObjectElementEdit has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function frontendListObjectElementEdit(
                                    $ObjectId = null,
                                    $ListId = null,
                                    $ObjectTypeId = null,
                                    $Data = null,
                            Severity: Minor
                            Found in Application/Reporting/CheckList/Frontend.php - About 4 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