Showing 4,217 of 4,217 total issues
Method get_asset
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_asset($name, $asset_type, $version = '')
{
if ( ! $name) {
return null;
}
Method _api_response
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_response($options)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
/*
Method _form
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method check_all_interkassa
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function check_all_interkassa($options = null)
{
// command line interface
$is_cli = (php_sapi_name() == 'cli');
$is_cli && $this->_check_all_interkassa_cli();
Method _api_provider
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_provider($request, $options)
{
$api = _class('api');
$payment_api = _class('payment_api');
$provider_name = $_GET['name'];
Method copy_item2
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function copy_item2()
{
if ($_POST['items_to_copy']) {
$items = unserialize(urldecode($_POST['items_to_copy']));
foreach ((array) $items as $k => $v) {
Method show_items
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_items()
{
$menu_info = db()->query_fetch('SELECT * FROM ' . db('menus') . ' WHERE id=' . (int) ($_GET['id']) . ' OR name="' . db()->es($_GET['id']) . '"');
if (empty($menu_info)) {
return _e('No such menu!');
Method _cleanup_menu_items
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _cleanup_menu_items($menu_items = [])
{
$center_block_id = _class('graphics')->_get_center_block_id();
$out = [];
Method _load_tables_sql_php_from_files
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _load_tables_sql_php_from_files($params = [])
{
$existing_files_sql_php = [];
$existing_sql_php = [];
// Preload db installer PHP array of CREATE TABLE DDL statements
Method edit
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$id = (int) ($_GET['id']);
if ( ! $id) {
return _e('Wrong id');
Method create_table
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create_table($table_name, $db)
{
$table_found = false;
if (empty($table_name)) {
return false;
Method _get_modules_from_files
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_modules_from_files($include_framework = true, $with_sub_modules = false)
{
$modules = [];
$yf_prefix_len = strlen(YF_PREFIX);
Method _get_update_batch_sql
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_update_batch_sql($table, $values, $index)
{
$ids = [];
$final = [];
$where = [];
Method mkdir_m
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mkdir_m($server_info = [], $dir_name = '', $dir_mode = 755, $create_index_htmls/*!not implemented here!*/ = 0, $start_folder = '/')
{
if ( ! _class('ssh')->_INIT_OK || ! $server_info) {
return false;
}
Method _get_items_array
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_items_array($cat_name = '', $recursive_sort = true, $all = false)
{
if (empty($cat_name)) {
$cat_name = $this->_default_cats_block;
}
Method jquery_sparklines
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function jquery_sparklines($data, $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
if ( ! is_array($data) || ! $data) {
return false;
Method test_insert_if_ok
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_insert_if_ok()
{
$this->assertFalse((bool) self::utils()->table_exists('static_pages'));
$this->assertEmpty(self::db()->from('static_pages')->get());
$this->assertTrue((bool) self::utils()->table_exists('static_pages'));
Method test_yf_db_installer_alter_table
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_yf_db_installer_alter_table()
{
$bak['ERROR_AUTO_REPAIR'] = self::db()->ERROR_AUTO_REPAIR;
self::db()->ERROR_AUTO_REPAIR = true;
Method test_btn_link
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_btn_link()
{
$a = [
['id' => '1', 'user_id' => '122', 'product_id' => '133'],
['id' => '2', 'user_id' => '222', 'product_id' => '233'],
Method test_where_simplified_syntax
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_where_simplified_syntax()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}