Showing 3,246 of 4,217 total issues

Method data_get_latest_lang_by_country has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function data_get_latest_lang_by_country()
    {
        global $url, $result_file, $suffix;

        $f2 = __DIR__ . '/' . basename($url) . '.table' . $suffix . '.html';
Severity: Minor
Found in .dev/scripts/lang_by_country/get_latest_lang_by_country.php - About 1 hr to fix

    Method test_group_by has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function test_group_by()
        {
            if ($this->_need_skip_test(__FUNCTION__)) {
                return;
            }
    Severity: Minor
    Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 1 hr to fix

      Method test_select_star has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function test_select_star()
          {
              if ($this->_need_skip_test(__FUNCTION__)) {
                  return;
              }
      Severity: Minor
      Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 1 hr to fix

        Method test_cleanup_32 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function test_cleanup_32()
            {
                $closure = function ($in) {
                    return module('register')->_login_not_exists($in);
                };
        Severity: Minor
        Found in .dev/tests/unit/class_validate_test.Test.php - About 1 hr to fix

          Method test_helper_foreign_key has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function test_helper_foreign_key()
              {
                  if ($this->_need_skip_test(__FUNCTION__)) {
                      return;
                  }
          Severity: Minor
          Found in .dev/tests/functional/db/class_db_real_utils_mysql_test.Test.php - About 1 hr to fix

            Method test_having has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function test_having()
                {
                    if ($this->_need_skip_test(__FUNCTION__)) {
                        return;
                    }
            Severity: Minor
            Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 1 hr to fix

              Method _fix_sql_php has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _fix_sql_php($sql_php)
                  {
                      $innodb_has_fulltext = self::_innodb_has_fulltext();
                      if ( ! $innodb_has_fulltext) {
                          // Remove fulltext indexes from db structure before creating table
              Severity: Minor
              Found in .dev/tests/functional/model/class_model_sakila_test.Test.php - About 1 hr to fix

                Method test_count has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function test_count()
                    {
                        $this->assertFalse(
                            self::qb()->count(null, $sql = true)
                        );
                Severity: Minor
                Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 1 hr to fix

                  Method test_if_funcs_multiple has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function test_if_funcs_multiple()
                      {
                          $data = ['name1' => '', 'name2' => 'something', 'name3' => '', 'name4' => 'other', 'name5' => '', 'name6' => 'gggggg'];
                  
                          $this->assertEquals('good', self::_tpl('{if_not_ok(name1,name3)}good{/if}', $data));
                  Severity: Minor
                  Found in .dev/tests/unit/tpl/tpl_driver_yf_core_test.Test.php - About 1 hr to fix

                    Method test_rewrite_short_form has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function test_rewrite_short_form()
                        {
                            $this->assertEquals('http://' . self::$host . '/test/my/123/456', url('/test/my/123/456', ['host' => self::$host]));
                    
                            $this->assertEquals('http://' . self::$host . '/test', url('/test', ['host' => self::$host]));
                    Severity: Minor
                    Found in .dev/tests/rewrite/class_rewrite_testing_shared.php - About 1 hr to fix

                      Method test_5 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function test_5()
                          {
                              module_conf('test', [
                                  'key1' => 'val1',
                                  'key2::sub1' => 'val21',
                      Severity: Minor
                      Found in .dev/tests/unit/functions/function_module_conf_test.Test.php - About 1 hr to fix

                        Method multi_select_box has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function multi_select_box($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
                        Severity: Major
                        Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix

                          Method multi_select has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public function multi_select($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
                          Severity: Major
                          Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix

                            Method multi_select has 9 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function multi_select($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
                            Severity: Major
                            Found in plugins/common/classes/yf_common.class.php - About 1 hr to fix

                              Method multi_select_box has 9 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  public function multi_select_box($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
                              Severity: Major
                              Found in plugins/common/classes/yf_common.class.php - About 1 hr to fix

                                Method call_class_method has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public function call_class_method($class_name = '', $custom_path = '', $method_name = '', $method_params = '', $tpl_name = '', $silent = false, $use_cache = false, $cache_ttl = -1, $cache_key_override = '')
                                Severity: Major
                                Found in classes/yf_main.class.php - About 1 hr to fix

                                  Function from_mysql has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  Date.prototype.from_mysql = function( str ) {
                                      if( typeof str === 'string' ) {
                                          var is_422 = false;
                                          var is_224 = false;
                                          if( /^\d{4}[\.\-]\d{1,2}[\.\-]\d{1,2}/.test( str ) ) {
                                  Severity: Minor
                                  Found in plugins/content/templates/user/js/ng/payment/balance-recharge.js - About 1 hr to fix

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

                                        public function status()
                                        {
                                            // check operation
                                            $operation = $this->_operation();
                                            // import options
                                    Severity: Minor
                                    Found in plugins/payment/admin_modules/yf_manage_deposit.class.php - About 1 hr to fix

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

                                          public function _form_options($options)
                                          {
                                              if ( ! $this->ENABLE) {
                                                  return  null;
                                              }
                                      Severity: Minor
                                      Found in plugins/payment/classes/yf_payment_api__provider_liqpay.class.php - About 1 hr to fix

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

                                            public function is_user_mail($options = null)
                                            {
                                                // import options
                                                is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                                // var
                                        Severity: Minor
                                        Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language