Showing 3,246 of 4,217 total issues

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

<?php

load('db_driver', '', 'classes/db/');
class yf_db_driver_mysqli extends yf_db_driver
{
Severity: Minor
Found in plugins/db/classes/db/yf_db_driver_mysqli.class.php - About 2 hrs to fix

    yf_blocks has 24 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class yf_blocks
    {
        /***/
        private $_preload_complete = false;
    
    
    Severity: Minor
    Found in plugins/sys/admin_modules/yf_blocks.class.php - About 2 hrs to fix

      class_assets_test has 24 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class class_assets_test extends PHPUnit\Framework\TestCase
      // class class_assets_test extends yf\tests\wrapper
      {
          public static function setUpBeforeClass() : void
          {
      Severity: Minor
      Found in .dev/tests/unit/class_assets_test.Test.php - About 2 hrs to fix

        yf_core_install has 24 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class yf_core_install
        {
            /**
             * @param mixed $body
             */
        Severity: Minor
        Found in .dev/install/install.php - About 2 hrs to fix

          Method tabs has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function tabs($tabs = [], $extra = [])
              {
                  $extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
          
                  $extra_by_id = [];
          Severity: Major
          Found in plugins/html/classes/yf_html.class.php - About 2 hrs to fix

            Method _api_YandexMoney has 66 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function _api_YandexMoney($title)
                {
                    $php = '';
                    $api = _class('payment_api__provider_yandexmoney');
                    $methods = [
            Severity: Major
            Found in plugins/payment/modules/yf_payment_test.class.php - About 2 hrs to fix

              Method display_what has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function display_what()
                  {
                      $hooks_data = _class('admin_methods')->call_hooks('settings', $r);
                      $avail_hook_modules = [];
                      foreach ((array) $hooks_data as $k => $v) {
              Severity: Major
              Found in plugins/conf/admin_modules/yf_settings.class.php - About 2 hrs to fix

                Method fetch_data has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function fetch_data($params = [])
                    {
                        // Templates names
                        $STPL_MAIN = ! empty($params['stpl_main']) ? $params['stpl_main'] : 'system/common/get_rss_page_main';
                        $STPL_ITEM = ! empty($params['stpl_item']) ? $params['stpl_item'] : 'system/common/get_rss_page_item';
                Severity: Major
                Found in plugins/common/classes/common/yf_rss_data.class.php - About 2 hrs to fix

                  Method data_get_latest_languages has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function data_get_latest_languages()
                  {
                      $url = 'https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes';
                      $f2 = __DIR__ . '/' . basename($url) . '.table.html';
                      if (!file_exists($f2)) {
                  Severity: Major
                  Found in .dev/scripts/languages/get_latest_languages.php - About 2 hrs to fix

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

                        public function show()
                        {
                            $docs = _class('docs');
                            $dir = $docs->demo_dir;
                            $dir_len = strlen($dir);
                    Severity: Major
                    Found in .dev/samples/classes/sample_demo.class.php - About 2 hrs to fix

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

                          public function show()
                          {
                              $object = &$this->object;
                              $action = &$this->action;
                              $filter_name = &$this->filter_name;
                      Severity: Major
                      Found in plugins/payment/admin_modules/yf_manage_currency.class.php - About 2 hrs to fix

                        Method _filter_form_show has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function _filter_form_show($filter, $replace)
                            {
                                $order_fields = [
                                    'o.operation_id' => 'номер операций',
                                    'o.amount' => 'сумма',
                        Severity: Major
                        Found in plugins/payment/admin_modules/yf_manage_deposit.class.php - About 2 hrs to fix

                          Method _filter_form_show has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function _filter_form_show($filter, $replace)
                              {
                                  $order_fields = [
                                      'o.operation_id' => 'номер операций',
                                      'o.amount' => 'сумма',
                          Severity: Major
                          Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 2 hrs to fix

                            Method datetime_select has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function datetime_select($name = '', $desc = '', $extra = [], $replace = [], $form)
                                {
                                    if (is_array($desc)) {
                                        $extra += $desc;
                                        $desc = '';
                            Severity: Major
                            Found in plugins/form2/classes/form2/yf_form2_datetime.class.php - About 2 hrs to fix

                              Method _parse has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _parse($host, $url, $query, $url_str, $class_rewrite)
                                  {
                                      $s = '';
                                      if (false !== strpos($url[0], '%')) {
                                          $url[0] = urldecode($url[0]);
                              Severity: Major
                              Found in plugins/rewrite/classes/rewrite/yf_rewrite_pattern_yf.class.php - About 2 hrs to fix

                                Method get_user_info has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function get_user_info()
                                    {
                                        if (DEBUG_MODE && $_GET['oauth_clean']) {
                                            $this->_storage_clean();
                                        }
                                Severity: Major
                                Found in plugins/oauth/classes/oauth/yf_oauth_driver1.class.php - About 2 hrs to fix

                                  Method btn_active has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function btn_active($name = '', $link = '', $extra = [])
                                      {
                                          if (is_array($name)) {
                                              $extra = $name;
                                              $name = '';
                                  Severity: Major
                                  Found in plugins/table2/classes/yf_table2.class.php - About 2 hrs to fix

                                    Method show_rss_page has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function show_rss_page($data = [], $params = [])
                                        {
                                            require_php_lib('yf_feedcreator');
                                            $rss = new UniversalFeedCreator();
                                            if ( ! isset($params['use_cached']) || ! empty($params['use_cached'])) {
                                    Severity: Major
                                    Found in plugins/common/classes/common/yf_rss_data.class.php - About 2 hrs to fix

                                      Method _check has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _check($target_user_id = 0, $source_user_id = 0)
                                          {
                                              if (empty($source_user_id) && ! empty(main()->USER_ID)) {
                                                  $source_user_id = main()->USER_ID;
                                              }
                                      Severity: Major
                                      Found in plugins/common/classes/common/yf_multi_accounts.class.php - About 2 hrs to fix

                                        Method join_url has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function join_url($parts, $encode = null)
                                            {
                                                if ($encode === null) {
                                                    $encode = $this->AUTO_ENCODE_DECODE;
                                                }
                                        Severity: Major
                                        Found in plugins/common/classes/common/yf_url_to_absolute.class.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language