DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method createInvoiceCreditorList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createInvoiceCreditorList($InvoiceCreditor = array())
    {

        $Manager = $this->getConnection()->getEntityManager();
        /** @var TblCreditor $tblCreditor */
Severity: Minor
Found in Application/Billing/Bookkeeping/Invoice/Service/Data.php - About 1 hr to fix

    Method formFilter has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function formFilter()
        {
    
            $tblGroupAll = Group::useService()->getGroupAllSorted();
            $tblDivisionList = array();
    Severity: Minor
    Found in Application/People/Group/Frontend.php - About 1 hr to fix

      Method insertStudentTransfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function insertStudentTransfer(
              TblStudent $tblStudent,
              TblStudentTransferType $tblStudentTransferType,
              TblCompany $tblCompany = null,
              TblType $tblType = null,
      Severity: Minor
      Found in Application/People/Meta/Student/Service/Service/Transfer.php - About 1 hr to fix

        Method addStudentSubject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function addStudentSubject(
                TblStudent $tblStudent,
                TblStudentSubjectType $tblStudentSubjectType,
                TblStudentSubjectRanking $tblStudentSubjectRanking,
                TblSubject $tblSubject,
        Severity: Minor
        Found in Application/People/Meta/Student/Service/Data/Subject.php - About 1 hr to fix

          Method setupDatabaseSchema has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function setupDatabaseSchema($Simulate = true, $UTF8 = false)
              {
          
                  /**
                   * Table
          Severity: Minor
          Found in Application/People/Relationship/Service/Setup.php - About 1 hr to fix

            Method getGradesFromAnotherDivisionByStudent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getGradesFromAnotherDivisionByStudent(
                    TblDivision $tblDivision,
                    TblSubject $tblSubject,
                    TblYear $tblYear,
                    TblPerson $tblPerson,
            Severity: Minor
            Found in Application/Education/Graduation/Gradebook/Service.php - About 1 hr to fix

              Method getCertificateMultiContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getCertificateMultiContent(TblPrepareCertificate $tblPrepare, TblGroup $tblGroup = null)
                  {
              
                      $Content = array();
              
              
              Severity: Minor
              Found in Application/Education/Certificate/Prepare/Service.php - About 1 hr to fix

                Method setAvailableSubjects has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function setAvailableSubjects()
                    {
                        $this->setCourses();
                        $list = array();
                        foreach ($this->subjectList as $acronym => $name) {
                Severity: Minor
                Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 1 hr to fix

                  Method updateGradeInformation has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function updateGradeInformation(
                          IFormInterface $Stage = null,
                          TblPrepareCertificate $tblPrepare,
                          $Route = 'Teacher',
                          $Data
                  Severity: Minor
                  Found in Application/Education/Certificate/GradeInformation/Service.php - About 1 hr to fix

                    Method frontendSortDivision has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function frontendSortDivision($DivisionId = null)
                        {
                    
                            $Stage = new Stage('Klassenbuch', 'Schüler sortieren');
                    
                    
                    Severity: Minor
                    Found in Application/Education/ClassRegister/Sort/Frontend.php - About 1 hr to fix

                      Method getSubjectTeacherNameList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public
                          function getSubjectTeacherNameList(
                              TblDivision $tblDivision,
                              TblSubject $tblSubject,
                              TblSubjectGroup $tblSubjectGroup = null
                      Severity: Minor
                      Found in Application/Education/Lesson/Division/Service.php - About 1 hr to fix

                        Method innerJoin has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            protected function innerJoin($List)
                            {
                                $Result = array();
                                /** @var AbstractView $Node0 */
                                foreach ($List[0] as $Node0) {
                        Severity: Minor
                        Found in System/Database/Filter/Link/Repository/Node4.php - About 1 hr to fix

                          Method __toView has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function __toView()
                              {
                          
                                  if (method_exists($this, 'getNameDefinition')) {
                                      $Object = new \ReflectionObject($this);
                          Severity: Minor
                          Found in System/Database/Binding/AbstractView.php - About 1 hr to fix

                            Function setTableUserAccount has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                private function setTableUserAccount(Schema &$Schema)
                                {
                            
                                    $Table = $this->getConnection()->createTable($Schema, 'tblUserAccount');
                                    if (!$this->getConnection()->hasColumn('tblUserAccount', 'serviceTblAccount')) {
                            Severity: Minor
                            Found in Application/Setting/User/Account/Service/Setup.php - About 1 hr 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 createResponsibility has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createResponsibility(
                                    IFormInterface $Form,
                                    $Responsibility
                                ) {
                            
                            
                            Severity: Minor
                            Found in Application/Setting/Consumer/Responsibility/Service.php - About 1 hr 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 createToken has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createToken(IFormInterface $Form, $CredentialKey, TblConsumer $tblConsumer = null)
                                {
                            
                                    try {
                                        if (null !== $CredentialKey && !empty( $CredentialKey )) {
                            Severity: Minor
                            Found in Application/Setting/Authorization/Token/Service.php - About 1 hr 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 createSponsorAssociation has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createSponsorAssociation(
                                    IFormInterface $Form,
                                    $SponsorAssociation
                                ) {
                            
                            
                            Severity: Minor
                            Found in Application/Setting/Consumer/SponsorAssociation/Service.php - About 1 hr 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 createGroup has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function createGroup(IFormInterface $Form = null, $Group)
                                {
                            
                                    /**
                                     * Skip to Frontend
                            Severity: Minor
                            Found in Application/Corporation/Group/Service.php - About 1 hr 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 downloadAccountList has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function downloadAccountList($GroupByTime = null)
                                {
                            
                                    if ($GroupByTime) {
                                        $tblUserAccountList = Account::useService()->getUserAccountByTime((new \DateTime($GroupByTime)));
                            Severity: Minor
                            Found in Application/Api/Setting/UserAccount/AccountUserExcel.php - About 1 hr 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 updateCityAnonymousBulk has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function updateCityAnonymousBulk($ProcessList, $CityName = '')
                                {
                            
                                    $Manager = $this->getConnection()->getEntityManager();
                                    if(!empty($ProcessList)){
                            Severity: Minor
                            Found in Application/Contact/Address/Service/Data.php - About 1 hr 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