Showing 3,246 of 4,217 total issues
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!');
Method _show
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show($return_array = false)
{
if ($return_array) {
$this->_nav_item_as_array = true;
}
Method edit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$a = $this->_get_info();
if ( ! $a) {
return _404();
Method _parse_column_type
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _parse_column_type($str, &$error = false)
{
// TODO: use db ddl parser if available for the given db family (mysql currently supported)
$str = trim($str);
$type = $length = $decimals = $values = null;
Method _get_comments
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_comments($NUM_NEWEST_COMMENTS, $user_id = '')
{
foreach ((array) module('comments')->COMMENT_LINKS as $key => $value) {
$where .= 'object_name="' . $key . '"';
if ($value !== end(module('comments')->COMMENT_LINKS)) {
Method send
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send($phone, $text, $params = [])
{
if ( ! $this->_is_enabled()) {
return false;
}
Method _lst
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _lst($id, $with_root = false)
{
$dir = $this->_path($id);
$res = [];
foreach (glob(rtrim($dir, '/') . '/*') as $f) {
Method write_file
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function write_file($server_info = [], $local_file = '', $remote_file = '')
{
$local_file = trim($local_file);
$remote_file = _class('ssh')->_prepare_path($remote_file);
if ( ! _class('ssh')->_INIT_OK || ! $server_info || ! strlen($local_file) || ! strlen($remote_file)) {