Showing 3,246 of 4,217 total issues
Method rename_database
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rename_database($db_name, $new_name, $extra = [], &$error = false)
{
if ( ! strlen($db_name)) {
$error = 'db_name is empty';
return false;
Method del
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function del($name)
{
if ($name === false || $name === null) {
return null;
}
Method _send_http_status
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _send_http_status($code = null, $status = null)
{
$code = (int) $code;
$protocol = null;
$status = null;
Method connect
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function connect($params = [])
{
if ($this->_connection) {
return $this->_connection;
}
Method get_user_info
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_user_info()
{
$access_token = $this->_storage_get('access_token');
if ( ! $access_token) {
$access_token = $this->get_access_token();
Method _wrap_style
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _wrap_style($type = 'quote', $extra = '')
{
$used = [
'quote' => [
'title' => 'QUOTE',
Method _gd_crop
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _gd_crop($source_path, $dest_file_path, $crop_width, $crop_height, $pos_left, $pos_top)
{
if ( ! extension_loaded('gd')) {
return false;
}
Method _init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init()
{
// Set found paths
if (empty($this->FOUND_NETPBM_PATH) && defined('NETPBM_PATH') && NETPBM_PATH != '') {
$this->FOUND_NETPBM_PATH = NETPBM_PATH;
Method _productparams_container
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _productparams_container($product_id, $tpl_name = 'productparams_container')
{
$current_params = [];
$current_param_id = 0;
if ((int) $product_id != 0) {
Method _prepare_express_pdf
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _prepare_express_pdf($items = false)
{
if (empty($items)) {
return false;
}
Method _show_filter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_filter()
{
$filters = [
'show' => function ($filter_name, $replace) {
$fields = ['id', 'add_date', 'action', 'item_id', 'ip', 'user_id'];
Method checkout_order_revision
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkout_order_revision()
{
$_GET['id'] = (int) ($_GET['id']);
$revision_data = db()->get('SELECT * FROM ' . db('shop_order_revisions') . ' WHERE id=' . $_GET['id']);
if (empty($revision_data)) {
Method _site_map_items
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _site_map_items($sm_obj)
{
if ( ! is_object($sm_obj)) {
return false;
}
Method _recursive_sort_items
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _recursive_sort_items($items = [], $skip_item_id = 0, $parent_id = 0)
{
$children = [];
$cur_group = MAIN_TYPE_USER ? $_SESSION['user_group'] : $_SESSION['admin_group'];
foreach ((array) $items as $id => $info) {
Method _init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init()
{
if ($this->USE_LOCKING) {
$this->LOCK_FILE_NAME = STORAGE_PATH . $this->LOCK_FILE_NAME;
}
Method chown
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function chown($server_info = [], $path = '', $new_owner = '', $new_group = '', $recursively = false)
{
if (is_array($path)) {
$_bulk_cmd = [];
foreach ((array) $path as $_path => $_new_owner) {
Method _options_container
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _options_container($info = [], $saved = [], $ds = [])
{
$for_section = $ds['type'] == 'user' ? 'user' : 'admin';
$a = [];
Method _options_container
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _options_container($info = [], $saved = [], $ds = [])
{
$for_section = $ds['type'] == 'user' ? 'user' : 'admin';
$a = [];
Method add
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add()
{
$a['locale'] = substr($_GET['page'], 0, 2) ?: 'ru';
$a['parent_id'] = (int) $_GET['id'];
$parent = $a['parent_id'] ? (array) from(self::table)->whereid($a['parent_id'])->get() : [];
Method view
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function view()
{
$ds = $this->_get_dashboard_data($_GET['id']);
if ( ! $ds['id']) {