Showing 3,246 of 4,217 total issues

Method _show_header has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _show_header()
    {
        if (conf('no_page_header')) {
            return false;
        }
Severity: Minor
Found in classes/yf_graphics.class.php - About 1 hr to fix

    Method _debug_rewrite has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _debug_rewrite(&$params = [])
        {
            if ( ! $this->SHOW_REWRITE_INFO) {
                return '';
            }
    Severity: Minor
    Found in classes/yf_debug.class.php - About 1 hr to fix

      Method _debug_memcached has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _debug_memcached(&$params = [])
          {
              if ( ! $this->SHOW_MEMCACHED_INFO) {
                  return '';
              }
      Severity: Minor
      Found in classes/yf_debug.class.php - About 1 hr to fix

        Method _debug_sphinxsearch has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function _debug_sphinxsearch(&$params = [])
            {
                if ( ! $this->SHOW_SPHINX) {
                    return '';
                }
        Severity: Minor
        Found in classes/yf_debug.class.php - About 1 hr to fix

          Method _debug_dashboard has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _debug_dashboard()
              {
                  if ( ! $this->SHOW_DB_STATS) {
                      return '';
                  }
          Severity: Minor
          Found in classes/yf_debug.class.php - About 1 hr to fix

            Method _is_online has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function _is_online($user_ids, $user_type = null)
                {
                    if (is_array($user_ids)) {
                    } else {
                        $user_ids = (int) $user_ids;
            Severity: Minor
            Found in plugins/user/classes/yf_online_users.class.php - About 1 hr to fix

              Method _show_avatar has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _show_avatar($user_id = 0, $user_name = '', $as_link = 0, $is_middle = 0, $only_img_src = 0, $force_link = '')
                  {
                      if (is_array($user_name)) {
                          $user_info = $user_name;
                          $user_name = _display_name($user_info);
              Severity: Minor
              Found in classes/yf_utils.class.php - About 1 hr to fix

                Method _get_console_commands has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function _get_console_commands()
                    {
                        $cmds = [];
                        $subfolder = 'commands/';
                        $prefix_project = 'console_';
                Severity: Minor
                Found in .dev/samples/classes/sample_console_tool.class.php - About 1 hr to fix

                  Method test_query_stats_override has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function test_query_stats_override()
                      {
                          $bak['ERROR_AUTO_REPAIR'] = self::db()->ERROR_AUTO_REPAIR;
                          self::db()->ERROR_AUTO_REPAIR = true;
                  
                  

                    Method test_foreach has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function test_foreach()
                        {
                            $data2 = [
                                5 => ['name' => 'name1', 'age' => 21],
                                6 => ['name' => 'name2', 'age' => 22],
                    Severity: Minor
                    Found in .dev/tests/unit/tpl/tpl_driver_yf_core_test.Test.php - About 1 hr to fix

                      Method test_foreach has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function test_foreach()
                          {
                              $data2 = [
                                  5 => ['name' => 'name1', 'age' => 21],
                                  6 => ['name' => 'name2', 'age' => 22],
                      Severity: Minor
                      Found in .dev/tests/unit/tpl/tpl_driver_yf_foreach_test.Test.php - About 1 hr to fix

                        Method test_table_get_columns has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method test_avail_arrays has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function test_avail_arrays()
                              {
                                  // TODO: deep debug why
                                  // For some reason it fails under current jenkins
                                  if (getenv('CI') === 'jenkins') {
                          Severity: Minor
                          Found in .dev/tests/unit/tpl/tpl_driver_yf_core_test.Test.php - About 1 hr to fix

                            Method test_where_or has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function test_where_or()
                                {
                                    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_avail_arrays has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function test_avail_arrays()
                                  {
                                      // TODO: deep debug why
                                      // For some reason it fails under current jenkins
                                      if (getenv('CI') === 'jenkins') {
                              Severity: Minor
                              Found in .dev/tests/unit/tpl/tpl_driver_yf_foreach_test.Test.php - About 1 hr to fix

                                Method test_15 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Method write_user_index_php has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function write_user_index_php($rewrite_enabled = true)
                                      {
                                          $index_file_content = '<?php
                                  $dev_settings = dirname(__DIR__).\'/.dev/override.php\';
                                  if (file_exists($dev_settings)) {
                                  Severity: Minor
                                  Found in .dev/install/install.php - About 1 hr to fix

                                    Method _do_compress_php_file has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function _do_compress_php_file($file_to_open = '', $file_to_save = '')
                                    {
                                        $source = file_get_contents($file_to_open);
                                        // Removes comments
                                        foreach ((array) token_get_all($source) as $token) {
                                    Severity: Minor
                                    Found in .dev/useful/pack_zend.php - About 1 hr to fix

                                      Method test_25 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Method navbar has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function navbar($data = [], $extra = [])
                                            {
                                                $extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
                                                $items = [];
                                                $brand = '';
                                        Severity: Minor
                                        Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language