DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method frontendPrepareSetting has 673 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function frontendPrepareSetting(
        $PrepareId = null,
        $GroupId = null,
        $Route = 'Teacher',
        $GradeTypeId = null,
Severity: Major
Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 days to fix

    Function createSerialLetter has a Cognitive Complexity of 163 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createSerialLetter(
            IFormInterface $Stage = null,
            $SerialLetter,
            $FilterGroup = null,
            $FilterPerson = null,
    Severity: Minor
    Found in Application/Reporting/SerialLetter/Service.php - About 3 days 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

    Method createStudentsFromFile has 661 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function createStudentsFromFile(
            IFormInterface $Form = null,
            UploadedFile $File = null
        ) {
    
    
    Severity: Major
    Found in Application/Transfer/Import/BadDueben/Service.php - About 3 days to fix

      Method setContent has 660 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function setContent(
              TblDivision $tblDivision,
              TblSubject $tblSubject,
              TblSubjectGroup $tblSubjectGroup = null,
              TblPeriod $tblPeriod,
      Severity: Major
      Found in Application/Api/Document/Standard/Repository/Gradebook/Gradebook.php - About 3 days to fix

        Method frontendSerialLetterPersonSelected has 658 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendSerialLetterPersonSelected(
                $Id = null,
                $FilterGroup = null,
                $FilterStudent = null,
                $FilterPerson = null,
        Severity: Major
        Found in Application/Reporting/SerialLetter/Frontend.php - About 3 days to fix

          Function getTemplateInformation has a Cognitive Complexity of 159 (exceeds 5 allowed). Consider refactoring.
          Open

              private function getTemplateInformation(
                  TblPrepareCertificate $tblPrepareCertificate,
                  TblPerson $tblPerson,
                  &$studentTable,
                  &$columnTable,
          Severity: Minor
          Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 days 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 EzshStyle.php has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

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

            Method getContent has 637 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function getContent()
                {
                    $sliceList = array();
            
                    $sliceList[] = (new Slice())

              Function frontendPersonAddressEdit has a Cognitive Complexity of 156 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function frontendPersonAddressEdit($Id = null, $PersonId = null, $Route = '/Reporting/SerialLetter/Address', $Check = null)
                  {
              
                      $Stage = new Stage('Adresse(n)', 'Auswählen');
                      $tblSerialLetter = ( $Id === null ? false : SerialLetter::useService()->getSerialLetterById($Id) );
              Severity: Minor
              Found in Application/Reporting/SerialLetter/Frontend.php - About 3 days 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 createStaffsFromFile has a Cognitive Complexity of 154 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                  {
              
                      /**
                       * Skip to Frontend
              Severity: Minor
              Found in Application/Transfer/Import/Radebeul/Service.php - About 3 days 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

              Method contentEditTestGrade has 615 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function contentEditTestGrade(Stage $Stage, TblTest $tblTest, $Grade, $BasicRoute, $IsEdit = false)
                  {
              
                      if (!$tblTest->getServiceTblDivision()) {
                          return new Danger(new Ban() . ' Klasse nicht gefunden')
              Severity: Major
              Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 days to fix

                Function frontendScoreTypeSelect has a Cognitive Complexity of 150 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function frontendScoreTypeSelect(
                        $Id = null,
                        $YearId = null,
                        $Data = null
                    ) {
                Severity: Minor
                Found in Application/Education/Graduation/Gradebook/Frontend.php - About 3 days 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 createStaffsFromFile has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
                    {
                
                        /**
                         * Skip to Frontend
                Severity: Minor
                Found in Application/Transfer/Import/Annaberg/Service.php - About 3 days 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 createSepaContent has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function createSepaContent(TblBasket $tblBasket, $CheckboxList = array(), $FeeList = array())
                    {
                
                        $tblInvoiceList = Invoice::useService()->getInvoiceByBasket($tblBasket);
                        if(!$tblInvoiceList){
                Severity: Minor
                Found in Application/Billing/Bookkeeping/Balance/Service.php - About 3 days 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 Service.php has 1165 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                namespace SPHERE\Application\Transfer\Import\Tharandt;
                
                use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
                use MOC\V\Component\Document\Document;
                Severity: Major
                Found in Application/Transfer/Import/Tharandt/Service.php - About 2 days to fix

                  Function frontendScoreSubjectGroup has a Cognitive Complexity of 147 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function frontendScoreSubjectGroup(
                          $Id = null,
                          $YearId = null,
                          $Data = null
                      ) {
                  Severity: Minor
                  Found in Application/Education/Graduation/Gradebook/ScoreRule/Frontend.php - About 2 days 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 Data.php has 1157 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Created by PhpStorm.
                   * User: Kauschke
                   * Date: 12.07.2016
                  Severity: Major
                  Found in Application/Education/Certificate/Prepare/Service/Data.php - About 2 days to fix

                    Function frontendEditAbsenceMonth has a Cognitive Complexity of 146 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function frontendEditAbsenceMonth(
                            $DivisionId = null,
                            $Month = null,
                            $Year = null,
                            $BasicRoute = '',
                    Severity: Minor
                    Found in Application/Education/ClassRegister/Absence/Frontend.php - About 2 days 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 checkCertificateSubjectsForStudents has a Cognitive Complexity of 145 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function checkCertificateSubjectsForStudents(TblPrepareCertificate $tblPrepare)
                        {
                    
                            $subjectList = array();
                            $resultList = array();
                    Severity: Minor
                    Found in Application/Education/Certificate/Prepare/Service.php - About 2 days 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 outerJoin has a Cognitive Complexity of 145 (exceeds 5 allowed). Consider refactoring.
                    Open

                        protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
                        {
                            $Result = array();
                            /** @var AbstractView $Node0 */
                            foreach ($List[0] as $Node0) {
                    Severity: Minor
                    Found in System/Database/Filter/Link/Repository/Node6.php - About 2 days 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