Showing 3,246 of 4,217 total issues
Method save_locale_var
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save_locale_var()
{
no_graphics(true);
if ( ! DEBUG_MODE && ! $_SESSION['locale_vars_edit']) {
return print 'Access denied';
Method _show_auto_table
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_auto_table($items = [], $params = [], $name = '')
{
if ( ! is_array($items)) {
$items = [];
}
Method _api_PerfectMoney
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _api_PerfectMoney($title)
{
$php = '';
$api = _class('payment_api__provider_perfectmoney');
$methods = [
Method _operation_table
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _operation_table($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// class
Method parse
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parse($name, $replace = [], $params = [])
{
$name = strtolower(trim($name));
// Support for the driver name in prefix, example: "twig:user/account", "smarty:user/account"
if (strpos($name, ':') !== false) {
Method _compile_foreach
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _compile_foreach($m)
{
$start = '<' . '?p' . 'hp ';
$end = ' ?' . '>';
Method _process_replaces
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _process_replaces($string, array &$replace, $name = '')
{
if ( ! strlen($string) || false === strpos($string, '{')) {
return $string;
}
Method _render_add_custom_fields
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _render_add_custom_fields(&$params, &$data, &$ids)
{
if ( ! $data || ! $ids || ! $params['custom_fields']) {
return false;
}
Method supplier_edit
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function supplier_edit()
{
$_GET['id'] = (int) ($_GET['id']);
if (empty($_GET['id'])) {
return _e('Empty ID!');
Method show
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
conf('_login_form_displayed', true);
if ( ! empty($_POST)) {
if (empty($_POST['login']) && empty($_POST['email'])) {
Method clear_patterns
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function clear_patterns()
{
$html = table('SELECT * FROM ' . db('shop_patterns'), [
'table_attr' => 'id="patterns_list"',
'filter' => $_SESSION[$_GET['object'] . '__patterns'],
Method go
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function go()
{
if ( ! $this->allow()) {
return false;
}
Method _get_grid
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_grid($data = [])
{
$rows = [];
foreach ((array) $data as $row_id => $row_items) {
$cols = '';
Method test_where
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_where()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method create_models
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create_models()
{
try {
$this->assertFalse(class_exists('bears'));
$this->assertFalse(class_exists('fish'));
Method dd_table
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function dd_table($replace = [], $field_types = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
if (DEBUG_MODE) {
$ts = microtime(true);
Method user_var_push
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function user_var_push($FORCE_ID = false)
{
$_GET['id'] = (int) ($FORCE_ID ? $FORCE_ID : $_GET['id']);
$A = db()->query_fetch('SELECT * FROM ' . db('locale_user_tr') . ' WHERE id=' . (int) ($_GET['id']));
if ( ! $A) {
Method edit_item
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit_item()
{
$item_info = db()->query_fetch('SELECT * FROM ' . db('menu_items') . ' WHERE id=' . (int) ($_GET['id']));
if (empty($item_info['id'])) {
return _e('No such menu item!');
Method _do_login_with_encrypted
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _do_login_with_encrypted()
{
header('X-Robots-Tag: noindex,nofollow,noarchive,nosnippet');
if ( ! $_GET['id'] || strlen($_GET['id']) < 16 || is_numeric($_GET['id'])) {
$this->_encrypted_error = 'GET_id is not like an encrypted string';
Method send
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(array $params = [], &$error_message = '')
{
require_php_lib('mandrill');
try {