Showing 3,246 of 4,217 total issues
Method _show_header
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_header()
{
if (conf('no_page_header')) {
return false;
}
Method _debug_rewrite
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_rewrite(&$params = [])
{
if ( ! $this->SHOW_REWRITE_INFO) {
return '';
}
Method _debug_memcached
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_memcached(&$params = [])
{
if ( ! $this->SHOW_MEMCACHED_INFO) {
return '';
}
Method _debug_sphinxsearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_sphinxsearch(&$params = [])
{
if ( ! $this->SHOW_SPHINX) {
return '';
}
Method _debug_dashboard
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _debug_dashboard()
{
if ( ! $this->SHOW_DB_STATS) {
return '';
}
Method _is_online
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _is_online($user_ids, $user_type = null)
{
if (is_array($user_ids)) {
} else {
$user_ids = (int) $user_ids;
Method _show_avatar
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show_avatar($user_id = 0, $user_name = '', $as_link = 0, $is_middle = 0, $only_img_src = 0, $force_link = '')
{
if (is_array($user_name)) {
$user_info = $user_name;
$user_name = _display_name($user_info);
Method _get_console_commands
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_console_commands()
{
$cmds = [];
$subfolder = 'commands/';
$prefix_project = 'console_';
Method test_query_stats_override
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_query_stats_override()
{
$bak['ERROR_AUTO_REPAIR'] = self::db()->ERROR_AUTO_REPAIR;
self::db()->ERROR_AUTO_REPAIR = true;
Method test_foreach
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_foreach()
{
$data2 = [
5 => ['name' => 'name1', 'age' => 21],
6 => ['name' => 'name2', 'age' => 22],
Method test_foreach
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_foreach()
{
$data2 = [
5 => ['name' => 'name1', 'age' => 21],
6 => ['name' => 'name2', 'age' => 22],
Method test_table_get_columns
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_table_get_columns()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_avail_arrays
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_avail_arrays()
{
// TODO: deep debug why
// For some reason it fails under current jenkins
if (getenv('CI') === 'jenkins') {
Method test_where_or
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_where_or()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_avail_arrays
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_avail_arrays()
{
// TODO: deep debug why
// For some reason it fails under current jenkins
if (getenv('CI') === 'jenkins') {
Method test_15
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_15()
{
conf([
'key1' => 'val1',
'key2::sub1' => 'val21',
Method write_user_index_php
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function write_user_index_php($rewrite_enabled = true)
{
$index_file_content = '<?php
$dev_settings = dirname(__DIR__).\'/.dev/override.php\';
if (file_exists($dev_settings)) {
Method _do_compress_php_file
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _do_compress_php_file($file_to_open = '', $file_to_save = '')
{
$source = file_get_contents($file_to_open);
// Removes comments
foreach ((array) token_get_all($source) as $token) {
Method test_25
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_25()
{
debug([
'key1' => 'val1',
'key2::sub1' => 'val21',
Method navbar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function navbar($data = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
$items = [];
$brand = '';