Showing 4,217 of 4,217 total issues
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;
}
Method asset
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function asset($type = '')
{
session_write_close();
no_graphics(true);
$name = strtolower(preg_replace('~[^a-z0-9_-]+~ims', '', trim($_GET['id'])));
Method edit_item
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit_item()
{
$item_info = db()->query_fetch('SELECT * FROM ' . db('category_items') . ' WHERE id=' . (int) ($_GET['id']));
if ( ! $item_info['id']) {
return _e('No such item!');
Method _after_init_hook
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _after_init_hook()
{
$this->PROFILING && $this->_timing[] = [microtime(true), __CLASS__, __FUNCTION__, $this->trace_string(), func_get_args()];
$this->events->fire('main.after_init_begin');
$this->_check_site_maintenance();
Method get_paths
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_paths()
{
$paths = [
'called_path' => rtrim(getcwd(), '/') . '/',
'yf_path' => dirname(dirname(__DIR__)) . '/',
Method test_from
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_from()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method set_cache
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set_cache($out_type, $md5, $data = [])
{
if ( ! $this->USE_CACHE) {
return false;
}
Method request_interkassa
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function request_interkassa()
{
// start
db()->begin();
// check operation
Method load__cbr_xml
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load__cbr_xml($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var
Method load__p24_json
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load__p24_json($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var
Method status_interkassa
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function status_interkassa($options = null)
{
// import operation
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// provider interkassa
Method account
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function account($options = null)
{
// by account_id
$result = $this->get_account__by_id($options);
if ( ! empty($result)) {
Method load__cashex_json
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load__cashex_json($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var
Method add_item
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add_item()
{
$menu_info = db()->get('SELECT * FROM ' . db('menus') . ' WHERE id=' . (int) ($_GET['id']));
if (empty($menu_info['id'])) {
return _e('No such menu!');