Showing 3,246 of 4,217 total issues
Method api_url
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function api_url($options = null, $request_options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if ( ! empty($_url)) {
Method _sign_webmoney
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _sign_webmoney()
{
$form = '';
$api = _class('payment_api__provider_webmoney');
// test signature
Method prefetch_center
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function prefetch_center()
{
$block_name = 'center_area';
if ( ! isset($this->_blocks_infos)) {
$this->_blocks_infos = main()->get_data('blocks_all');
Method _api_deposition
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_deposition($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method _get_dir_contents
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_dir_contents($abs_dir_name)
{
$contents = [
'dirs' => [],
'files' => [],
Method api_request__X2
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function api_request__X2($options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _i18n_wrapper
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _i18n_wrapper($input = '', $replace = [])
{
if ( ! strlen($input)) {
return '';
}
Method _debug_get_vars
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_get_vars($string = '')
{
$not_replaced = [];
$patterns = [
'/\{([a-z0-9\_]{1,64})\}/ims',
Method tpl_row
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function tpl_row($type = 'input', $replace = [], $name = '', $desc = '', $extra = [])
{
$name = trim($name);
if ($name && $name[0] == '%') {
$_name = substr($name, 1);
Method _show_filter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_filter()
{
$filters = [
'show' => function ($filter_name, $replace) {
$fields = ['id', 'date', 'query_method', 'query_table', 'ip', 'user_id'];
Method show
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$blocks = main()->get_data('blocks_all');
foreach ((array) $blocks as $_id => $_info) {
if ($_info['type'] == 'admin' && $_info['name'] == 'center_area') {
Method _render_debug_info
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _render_debug_info(&$params, $ts = 0, $trace = '')
{
if ( ! DEBUG_MODE) {
return false;
}
Method _render_auto
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _render_auto(&$params, &$data)
{
if ($params['auto'] && $data) {
$field_names = array_keys((array) current((array) $data));
$skip_fields = [];
Method _hook_widget__latest_sold_products
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _hook_widget__latest_sold_products($params = [])
{
$meta = [
'name' => 'Shop: latest sold products',
'desc' => 'List of latest sold products',
Method lock
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function lock($resource, $ttl)
{
$this->init_instances();
$token = uniqid();
Method _api_upload_item
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _api_upload_item()
{
$sub_action = $_GET['sub_action'];
if ($this->is_post) {
$post = json_decode(file_get_contents('php://input'), true);
Method clear_pattern_list
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function clear_pattern_list()
{
if ( ! isset($_GET['id']) && (int) ($_GET['id'])) {
return t('Empty clear pattern ID');
}
Method _form
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data)
{
$_class_price = $this->_class_price;
list($total, $preview) = $data;
$replace = [
Method new_revision
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function new_revision($function, $ids, $db_table)
{
if (empty($function) || empty($ids) || empty($db_table)) {
return false;
}
Method details
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function details()
{
$sql = 'SELECT * FROM ' . db('shop_revisions') . ' WHERE id=' . (int) ($_GET['id']);
$a = db()->get($sql);
if (empty($a)) {