DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File ClassRegister.php has 471 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Education\ClassRegister;

use SPHERE\Application\Api\People\Meta\Agreement\ApiAgreementReadOnly;
use SPHERE\Application\Api\People\Meta\MedicalRecord\MedicalRecordReadOnly;
Severity: Minor
Found in Application/Education/ClassRegister/ClassRegister.php - About 7 hrs to fix

    Method frontendHeadmasterTaskDivision has 182 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function frontendHeadmasterTaskDivision($Id = null, $Data = null)
        {
    
            $Stage = new Stage('Notenauftrag', 'Klassen zuordnen');
            $Stage->setMessage(new Bold(new Exclamation() . ' Hinweis: ') . 'Bei der Auswahl vieler Klassen kann das Speichern einige Zeit dauern.');
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 7 hrs to fix

      Function setError has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function setError($Name, $Message, IIconInterface $Icon = null)
          {
      
              /** @var FormGroup $GridGroup */
              foreach ((array)$this->GridGroupList as $GridGroup) {
      Severity: Minor
      Found in Common/Frontend/Form/Structure/Form.php - About 7 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 setSuccess has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function setSuccess($Name, $Message = '', IIconInterface $Icon = null)
          {
      
              /** @var FormGroup $GridGroup */
              foreach ((array)$this->GridGroupList as $GridGroup) {
      Severity: Minor
      Found in Common/Frontend/Form/Structure/Form.php - About 7 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 setupDatabaseContent has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function setupDatabaseContent()
          {
      
              if (($tblSetting = $this->createSetting('People', 'Meta', 'Student', 'Automatic_StudentNumber',
                  TblSetting::TYPE_BOOLEAN, '0'))) {
      Severity: Minor
      Found in Application/Setting/Consumer/Service/Data.php - About 7 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 downloadZip has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

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

          public function getObjectList($tblListObjectListByList, $objectList)
          {
              if ($tblListObjectListByList) {
                  /** @var TblListObjectElementList $tblListObjectList */
                  foreach ($tblListObjectListByList as $tblListObjectList) {
      Severity: Minor
      Found in Application/Reporting/CheckList/Service.php - About 7 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 createBalanceListExcel has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createBalanceListExcel($PriceList, $tblItemList = array())
          {
      
              $PersonList = array();
              if(!empty($PriceList)){
      Severity: Minor
      Found in Application/Billing/Bookkeeping/Balance/Service.php - About 7 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 frontendBalancePdf has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendBalancePdf($Balance = array())
          {
      
              $Stage = new Stage('Belegdruck', 'PDF');
              if(!isset($Balance['Year'])){
      Severity: Minor
      Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 7 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 getFilterForm has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function getFilterForm($Balance, IMessageInterface $message = null, $IsMultiItem = '0')
          {
      
              $filterOptions = array(
                  self::FILTER_CLASS => 'Klasse',
      Severity: Minor
      Found in Application/Billing/Bookkeeping/Balance/Frontend.php - About 7 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 frontendDivisionTeacherTaskGrades has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendDivisionTeacherTaskGrades($Id = null, $DivisionId = null)
          {
      
              $Stage = new Stage('Notenauftrag', 'Zensurenübersicht');
      
      
      Severity: Minor
      Found in Application/Education/Graduation/Evaluation/Frontend.php - About 7 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 frontendScore has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public function frontendScore(
              $ScoreRule = null
          ) {
      
              $Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
      Severity: Minor
      Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 7 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 getMinDivisionByLevelType has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
      Open

          public
          function getMinDivisionByLevelType(
              TblType $tblType
          ) {
      
      
      Severity: Minor
      Found in Application/Education/Lesson/Division/Service.php - About 7 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

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

      <?php
      namespace SPHERE\Application\Billing\Accounting\Causer;
      
      use SPHERE\Application\Api\Billing\Accounting\ApiBankReference;
      use SPHERE\Application\Api\Billing\Accounting\ApiCauser;
      Severity: Minor
      Found in Application/Billing/Accounting/Causer/Frontend.php - About 7 hrs to fix

        File StudentTransfer.php has 466 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace SPHERE\Application\Document\Standard\StudentTransfer;
        
        
        
        Severity: Minor
        Found in Application/Document/Standard/StudentTransfer/StudentTransfer.php - About 7 hrs to fix

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

          class Data extends AbstractData
          {
          
              public function setupDatabaseContent()
              {

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

            class Service extends AbstractService
            {
            
                /** @var TblAccount[] $AccountByIdCache */
                private static $AccountByIdCache = array();
            Severity: Major
            Found in Application/Platform/Gatekeeper/Authorization/Account/Service.php - About 7 hrs to fix

              Method frontendScoreConditionGradeTypeSelect has 179 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function frontendScoreConditionGradeTypeSelect(
                      $Id = null,
                      $Period = null
                  ) {
              
              
              Severity: Major
              Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 7 hrs to fix

                Method setExamsSetting has 179 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function setExamsSetting(
                        TblPrepareCertificate $tblPrepare,
                        TblDivision $tblDivision,
                        TblGroup $tblGroup = null,
                        $tblTestList,
                Severity: Major
                Found in Application/Education/Certificate/Prepare/Frontend.php - About 7 hrs to fix

                  Method frontendCreateLevelDivision has 179 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function frontendCreateLevelDivision($Level = null, $Division = null, $Year = null)
                      {
                  
                          $Stage = new Stage('Klassen', 'Aktuelle Übersicht');
                  
                  
                  Severity: Major
                  Found in Application/Education/Lesson/Division/Frontend.php - About 7 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language