Showing 3,246 of 4,217 total issues
Method _get_available_widgets_hooks
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_available_widgets_hooks($for_section = 'admin')
{
if ( ! in_array($for_section, ['user', 'admin'])) {
$for_section = 'admin';
}
Method test_validate_custom_error
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_validate_custom_error()
{
$_SERVER['REQUEST_METHOD'] = 'POST';
$params = ['do_not_remove_errors' => 1];
Method _user_message
has 45 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 button_box
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function button_box($name, $values = [], $selected = '', $extra = [])
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = $extra['name'];
Method _status
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _status($options = null)
{
// check operation
$operation = $this->_operation($options);
// import options
Method _show_filter
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_filter()
{
$object = &$this->object;
$action = &$this->action;
$filter_name = &$this->filter_name;
Method interkassa_detect_card
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function interkassa_detect_card($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if (empty($_card)) {
Method _object_update
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _object_update($name, $data, $options = null)
{
if (empty($name)) {
return null;
}
Method __api_response__check
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __api_response__check($operation_id, $response)
{
if ( ! $this->ENABLE) {
return null;
}
Method edit_rule
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit_rule()
{
$rule_info = db()->get('SELECT * FROM ' . db('block_rules') . ' WHERE id=' . (int) ($_GET['id']));
if (empty($rule_info['id'])) {
return _e('No such rule!');
Method _get_cached_paths
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_cached_paths()
{
$cache_name = __FUNCTION__ . '_' . MAIN_TYPE;
if (isset($this->$cache_name)) {
return $this->$cache_name;
Method _ckeditor_html
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _ckeditor_html($extra = [], $replace = [], $form)
{
if ( ! is_array($extra)) {
return '';
}
Method _sql_to_array
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _sql_to_array($return_raw = false, $sql_data = null)
{
if ( ! isset($sql_data)) {
$sql_data = &$this->_sql;
}
Method select
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function select()
{
$sql = '';
$fields = func_get_args();
if ( ! count((array) $fields) || $fields === []) {
Method _show_for
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_for($obj, $id = '')
{
$id = $id ?: $_GET['id'];
$action = $_GET['action'];
if (preg_match('~^[a-z0-9_]+$~ims', $id)) {
Method _hook_side_column
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _hook_side_column()
{
$custom_class_name = 'sample_' . $_GET['action'];
$custom_obj = _class_safe($custom_class_name);
$hook_name = __FUNCTION__;
Method _get_browser_info
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_browser_info()
{
if ( ! empty($_SERVER['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} elseif ( ! isset($HTTP_USER_AGENT)) {
Method view
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function view($params = [])
{
if ( ! is_array($params)) {
$params = [];
}
Method edit
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
if ( ! $this->ENABLED_IMG_EDIT) {
return false;
}
Method _skip_by_pattern
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _skip_by_pattern($path = '', $_type = 'f', $pattern_include = '', $pattern_exclude = '')
{
if ( ! $path) {
return false;
}