Showing 3,246 of 4,217 total issues
Method data_get_latest_lang_by_country
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function data_get_latest_lang_by_country()
{
global $url, $result_file, $suffix;
$f2 = __DIR__ . '/' . basename($url) . '.table' . $suffix . '.html';
Method test_group_by
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_group_by()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_select_star
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_select_star()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_cleanup_32
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_cleanup_32()
{
$closure = function ($in) {
return module('register')->_login_not_exists($in);
};
Method test_helper_foreign_key
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_helper_foreign_key()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_having
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_having()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method _fix_sql_php
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _fix_sql_php($sql_php)
{
$innodb_has_fulltext = self::_innodb_has_fulltext();
if ( ! $innodb_has_fulltext) {
// Remove fulltext indexes from db structure before creating table
Method test_count
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_count()
{
$this->assertFalse(
self::qb()->count(null, $sql = true)
);
Method test_if_funcs_multiple
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_if_funcs_multiple()
{
$data = ['name1' => '', 'name2' => 'something', 'name3' => '', 'name4' => 'other', 'name5' => '', 'name6' => 'gggggg'];
$this->assertEquals('good', self::_tpl('{if_not_ok(name1,name3)}good{/if}', $data));
Method test_rewrite_short_form
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_rewrite_short_form()
{
$this->assertEquals('http://' . self::$host . '/test/my/123/456', url('/test/my/123/456', ['host' => self::$host]));
$this->assertEquals('http://' . self::$host . '/test', url('/test', ['host' => self::$host]));
Method test_5
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_5()
{
module_conf('test', [
'key1' => 'val1',
'key2::sub1' => 'val21',
Method multi_select_box
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function multi_select_box($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
Method multi_select
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function multi_select($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
Method multi_select
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function multi_select($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
Method multi_select_box
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function multi_select_box($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0, $disabled = false)
Method call_class_method
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function call_class_method($class_name = '', $custom_path = '', $method_name = '', $method_params = '', $tpl_name = '', $silent = false, $use_cache = false, $cache_ttl = -1, $cache_key_override = '')
Function from_mysql
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Date.prototype.from_mysql = function( str ) {
if( typeof str === 'string' ) {
var is_422 = false;
var is_224 = false;
if( /^\d{4}[\.\-]\d{1,2}[\.\-]\d{1,2}/.test( str ) ) {
Method status
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function status()
{
// check operation
$operation = $this->_operation();
// import options
Method _form_options
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form_options($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method is_user_mail
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function is_user_mail($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// var