DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method importUntisLectureship has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function importUntisLectureship()
    {

        $InfoList = array();
        $tblUntisImportLectureshipList = $this->getUntisImportLectureshipAll(true);
Severity: Major
Found in Application/Transfer/Untis/Import/Service.php - About 4 hrs to fix

    Method getStudentSubjectContent has 103 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function getStudentSubjectContent($PersonId = null)
        {
    
            if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
                $subjects = array();
    Severity: Major
    Found in Application/People/Person/Frontend/FrontendStudentSubject.php - About 4 hrs to fix

      Method frontendHeadmasterTask has 103 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function frontendHeadmasterTask($Task = null, $IsAllYears = false, $YearId = null)
          {
      
              $Stage = new Stage('Notenaufträge', 'Übersicht');
              $Stage->setMessage(
      Severity: Major
      Found in Application/Education/Graduation/Evaluation/Frontend.php - About 4 hrs to fix

        Method frontendCertificateSetting has 103 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function frontendCertificateSetting($Certificate = 0, $Grade = array(), $Subject = array(), $Data = null)
            {
        
                $Stage = new Stage('Einstellungen', 'Vorlage bearbeiten');
                $Stage->addButton(new Standard('Zurück', '/Education/Certificate/Setting/Template', new ChevronLeft()));
        Severity: Major
        Found in Application/Education/Certificate/Setting/Frontend.php - About 4 hrs to fix

          Method frontendScoreCondition has 103 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method createPrepareCertificates has 103 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function createPrepareCertificates(
                    IFormInterface $Form = null,
                    TblGenerateCertificate $tblGenerateCertificate,
                    $Data = null
                ) {
            Severity: Major
            Found in Application/Education/Certificate/Generate/Service.php - About 4 hrs to fix

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

              <?php
              namespace SPHERE\Application\Contact\Phone;
              
              use SPHERE\Application\Api\Contact\ApiPhoneToCompany;
              use SPHERE\Application\Api\Contact\ApiPhoneToPerson;
              Severity: Minor
              Found in Application/Contact/Phone/Frontend.php - About 4 hrs to fix

                File EssGsJThree.php has 338 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

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

                  File BlockI.php has 337 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/BlockI.php - About 4 hrs to fix

                    Function checkFormAddressToPerson has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function checkFormAddressToPerson(
                            TblPerson $tblPerson,
                            $Street,
                            $City,
                            $Type,
                    Severity: Minor
                    Found in Application/Contact/Address/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 getPanelList has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private function getPanelList(AbstractView $View, $WorkSpaceList, $ViewType)
                        {
                            $PanelString = '';
                    
                            $ViewBlockList = array();
                    Severity: Minor
                    Found in Application/Api/Reporting/Individual/ApiIndividual.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 getOrientationStandard has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
                        {
                    
                            $tblPerson = Person::useService()->getPersonById($personId);
                    
                    
                    Severity: Minor
                    Found in Application/Api/Education/Certificate/Generator/Certificate.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 getSchoolName has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        protected function getSchoolName($personId, $MarginTop = '20px')
                        {
                    
                            if (($tblSetting = \SPHERE\Application\Setting\Consumer\Consumer::useService()->getSetting(
                                'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))
                    Severity: Minor
                    Found in Application/Api/Education/Certificate/Generator/Certificate.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 downloadHistoryZip has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function downloadHistoryZip($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 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 getCMSOrientationStandard has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getCMSOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
                        {
                    
                            $tblPerson = Person::useService()->getPersonById($personId);
                    
                    

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

                        protected function setLetterRow($textSize = '16px')
                        {
                    
                            $countCharacters = 26;
                            $width = (100/$countCharacters) . '%';

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

                        protected function setGradeLayoutHeaderForSekII(
                            &$subjectPosition = array(),
                            $countSubjectColumns = 23,
                            $widthFirstColumns = 6,
                            $widthLastColumns = 5,

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

                        private function allocateResponsibility(&$Data)
                        {
                            $tblPerson = $this->tblPerson;
                            // pre fill found information (Responsibility)
                            $Data['Responsibility']['Company']['Number'] = School::useService()->getCompanyNumber();
                    Severity: Minor
                    Found in Application/Api/Document/AbstractDocument.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 getSerialLetterCount has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getSerialLetterCount(TblSerialLetter $tblSerialLetter)
                        {
                    
                            $result = 0;
                            $tblSerialLetterPersonList = SerialLetter::useService()->getPersonAllBySerialLetter($tblSerialLetter);
                    Severity: Minor
                    Found in Application/Reporting/SerialLetter/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 getCompanyFilterResultListBySerialLetter has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getCompanyFilterResultListBySerialLetter(
                            TblSerialLetter $tblSerialLetter = null,
                            $FilterGroupList = array(),
                            $FilterCompanyList = array(),
                            $FilterRelationshipList = array(),
                    Severity: Minor
                    Found in Application/Reporting/SerialLetter/SerialLetterFilter.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