Showing 3,246 of 4,217 total issues
yf_api
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_api
{
public $API_SSL_VERIFY = true;
public $JSON_VULNERABILITY_PROTECTION = true;
public $ROBOT_NONE = true;
yf_db_driver
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class yf_db_driver
{
abstract protected function __construct(array $params);
/**
yf_manage_dashboards
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_manage_dashboards
{
/**
* Bootstrap CSS classes used to create configurable grid.
*/
class_rewrite_testing_shared
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class class_rewrite_testing_shared extends yf\tests\wrapper
{
private static $host = 'test.dev';
private static $_bak_settings = [];
Method _filter_form_show
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _filter_form_show($filter, $replace)
{
$order_fields = [
'o.operation_id' => 'номер операций',
'o.amount' => 'сумма',
Method vars
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function vars()
{
$vars = $this->_get_all_vars_from_files();
$vars_db = $this->_get_all_vars_from_db();
foreach ((array) $vars_db as $source => $a) {
Method _check_interkassa
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check_interkassa($options = null)
{
// check operation
$operation = $this->_operation($options);
// import options
Method daterange_select
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function daterange_select($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($desc)) {
$extra += $desc;
$desc = '';
Method connect
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function connect()
{
$this->db_connect_id = mysqli_init();
if ( ! $this->db_connect_id || mysqli_connect_errno()) {
$this->_connect_error = 'cannot_connect_to_server';
Method basket
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function basket($params = [])
{
$STPL_NAME = $params['STPL'] ? $params['STPL'] : 'shop/basket';
$basket_contents = module('shop')->_basket_api()->get_all();
Method main_layout_html
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function main_layout_html($body = '')
{
ob_start(); ?>
<!DOCTYPE html>
<html>
Method show
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$a = $this->_get_page_from_db();
if ( ! $a) {
return _404();
Method _user_message
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _user_message($options = null)
{
$url = &$this->url;
// import operation
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
Method authorize
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function authorize()
{
$url = &$this->url;
$url_authorize = $this->_url('authorize');
// class
Method _user_message
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _user_message($options = null)
{
$url = &$this->url;
// import operation
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
Method _paths
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _paths() {
$paths = [
'.',
'plugins',
];
Method _init
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init()
{
// Needed to ensure backtracking still works on big templates (extended from 1 000 000 on 26kb stpl js() parsing)
ini_set('pcre.backtrack_limit', '10000000');
Method _prepare_cond_text
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _prepare_cond_text($cond = '', $replace = [], $stpl_name = '', $for_right = false)
{
$prepared_array = [];
$cond = str_replace("\t", '', trim($cond));
foreach (explode(' ', $cond) as $val) {
Method _user_security_checks
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _user_security_checks($user_id)
{
$user_id = (int) $user_id;
if ( ! $this->USER_SECURITY_CHECKS || ! $user_id) {
return false;
Method _rss_general
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _rss_general()
{
foreach ((array) module('comments')->COMMENT_LINKS as $key => $value) {
$where .= 'object_name="' . $key . '"';
if ($value !== end(module('comments')->COMMENT_LINKS)) {