Showing 3,246 of 4,217 total issues
File yf_other_common.class.php
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Other common methods container.
*
File yf_divide_pages.class.php
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Common used pager module.
*
Method user_vars
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function user_vars()
{
if (isset($_GET['id']) && ! isset($_GET['page'])) {
$_GET['page'] = $_GET['id'];
$_GET['id'] = null;
Method init
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function init()
{
// Chanined config rule
if ($this->BLOCK_FAILED_LOGINS) {
$this->LOG_FAILED_LOGINS = true;
Method _do_login
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _do_login($params = [])
{
$AUTH_LOGIN = trim($params['login']);
$AUTH_PSWD = trim($params['pswd']);
Method show
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$this->refresh_modules_list($silent = true);
if (main()->is_post()) {
Method compile_insert
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function compile_insert($table, $data, $params = [])
{
if ( ! strlen($table) || ! is_array($data)) {
return false;
}
Method test_query_models
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_query_models()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_cleanup_split_trim
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_cleanup_split_trim()
{
$rules_raw = [
'test1,test2,test3' => 'min_length:2|max_length:12|is_unique:user.login|between:1,10|chars:a,b,c,d|regex:[a-z0-9]+',
];
Method test_where_basic
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_where_basic()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
File yf_db_utils_pgsql.class.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
load('db_utils_driver', '', 'classes/db/');
class yf_db_utils_pgsql extends yf_db_utils_driver
File yf_rss_data.class.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* RSS data handler.
*
File class_db_ddl_parser_mysql_test_tbl_film.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'name' => 'film',
'fields' => [
'film_id' => [
Method _get_all_content_for_out
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_all_content_for_out($out_type, $params = [])
{
$is_ajax = main()->is_ajax();
// Move down inlined content
$all_content = $this->get_content($out_type);
Method _css_urls_rewrite_and_save
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _css_urls_rewrite_and_save($content, $content_url, $cache_path, $content_type = 'url', $orig_content = '')
{
$_this = $this;
$self_func = __FUNCTION__;
return preg_replace_callback('~url\([\'"\s]*(?P<url>[^\'"\)]+?)[\'"\s]*\)~ims', function ($m) use ($_this, $content_url, $cache_path, $content_type, $orig_content, $self_func) {
yf_cache
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_cache
{
/** @var int Cache entries time-to-live (in seconds) */
public $TTL = 3600;
/** @var string Cache driver to use */
yf_ck_file_browser
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_ck_file_browser
{
public $TOP_DIR = '/uploads/';
public $WRITABLE_DIR = '/uploads/ck_browser/';
public $ALLOWED_EXTS = [
Method show
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$this->refresh_modules_list($silent = true);
if (main()->is_post()) {
Method go
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function go()
{
if ( ! $this->LOGGING || MAIN_TYPE_USER) {
return false;
}
yf_category_editor
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_category_editor
{
/** @var int */
public $ITEMS_PER_PAGE = 100;
/** @var bool */