Showing 3,246 of 4,217 total issues
Method test_table_info
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_table_info()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_increment_decrement
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_increment_decrement()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_dump
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_dump()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method media_objects
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function media_objects($data = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
if ($data) {
$data = $this->_recursive_sort_items($data);
Method carousel
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function carousel($data = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
$items = [];
$headers = [];
Method _init
has 36 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 transaction
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function transaction()
{
$payment_api = _class('payment_api');
// var
$result = [];
Method _confirmation_update_expired
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _confirmation_update_expired()
{
// var
$payment_api = _class('payment_api');
// update status only in_progress
Method _form
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method mass_payout
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mass_payout($options = null)
{
$operation_id = $this->_get_operation_id($options);
is_numeric($operation_id) && $operation_id = [$operation_id => 1];
if ( ! is_array($operation_id)) {
Method _form
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _form
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method api_request
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function api_request($options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method google_maps
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function google_maps($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($desc)) {
$extra += $desc;
$desc = '';
Method send
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(array $params = [], &$error_message = '')
{
require_php_lib('sendgrid');
$error_message = null;
Method update
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(array $data, $params = [])
{
$table = $params['table'] ?: $this->get_table();
if ( ! $table) {
return false;
Method _sql_part_to_array
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _sql_part_to_array($part, $data = null, $config = null, $return_raw = false)
{
if ( ! $part) {
return false;
}
Method list_indexes
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function list_indexes($table, $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method footer_submit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function footer_submit($name = '', $extra = [])
{
if (is_array($name)) {
$extra = $name;
$name = $extra['name'];
Method create
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create($cloud_data = [], $params = [])
{
if (empty($cloud_data)) {
return '';
}