Showing 3,246 of 4,217 total issues
Method save
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
$_GET['id'] = (int) ($_GET['id']);
$update = [
'ad' => _es($_POST['ad']),
Method _process_includes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _process_includes($string, $replace = [], $name = '')
{
$_this = $this;
$pattern = '/\{(include|include_if_exists)\(\s*["\']{0,1}\s*([@:\w\\/\.]+)\s*["\']{0,1}?\s*[,;]{0,1}\s*([^"\'\)\}]*)\s*["\']{0,1}\s*\)\}/ims';
$extra = [];
Method country_box
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function country_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method _prepare_css_class
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _prepare_css_class($default_class = '', $value = '', &$extra)
{
$css_class = $default_class;
if ($extra['badge']) {
$badge = is_array($extra['badge']) && isset($extra['badge'][$value]) ? $extra['badge'][$value] : $extra['badge'];
Method _process_executes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _process_executes($string, array &$replace, $name = '', $params = [])
{
if (empty($string)) {
return $string;
}
Method _show_filter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_filter()
{
if ( ! in_array($_GET['action'], ['show'])) {
return false;
}
Method send
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(array $params = [], &$error_message = '')
{
require_php_lib('sendinblue');
$error_message = null;
Method details
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function details()
{
if (empty($_GET['id'])) {
return _e('Empty revision id');
}
Method _escape_col_name
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _escape_col_name($name = '')
{
$name = trim($name);
if ( ! strlen($name)) {
return false;
Method _model_load
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _model_load($name)
{
$main = main();
$model_class = $name . '_model';
$custom_storages = &$main->_custom_class_storages;
Method get_user_info
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_user_info()
{
$access_token = $this->_storage_get('access_token');
if ( ! $access_token) {
$access_token = $this->get_access_token();
Method _set_connect_params
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _set_connect_params($db_host = '', $db_user = '', $db_pswd = null, $db_name = null, $force = false, $params = [])
{
if (is_array($db_host)) {
$params = $db_host;
$db_host = '';
Method css_class_body
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function css_class_body($extra = [])
{
if ( ! is_array($extra)) {
$extra = [];
}
Method users
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function users()
{
if (empty($_SESSION[$_GET['object'] . '__users'])) {
$_SESSION[$_GET['object'] . '__users'] = [
'order_by' => 'add_date',
Method _hook_widget__stats
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _hook_widget__stats($params = [])
{
$meta = [
'name' => 'Shop: overall stats',
'desc' => 'Overall shop stats numbers',
Method _send_info_to_user
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _send_info_to_user($user = [])
{
if (empty($user)) {
return false;
}
Method checkout_product_revision
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkout_product_revision()
{
$_GET['id'] = (int) ($_GET['id']);
$revision_data = db()->get('SELECT * FROM ' . db('shop_product_revisions') . ' WHERE id=' . $_GET['id']);
if (empty($revision_data)) {
Method _recursive_get_children_ids
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _recursive_get_children_ids($cat_id = 0, $cat_items = [], $get_sub_children = true, $return_array = false)
{
$children_ids = [];
if (empty($cat_id)) {
return $children_ids;
Method _quick_menu
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _quick_menu()
{
$menu = [
[
'name' => 'Manage',
Method edit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$a = $this->_get_info();
if ( ! $a) {
return _404();