Showing 3,246 of 4,217 total issues
Method form_row
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function form_row($content, $extra = [], $replace = [], $form)
{
$row_start =
'<div>' . PHP_EOL
. ($extra['desc'] && ! $extra['no_label'] ? '<label for="' . $extra['id'] . '">' . t($extra['desc']) . '</label>' . PHP_EOL : '')
Method list_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function list_box($name, $values = [], $selected = '', $extra = [])
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = $extra['name'];
Method _balance_recharge
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _balance_recharge($request, $options)
{
$api = _class('api');
$payment_api = _class('payment_api');
$balance = $payment_api->deposition_user($request);
Method _cancel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _cancel($request, $options)
{
$api = _class('api');
$payment_api = _class('payment_api');
$object = $payment_api->cancel_user($request);
Method update
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if ( ! @$_provider || ! @$_currency_rate) {
Method _init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init()
{
// class
$this->payment_api = _class('payment_api');
$this->manage_payment_lib = module('manage_payment_lib');
Method api_request__checkout_b
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function api_request__checkout_b($options = null)
{
// get business account_id
list($status, $account) = $this->api_request('account');
if (empty($status)
Method _form_options
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form_options($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method find_active_modules
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function find_active_modules($section = 'all')
{
if ( ! in_array($section, ['all', 'user', 'admin'])) {
$section = 'all';
}
Method _get_menu_items
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_menu_items($cur_menu_info)
{
$menu_id = $cur_menu_info['id'];
$menu_name = $cur_menu_info['name'];
if ( ! isset($this->_menu_items)) {
Method region_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function region_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method container
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function container($text, $desc = '', $extra = [], $replace = [])
{
if (is_array($desc)) {
$extra = (array) $extra + $desc;
$desc = '';
Method language_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function language_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method _login_with_prev_info
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _login_with_prev_info()
{
$prev_info = $_SESSION['admin_prev_info'];
if ( ! $prev_info || ! $prev_info[$this->VAR_ADMIN_ID] || ! $prev_info[$this->VAR_ADMIN_GROUP_ID]) {
if ( ! empty($this->URL_WRONG_LOGIN)) {
Method show_docs
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_docs(array $info)
{
$tests = '';
if ($info['is_func']) {
$tests = _class('core_api')->get_function_tests($info['name']);
Method currency_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function currency_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method edit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$replace = _class('admin_methods')->edit($this->_table);
$data = [];
if ($replace['linked_data']) {
Method alter_column
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function alter_column($table, $col_name, $data, $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method _show_filter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_filter()
{
if ( ! in_array($_GET['action'], ['show'])) {
return false;
}
Method list_events
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function list_events($db_name = '', $extra = [], &$error = false)
{
if ( ! $db_name) {
$db_name = $this->db->DB_NAME;
}