Showing 3,246 of 4,217 total issues
Method from
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function from()
{
$sql = '';
$tables = func_get_args();
if ( ! count((array) $tables)) {
Method whereid
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function whereid()
{
$id = func_get_args();
$pk = '';
if (count((array) $id) > 1) {
Method create_trigger
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create_trigger($name, $table, $trigger_time, $trigger_event, $trigger_body, $extra = [], &$error = false)
{
if (strpos($name, '.') !== false) {
list($db_name, $name) = explode('.', trim($name));
}
Method multi_set
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function multi_set($data = [], $ttl = 0)
{
$do_real_work = true;
if ( ! $this->_driver_ok || $this->NO_CACHE) {
$do_real_work = false;
Method _drag_tpl_items
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _drag_tpl_items(&$items)
{
$body = [];
$form = _class('form2');
Method category_revision_checkout
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function category_revision_checkout()
{
$type = 'category';
$object = 'category_editor';
$action = 'edit_item';
Method _check_words_length
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check_words_length($text, $length = 0, $do_encode_email = false)
{
if (empty($length)) {
$length = 60;
if (SITE_MAX_WORD_LENGTH != 'SITE_MAX_WORD_LENGTH' && SITE_MAX_WORD_LENGTH != '') {
Method _preload_data
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _preload_data()
{
if ($this->_preload_complete) {
return true;
}
Method save
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save($output_file = '')
{
if (empty($this->tmp_img)) {
if ( ! $this->SILENT_MODE) {
trigger_error('No temporary image for resizing!', E_USER_WARNING);
Method _get_grid
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_grid($data = [])
{
foreach ((array) $data as $row_id => $row_items) {
$cols = '';
if (isset($row_items['cols']) && is_array($row_items['cols'])) {
Method show
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
css('
#faq-search { padding-top: 20px; }
#faq-items { padding-top: 20px; padding-bottom: 20px; }
Method test_order8
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_order8()
{
$jquery_url = _class('assets')->get_asset('jquery', 'js');
$url = $jquery_url;
$url1 = $url . '?v=1';
Method test_apply
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_apply()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method _mkdir_m
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _mkdir_m($dir_name, $dir_mode = 0755, $create_index_htmls = 0, $start_folder = '')
{
if ( ! $dir_name || ! strlen($dir_name)) {
return 0;
}
Consider simplifying this complex logical expression. Open
Open
if (@$_is_response_raw) {
$result = $body;
} else {
switch (true) {
case @$_is_response_json || strpos($content_type, 'application/json') === 0:
Method check_box
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function check_box($name = '', $value = '', $selected = '', $add_str = '', $extra = [])
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = $extra['name'];
Method time_box2
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function time_box2($name, $selected = '', $add_str = '', $show_text = 1, $translate = 1)
{
if (is_array($selected)) {
$extra = (array) $extra + $name;
$name = $extra['name'];
Method time_box
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function time_box($selected = '', $name_postfix = '', $add_str = '', $show_text = 1, $translate = 1)
{
if (is_array($selected)) {
$extra = (array) $extra + $name;
$selected = $extra['selected'];
Method _on_validate_ok
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _on_validate_ok($params = [], $form)
{
$vars_db = $this->_parent->_get_all_vars_from_db();
$found_vars = $this->_parse_sources($params);
Method _currency_rates_load
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _currency_rates_load($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var