Showing 3,246 of 4,217 total issues
Method delete
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete($where = null, $as_sql = false)
{
if (isset($where)) {
$this->where($where);
}
Method compare_column
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function compare_column($c1, $c2)
{
$changes = [];
$skip = [
'charset',
Method create_event
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create_event($name, $event_shedule, $event_body, $extra = [], &$error = false)
{
if (strpos($name, '.') !== false) {
list($db_name, $name) = explode('.', trim($name));
}
Method send
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(array $params = [], &$error_message = '')
{
require_php_lib('aws_sdk');
$error_message = null;
Method table_get_charset
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function table_get_charset($table, $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method get_user_info
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_user_info()
{
if (DEBUG_MODE && $_GET['oauth_clean']) {
$this->_storage_clean();
}
Method get_access_token
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_access_token()
{
$access_token = $this->_storage_get('access_token');
if ($access_token) {
return $access_token;
Method get_user_info
has 31 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 crop
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function crop($source_file_path, $dest_file_path, $LIMIT_X, $LIMIT_Y, $pos_left, $pos_top)
{
// Check source file
if ( ! file_exists($source_file_path) || ! filesize($source_file_path) || ! is_readable($source_file_path)) {
trigger_error('CROP_IMG: Source file is empty', E_USER_WARNING);
Method get_data
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_data($url = '', $params = [])
{
if ( ! $url) {
return false;
}
Method _get_products_attributes
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_products_attributes($products_ids = [])
{
if (is_numeric($products_ids)) {
$return_single_id = $products_ids;
$products_ids = [$products_ids];
Method _format_db_explain_result
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _format_db_explain_result($explain_result = [])
{
if (empty($explain_result)) {
return false;
}
Method _get_modules_from_files
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_modules_from_files()
{
$regex = '~function(\s)+(' . implode('|', $this->HOOK_NAMES) . ')\s*\(~ims';
$yf_prefix_len = strlen(YF_PREFIX);
Method view
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function view()
{
$A = $this->_get_notification($_GET['id']);
$info = form($A)
->info('title')
Method _products_get_attributes
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _products_get_attributes($products_ids = [])
{
if (is_numeric($products_ids)) {
$return_single_id = $products_ids;
$products_ids = [$products_ids];
Method _view_widget_items
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _view_widget_items($widgets = [])
{
$_orig_object = $_GET['object'];
$_orig_action = $_GET['action'];
$is_cloneable_item = true;
Method _init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init()
{
if ( ! empty($_SESSION['edit_escort_id'])) {
// Do cache
if ( ! isset($GLOBALS['_agency_info'])) {
Method move_dir
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function move_dir($path1, $path2, $pattern_include = '', $pattern_exclude = '')
{
if ( ! $path1 || ! file_exists($path1)) {
return false;
}
Method _debug_assets
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_assets(&$params = [])
{
$body = [];
$items = $this->_get_debug_data('assets_out');
Method get_yf_console_commands
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_yf_console_commands()
{
$cmds = [];
$subfolder = 'commands/';
$prefix_project = 'console_';