Showing 3,246 of 4,217 total issues

File yf_other_common.class.php has 294 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * Other common methods container.
 *
Severity: Minor
Found in plugins/common/classes/common/yf_other_common.class.php - About 3 hrs to fix

    File yf_divide_pages.class.php has 294 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * Common used pager module.
     *
    Severity: Minor
    Found in plugins/common/classes/common/yf_divide_pages.class.php - About 3 hrs to fix

      Method user_vars has 76 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function user_vars()
          {
              if (isset($_GET['id']) && ! isset($_GET['page'])) {
                  $_GET['page'] = $_GET['id'];
                  $_GET['id'] = null;

        Method init has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function init()
            {
                // Chanined config rule
                if ($this->BLOCK_FAILED_LOGINS) {
                    $this->LOG_FAILED_LOGINS = true;
        Severity: Major
        Found in plugins/auth/classes/auth/yf_auth_admin.class.php - About 3 hrs to fix

          Method _do_login has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _do_login($params = [])
              {
                  $AUTH_LOGIN = trim($params['login']);
                  $AUTH_PSWD = trim($params['pswd']);
          
          
          Severity: Major
          Found in plugins/auth/classes/auth/yf_auth_user.class.php - About 3 hrs to fix

            Method show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function show()
                {
                    $this->refresh_modules_list($silent = true);
            
                    if (main()->is_post()) {
            Severity: Major
            Found in plugins/admin/admin_modules/yf_admin_modules.class.php - About 3 hrs to fix

              Method compile_insert has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function compile_insert($table, $data, $params = [])
                  {
                      if ( ! strlen($table) || ! is_array($data)) {
                          return false;
                      }
              Severity: Major
              Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 3 hrs to fix

                Method test_query_models has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function test_query_models()
                    {
                        if ($this->_need_skip_test(__FUNCTION__)) {
                            return;
                        }
                Severity: Major
                Found in .dev/tests/functional/model/class_model_bears_test.Test.php - About 3 hrs to fix

                  Method test_cleanup_split_trim has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function test_cleanup_split_trim()
                      {
                          $rules_raw = [
                              'test1,test2,test3' => 'min_length:2|max_length:12|is_unique:user.login|between:1,10|chars:a,b,c,d|regex:[a-z0-9]+',
                          ];
                  Severity: Major
                  Found in .dev/tests/unit/class_validate_test.Test.php - About 3 hrs to fix

                    Method test_where_basic has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function test_where_basic()
                        {
                            if ($this->_need_skip_test(__FUNCTION__)) {
                                return;
                            }
                    Severity: Major
                    Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 3 hrs to fix

                      File yf_db_utils_pgsql.class.php has 292 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      
                      
                      load('db_utils_driver', '', 'classes/db/');
                      class yf_db_utils_pgsql extends yf_db_utils_driver
                      Severity: Minor
                      Found in plugins/db/classes/db/yf_db_utils_pgsql.class.php - About 3 hrs to fix

                        File yf_rss_data.class.php has 292 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        /**
                         * RSS data handler.
                         *
                        Severity: Minor
                        Found in plugins/common/classes/common/yf_rss_data.class.php - About 3 hrs to fix

                          File class_db_ddl_parser_mysql_test_tbl_film.php has 292 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          return [
                              'name' => 'film',
                              'fields' => [
                                  'film_id' => [

                            Method _get_all_content_for_out has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function _get_all_content_for_out($out_type, $params = [])
                                {
                                    $is_ajax = main()->is_ajax();
                                    // Move down inlined content
                                    $all_content = $this->get_content($out_type);
                            Severity: Major
                            Found in plugins/assets/classes/yf_assets.class.php - About 3 hrs to fix

                              Method _css_urls_rewrite_and_save has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _css_urls_rewrite_and_save($content, $content_url, $cache_path, $content_type = 'url', $orig_content = '')
                                  {
                                      $_this = $this;
                                      $self_func = __FUNCTION__;
                                      return preg_replace_callback('~url\([\'"\s]*(?P<url>[^\'"\)]+?)[\'"\s]*\)~ims', function ($m) use ($_this, $content_url, $cache_path, $content_type, $orig_content, $self_func) {
                              Severity: Major
                              Found in plugins/assets/classes/yf_assets.class.php - About 3 hrs to fix

                                yf_cache has 26 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class yf_cache
                                {
                                    /** @var int Cache entries time-to-live (in seconds) */
                                    public $TTL = 3600;
                                    /** @var string Cache driver to use */
                                Severity: Minor
                                Found in plugins/cache/classes/yf_cache.class.php - About 3 hrs to fix

                                  yf_ck_file_browser has 26 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class yf_ck_file_browser
                                  {
                                      public $TOP_DIR = '/uploads/';
                                      public $WRITABLE_DIR = '/uploads/ck_browser/';
                                      public $ALLOWED_EXTS = [
                                  Severity: Minor
                                  Found in plugins/ckeditor/admin_modules/yf_ck_file_browser.class.php - About 3 hrs to fix

                                    Method show has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function show()
                                        {
                                            $this->refresh_modules_list($silent = true);
                                    
                                            if (main()->is_post()) {
                                    Severity: Major
                                    Found in plugins/user/admin_modules/yf_user_modules.class.php - About 3 hrs to fix

                                      Method go has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function go()
                                          {
                                              if ( ! $this->LOGGING || MAIN_TYPE_USER) {
                                                  return false;
                                              }
                                      Severity: Major
                                      Found in plugins/logs/classes/logs/yf_logs_exec_admin.class.php - About 3 hrs to fix

                                        yf_category_editor has 26 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class yf_category_editor
                                        {
                                            /** @var int */
                                            public $ITEMS_PER_PAGE = 100;
                                            /** @var bool */
                                        Severity: Minor
                                        Found in plugins/categories/admin_modules/yf_category_editor.class.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language