Showing 3,246 of 4,217 total issues
Method payment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function payment($options = null)
{
$_ = &$options;
$is_transaction = isset( $_['is_transaction'] ) ? $_['is_transaction'] : true;
$_['type_name'] = __FUNCTION__;
Method view_item
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function view_item()
{
if ( ! empty($_GET['id'])) {
$file_name = urldecode($_GET['id']);
$file_path = $file_name;
Method _form_options
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form_options($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method clone_item
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function clone_item($params = [])
{
if (is_string($params)) {
$params = [
'table' => $params,
Method _payout_status_handler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _payout_status_handler($xml)
{
if ( ! $this->ENABLE) {
return null;
}
Method __api_response__success
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __api_response__success($operation_id, $response)
{
if ( ! $this->ENABLE) {
return null;
}
Method stars_select
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function stars_select($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($desc)) {
$extra += $desc;
$desc = '';
Method truncate_database
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function truncate_database($db_name, $extra = [], &$error = false)
{
if ( ! strlen($db_name)) {
$error = 'db_name is empty';
return false;
Method add_foreign_key
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add_foreign_key($table, $index_name = '', $fields = [], $ref_table = '', $ref_fields = [], $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method add_index
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add_index($table, $index_name = '', $fields = [], $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method _check_if_need_to_cache
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check_if_need_to_cache()
{
// Fast implementation of disabling output caching for the current page
if (conf('no_output_cache')) {
$this->NO_NEED_TO_CACHE = true;
Method _get_available_widgets_hooks
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_available_widgets_hooks()
{
if (isset($this->_avail_widgets)) {
return $this->_avail_widgets;
}
Method _unaccent_test2
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _unaccent_test2($string = '')
{
$transliteration = [
'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A',
'Å' => 'A', 'Æ' => 'A', 'Ā' => 'A', 'Ą' => 'A', 'Ă' => 'A',
Method _db_get
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _db_get($options)
{
$cache = &$this->cache;
$_ = $options;
$_name = $_['name'];
Method _perm_str2num
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _perm_str2num($perm = '')
{
$perm_len = strlen(trim($perm));
if ($perm_len > 10 && $perm_len < 9) {
return false;
Method find_ids
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function find_ids()
{
no_graphics(true);
if ( ! $_POST || ! main()->USER_ID || IS_ADMIN != 1/* || !strlen($_POST['param'])*/) {
echo '';
Method _get_nav_by_item_id
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_nav_by_item_id($item_id = 0, $cat_items = [], $STPL_NAME = '', $prepare_link_callback = null)
{
if (empty($STPL_NAME)) {
$STPL_NAME = __CLASS__ . '/nav_item';
}
Method attribute_add
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function attribute_add()
{
if (main()->is_post()) {
if (empty($_POST['title'])) {
_re('Title is required');
Method _order_step_select_payment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _order_step_select_payment($FORCE_DISPLAY_FORM = false)
{
// Show previous form if needed
if (common()->_error_exists() || empty($_POST)) {
return module('shop')->_order_step_delivery();
Method show_items
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_items()
{
$cat_info = db()->get('SELECT * FROM ' . db('categories') . ' WHERE name="' . db()->es($_GET['id']) . '" OR id=' . (int) ($_GET['id']));
if ( ! $cat_info) {
return _e('No such category');