Showing 3,246 of 4,217 total issues
Method edit
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$a = $this->_get_info();
if ( ! $a) {
return _404();
Method test_decrement
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_decrement()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_increment
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_increment()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_complex
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_complex()
{
$this->assertEquals('', common()->_get_error_messages());
$old = $_SERVER['REQUEST_METHOD'];
yf_user_profile
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class yf_user_profile extends yf_module
{
/** @var int */
public $MAX_SHOW_ADS = 10;
/** @var int */
Method _process_sub_patterns
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _process_sub_patterns($text = '', $args = [])
{
if (false === strpos($text, '{') || ! is_array($args)) {
return $text;
}
Method phone_box
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function phone_box($name = 'phone', $values = [], $selected = '', $extra = [])
{
if (is_array($name)) {
$extra = (array) $extra + $name;
} else {
Method select2_box
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function select2_box($name, $values = [], $selected = '', $extra = [])
{
$css = [];
$style = [];
if (is_array($name)) {
Method show
has 62 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 rates
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rates($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var
Method _build
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _build($a, $class_rewrite)
{
$u = false;
if ( ! empty($class_rewrite->BUILD_RULES)) {
foreach ((array) $class_rewrite->BUILD_RULES as $func) {
File yf_make_thumb.class.php
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Generating thumbs from images handler.
*
Method _process_text
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _process_text($body = '', $no_smilies = false, $smilies_as_image = false)
{
if (empty($body)) {
return '';
}
Method _view_widget_items
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _view_widget_items($name_ids = [], $items_configs = [])
{
$list_of_hooks = $this->_get_available_widgets_hooks();
$_orig_object = $_GET['object'];
Method test_yf_db_installer_sharding
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_yf_db_installer_sharding()
{
$bak['ERROR_AUTO_REPAIR'] = self::db()->ERROR_AUTO_REPAIR;
self::db()->ERROR_AUTO_REPAIR = true;
Method _city_select
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _city_select($params = [])
{
$STPL_NAME = 'register/city_select';
if ( ! empty($params['stpl_name'])) {
$STPL_NAME = $params['stpl_name'];
Method _add_bundle
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _add_bundle($_content, $_params = [])
{
if ( ! $_content) {
return false;
}
Method validate
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validate($options)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// check payment method, type
Method _form_options
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form_options($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method _api_user_select_box
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_user_select_box($options = null)
{
// etc
$api = _class('api');
$api->JSON_VULNERABILITY_PROTECTION = false;