Showing 728 of 865 total issues
Method initialize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initialize(array $params)
{
if ( ! empty($params['driver']))
{
if (isset($this->_drivers[$params['driver']]))
Method convert_ascii
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function convert_ascii($str)
{
$count = 1;
$out = '';
$temp = array();
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(&$params)
{
parent::__construct($params);
$CI =& get_instance();
Method _get_field_type
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function _get_field_type($type)
{
static $map;
isset($map) OR $map = array(
MYSQLI_TYPE_DECIMAL => 'decimal',
Method random_string
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function random_string($type = 'alnum', $len = 8)
{
switch ($type)
{
case 'basic':
Method from
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function from($from)
{
foreach ((array) $from as $val)
{
if (strpos($val, ',') !== FALSE)
Method _parse_form_attributes
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _parse_form_attributes($attributes, $default)
{
if (is_array($attributes))
{
foreach ($default as $key => $val)
Method insert_id
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function insert_id()
{
$v = $this->version();
$table = (func_num_args() > 0) ? func_get_arg(0) : NULL;
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(CI_Config $config)
{
$this->config = $config;
// If it's a CLI request, ignore the configuration
Method show_error
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_error($heading, $message, $template = 'error_general', $status_code = 500)
{
$templates_path = config_item('error_views_path');
if (empty($templates_path))
{
Method set_cookie
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function set_cookie($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL, $samesite = NULL)
Method set_cookie
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function set_cookie($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL, $samesite = NULL)
Method format_characters
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function format_characters($str)
{
static $table;
if ( ! isset($table))
Method attach
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function attach($file, $disposition = '', $newname = NULL, $mime = '')
{
if ($mime === '')
{
if (strpos($file, '://') === FALSE && ! file_exists($file))
Method result
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function result($results = array())
{
$CI =& get_instance();
$CI->load->language('unit_test');
Method _cipher_alias
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _cipher_alias(&$cipher)
{
static $dictionary;
if (empty($dictionary))
Method img
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function img($src = '', $index_page = FALSE, $attributes = '')
{
if ( ! is_array($src) )
{
$src = array('src' => $src);
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
$config =& get_config();
isset(self::$func_overload) OR self::$func_overload = ( ! is_php('8.0') && extension_loaded('mbstring') && @ini_get('mbstring.func_overload'));
Method byte_format
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function byte_format($num, $precision = 1)
{
$CI =& get_instance();
$CI->lang->load('number');
Method driver
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function driver($library, $params = NULL, $object_name = NULL)
{
if (is_array($library))
{
foreach ($library as $key => $value)