Showing 3,246 of 4,217 total issues
Consider simplifying this complex logical expression. Open
Open
if (@$_['user_mode'] && (
($type['name'] == 'payment' && $_['is_balance_limit_lower'] && ($balance - $amount < $balance_limit_lower))
|| ($type['name'] == 'transfer' && $direction === 'out' && $_['is_balance_limit_lower'] && ($balance - $amount < $balance_limit_lower))
)) {
$result = [
Consider simplifying this complex logical expression. Open
Open
if (is_array($params) && ! empty($params)) {
isset($params['host']) && $this->host = $params['host'];
isset($params['port']) && $this->port = $params['port'];
isset($params['login']) && $this->login = $params['login'];
isset($params['password']) && $this->password = $params['password'];
Method simple_table
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function simple_table($replace = [], $extra = [])
{
if ( ! $replace) {
return false;
}
Method connect
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function connect($params = [])
{
$this->_connected_ok = false;
$ext_old_allowed = $this->FORCE_EXT ? in_array($this->FORCE_EXT, ['old', 'memcache']) : true;
Method _show_files_for_lang
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_files_for_lang($lang, $lang_files, $var_files)
{
$yf_path_len = strlen(YF_PATH);
$app_path_len = strlen(APP_PATH);
Method filters_get_avail
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function filters_get_avail()
{
if (isset($this->_avail_filters)) {
return $this->_avail_filters;
}
Method _php_vars
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _php_vars($file, $params = [])
{
$code = file_get_contents($file);
$GLOBALS['_locale_editor_collect_vars'] = [];
Method _filter_form_show
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _filter_form_show($filter, $replace)
{
$order_fields = [
'provider_id' => 'provider_id',
'currency_rate_id' => 'id',
Method transfer
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function transfer($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method _amount_payout
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _amount_payout($amount, $currency_id, $method, $is_request = true)
{
if ( ! $this->ENABLE) {
return null;
}
Method _sign_interkassa
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _sign_interkassa()
{
$form = '';
$api = _class('payment_api__provider_interkassa');
// test signature
Method account_create
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function account_create($options = null)
{
// options
$_ = &$options;
$data = [];
Method _sign_PerfectMoney
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _sign_PerfectMoney()
{
$form = '';
$api = _class('payment_api__provider_perfectmoney');
// test signature
Method exception_handler
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function exception_handler($exception)
{
// these are our templates
$traceline = '#%s %s(%s): %s(%s)';
$msg = "PHP Fatal error: Uncaught exception '%s' with message '%s' in %s:%s\nStack trace:\n%s\n thrown in %s on line %s";
Method _get_denied_tasks_names
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_denied_tasks_names()
{
$cache = 'cache_' . __FUNCTION__;
if (isset($this->$cache)) {
return $this->$cache;
Method _form
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _prepare_to_save
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _prepare_to_save($a)
{
$to_save = [];
foreach ((array) $a as $k => $v) {
if (is_string($v) && ! strlen($v)) {
Method city_box
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function city_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method test_send
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_send()
{
$a = $this->_get_info();
if (empty($a)) {
return _404();
Method set
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set($name, $data, $ttl = 0)
{
if ($name === false || $name === null) {
return null;
}