Showing 3,246 of 4,217 total issues
Method get_asset_from_cdn
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
}
Method _request
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _request($options = null)
{
// start
db()->begin();
// check operation
Method deposition
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function deposition($options = null)
{
$_ = &$options;
$_['type_name'] = __FUNCTION__;
$_['operation_title'] = $_['operation_title'] ?: 'Пополнение счета';
Method money_format
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function money_format($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// currency
Method dump
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function dump($options = null)
{
static $is_first = true;
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
Method status
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function status($options = null)
{
// get status
$status = $this->status;
$status_index = $this->status_index;
Method _recursive_get_methods_from_extends
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = [];
Method _tinymce_html
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _tinymce_html($extra = [], $replace = [], $form)
{
if ( ! is_array($extra)) {
return '';
}
Method custom_fields
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function custom_fields($name, $custom_fields, $extra = [], $replace = [])
{
if ( ! is_array($extra)) {
$extra = [];
}
Method create_column_line
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create_column_line($name = '', $v = [], $params = [])
{
if (is_array($name)) {
$v = $name;
$name = $v['name'];
Method _send_email_to_user
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)) {
Method compile_update
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function compile_update($table, array $data, $where, $params = [])
{
if (empty($table) || empty($data) || empty($where)) {
return false;
}
Method _send_copies
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _send_copies($params = [])
{
if ( ! $params) {
return false;
}
Method get_real_table_sql_php
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_real_table_sql_php($table)
{
$utils = $this->db->utils();
$db_prefix = $this->db->DB_PREFIX;
Method _show_error_message
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method diff_config
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function diff_config($options = [])
{
if ( ! $options || ! is_array($options)) {
return null;
}
Method resize_and_save_image
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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 = [];
Method _cleanup_address
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _cleanup_address($data)
{
$address = null;
$branch_no = 1;
$info = null;