Showing 3,246 of 4,217 total issues

Method get_asset_from_cdn has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_asset_from_cdn($name, $version = 'master', $asset_data = [], $asset_type)
    {
        if ( ! $name || ! $asset_data || ! isset($asset_data[$asset_type]) || ! $asset_data['url']) {
            return false;
        }
Severity: Minor
Found in plugins/assets/classes/yf_assets.class.php - About 1 hr to fix

    Method _request has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _request($options = null)
        {
            // start
            db()->begin();
            // check operation
    Severity: Minor
    Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

      Method deposition has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function deposition($options = null)
          {
              $_ = &$options;
              $_['type_name'] = __FUNCTION__;
              $_['operation_title'] = $_['operation_title'] ?: 'Пополнение счета';
      Severity: Minor
      Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

        Method money_format has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method dump has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function dump($options = null)
              {
                  static $is_first = true;
                  // import options
                  is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
          Severity: Minor
          Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

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

                public function status($options = null)
                {
                    // get status
                    $status = $this->status;
                    $status_index = $this->status_index;
            Severity: Minor
            Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

              Method _recursive_get_methods_from_extends has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _recursive_get_methods_from_extends($file_text = '', $user_module_name = '', $ONLY_PRIVATE_METHODS = false)
                  {
                      // TODO: need to add 'site__' and 'adm__' functionality
                      $extends_file_path = '';
                      $methods = [];
              Severity: Minor
              Found in plugins/sys/classes/core_api/yf_core_api_user_modules.class.php - About 1 hr to fix

                Method _tinymce_html has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function _tinymce_html($extra = [], $replace = [], $form)
                    {
                        if ( ! is_array($extra)) {
                            return '';
                        }
                Severity: Minor
                Found in plugins/form2/classes/form2/yf_form2_tinymce.class.php - About 1 hr to fix

                  Method custom_fields has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function custom_fields($name, $custom_fields, $extra = [], $replace = [])
                      {
                          if ( ! is_array($extra)) {
                              $extra = [];
                          }
                  Severity: Minor
                  Found in plugins/form2/classes/yf_form2.class.php - About 1 hr to fix

                    Method create_column_line has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function create_column_line($name = '', $v = [], $params = [])
                        {
                            if (is_array($name)) {
                                $v = $name;
                                $name = $v['name'];
                    Severity: Minor
                    Found in plugins/db/classes/db/yf_db_ddl_parser_mysql.class.php - About 1 hr to fix

                      Method _send_email_to_user has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function _send_email_to_user($user_id, $template_name, $data = [], $instant_send = true, $require_verified_email = false, $is_wall_update = true, $template_group = '')
                          {
                              $instant_send = false;
                              $user_data = db()->from('user')->whereid($user_id)->get();
                              if (empty($user_data)) {
                      Severity: Minor
                      Found in plugins/email/classes/yf_email.class.php - About 1 hr to fix

                        Method compile_update has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function compile_update($table, array $data, $where, $params = [])
                            {
                                if (empty($table) || empty($data) || empty($where)) {
                                    return false;
                                }
                        Severity: Minor
                        Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

                          Method _send_copies has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function _send_copies($params = [])
                              {
                                  if ( ! $params) {
                                      return false;
                                  }
                          Severity: Minor
                          Found in plugins/email/classes/yf_email.class.php - About 1 hr to fix

                            Method get_real_table_sql_php has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function get_real_table_sql_php($table)
                                {
                                    $utils = $this->db->utils();
                                    $db_prefix = $this->db->DB_PREFIX;
                            
                            
                            Severity: Minor
                            Found in plugins/db/classes/db/yf_db_migrator.class.php - About 1 hr to fix

                              Method _show_error_message has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _show_error_message($cur_error_msg = '', $clear_error = true)
                                  {
                                      // Prevent recursive display
                                      if (strlen($cur_error_msg) && false !== strpos($cur_error_msg, '<!--YF_ERROR_MESSAGE_START-->')) {
                                          return t($cur_error_msg);
                              Severity: Minor
                              Found in plugins/common/classes/yf_common.class.php - About 1 hr to fix

                                Method diff_config has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function diff_config($options = [])
                                    {
                                        if ( ! $options || ! is_array($options)) {
                                            return  null;
                                        }
                                Severity: Minor
                                Found in plugins/redis/classes/yf_wrapper_redis.class.php - About 1 hr to fix

                                  Method resize_and_save_image has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function resize_and_save_image($img, $id, $md5)
                                      {
                                          ini_set('memory_limit', '200M');
                                          $dirs = sprintf('%06s', $id);
                                          $dir2 = substr($dirs, -3, 3);

                                    Method _order_recount_price has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function _order_recount_price($order_id, $order_info = [])
                                        {
                                            $order_id = (int) $order_id;
                                            $price_total = 0;
                                            $Q = db()->query('SELECT * FROM ' . db('shop_order_items') . " WHERE order_id=$order_id");

                                      Method _recursive_get_methods_from_extends has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _recursive_get_methods_from_extends($file_text = '', $user_module_name = '', $ONLY_PRIVATE_METHODS = false)
                                          {
                                              // TODO: need to add 'site__' and 'adm__' functionality
                                              $extends_file_path = '';
                                              $methods = [];
                                      Severity: Minor
                                      Found in plugins/user/admin_modules/yf_user_modules.class.php - About 1 hr to fix

                                        Method _cleanup_address has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _cleanup_address($data)
                                            {
                                                $address = null;
                                                $branch_no = 1;
                                                $info = null;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language