Showing 3,246 of 4,217 total issues
Method show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
if ( ! main()->TRACK_ONLINE_STATUS) {
return t('online users tracking is disabled');
}
Method _show_key_val_table
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_key_val_table($a, $params = [], $name = '')
{
if ( ! $a) {
return false;
}
Method _load_data_handlers
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _load_data_handlers()
{
$this->PROFILING && $this->_timing[] = [microtime(true), __CLASS__, __FUNCTION__, $this->trace_string(), func_get_args()];
if ($this->_data_handlers_loaded) {
return false;
Method getset
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getset($name, callable $func, $ttl = 0, array $params = [])
{
if ( ! is_string($name) || ! $name) {
return null;
}
Method _get_info
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_info($id = null, $lang = null)
{
$id = isset($id) ? $id : $_GET['id'];
$lang = isset($lang) ? $lang : $_GET['page'];
$a = db()->from(self::table)
Method show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$id = preg_replace('~[^a-z0-9_-]+~ims', '', $_GET['id']);
if (strlen($id)) {
if (substr($id, 0, strlen('table2_')) === 'table2_') {
Method _helper_add_config
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _helper_add_config($libs = [], $types = ['js', 'css'])
{
_class('assets')->clean_all();
foreach ($libs as $name => $config) {
foreach ($types as $type) {
Method test_scopes
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_scopes()
{
$model_base = _class('model');
eval(
<<<'ND'
Method test_select_check_wrong_input
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_select_check_wrong_input()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update()
{
$url = &$this->url;
// command line interface
$is_cli = (php_sapi_name() == 'cli');
Method _sign_privat24
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _sign_privat24()
{
$form = '';
$api = _class('payment_api__provider_privat24');
// test signature
Method _sign_YandexMoney
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _sign_YandexMoney()
{
$form = '';
$api = _class('payment_api__provider_yandexmoney');
/*
Method mail_copy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mail_copy($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if (empty($_tpl) || empty($_data)) {
Method ip_check
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function ip_check()
{
$api = _class('payment_api__provider_remote');
$api->ENABLE = true;
// $api = _class( 'api' );
Method _get_wallet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_wallet($options)
{
//$_SESSION['wallet_options'] = $options;
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if (empty($_operation_id)) {
Method email_item
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function email_item()
{
$dir_name = urldecode($_POST['dir_name']);
$_old_dir_name = str_replace('\\', '/', getcwd());
Method signature
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function signature($options, $is_request = true)
{
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
$data = [];
array_push(
Method _api_response
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_response($options)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
$this->payment_api->dump(['name' => 'Payeer', 'operation_id' => @(int) $_POST['m_orderid'], 'ip' => common()->get_ip()]);
Method get_github_link
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_github_link($input, $section = 'all')
{
$is_module = false;
$is_func = false;
if (is_array($input)) {
Method _field_type
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _field_type($type = '')
{
$type = trim(strtolower($type));
if (strpos($type, 'int') !== false) {
$type = 'int';