Showing 3,246 of 4,217 total issues
File yf_db_driver_mysqli.class.php
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
load('db_driver', '', 'classes/db/');
class yf_db_driver_mysqli extends yf_db_driver
{
yf_blocks
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_blocks
{
/***/
private $_preload_complete = false;
class_assets_test
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class class_assets_test extends PHPUnit\Framework\TestCase
// class class_assets_test extends yf\tests\wrapper
{
public static function setUpBeforeClass() : void
{
yf_core_install
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_core_install
{
/**
* @param mixed $body
*/
Method tabs
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function tabs($tabs = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
$extra_by_id = [];
Method _api_YandexMoney
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _api_YandexMoney($title)
{
$php = '';
$api = _class('payment_api__provider_yandexmoney');
$methods = [
Method display_what
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function display_what()
{
$hooks_data = _class('admin_methods')->call_hooks('settings', $r);
$avail_hook_modules = [];
foreach ((array) $hooks_data as $k => $v) {
Method fetch_data
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_data($params = [])
{
// Templates names
$STPL_MAIN = ! empty($params['stpl_main']) ? $params['stpl_main'] : 'system/common/get_rss_page_main';
$STPL_ITEM = ! empty($params['stpl_item']) ? $params['stpl_item'] : 'system/common/get_rss_page_item';
Method data_get_latest_languages
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function data_get_latest_languages()
{
$url = 'https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes';
$f2 = __DIR__ . '/' . basename($url) . '.table.html';
if (!file_exists($f2)) {
Method show
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$docs = _class('docs');
$dir = $docs->demo_dir;
$dir_len = strlen($dir);
Method show
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$object = &$this->object;
$action = &$this->action;
$filter_name = &$this->filter_name;
Method _filter_form_show
has 65 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 _filter_form_show
has 65 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 datetime_select
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function datetime_select($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($desc)) {
$extra += $desc;
$desc = '';
Method _parse
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _parse($host, $url, $query, $url_str, $class_rewrite)
{
$s = '';
if (false !== strpos($url[0], '%')) {
$url[0] = urldecode($url[0]);
Method get_user_info
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_user_info()
{
if (DEBUG_MODE && $_GET['oauth_clean']) {
$this->_storage_clean();
}
Method btn_active
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function btn_active($name = '', $link = '', $extra = [])
{
if (is_array($name)) {
$extra = $name;
$name = '';
Method show_rss_page
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_rss_page($data = [], $params = [])
{
require_php_lib('yf_feedcreator');
$rss = new UniversalFeedCreator();
if ( ! isset($params['use_cached']) || ! empty($params['use_cached'])) {
Method _check
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check($target_user_id = 0, $source_user_id = 0)
{
if (empty($source_user_id) && ! empty(main()->USER_ID)) {
$source_user_id = main()->USER_ID;
}
Method join_url
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function join_url($parts, $encode = null)
{
if ($encode === null) {
$encode = $this->AUTO_ENCODE_DECODE;
}