Showing 728 of 865 total issues
Method _smtp_connect
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _smtp_connect()
{
if (is_resource($this->_smtp_connect))
{
return TRUE;
Method _parse_request_uri
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _parse_request_uri()
{
if ( ! isset($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME']))
{
return '';
Method remove_package_path
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function remove_package_path($path = '')
{
$config =& $this->_ci_get_component('config');
if ($path === '')
Method image_reproportion
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function image_reproportion()
{
if (($this->width === 0 && $this->height === 0) OR $this->orig_width === 0 OR $this->orig_height === 0
OR ( ! ctype_digit((string) $this->width) && ! ctype_digit((string) $this->height))
OR ! ctype_digit((string) $this->orig_width) OR ! ctype_digit((string) $this->orig_height))
Method get_image_properties
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_image_properties($path = '', $return = FALSE)
{
// For now we require GD but we should
// find a way to determine this using IM or NetPBM
Method process
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process($url, $data)
{
$target = parse_url($url);
// Open the socket
Method decrypt
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function decrypt($data, array $params = NULL)
{
if (($params = $this->_get_params($params)) === FALSE)
{
return FALSE;
Method send
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send($auto_clear = TRUE)
{
if ( ! isset($this->_headers['From']))
{
$this->_set_error_message('lang:email_no_from');
Method insert_batch
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function insert_batch($table, $set = NULL, $escape = NULL, $batch_size = 100)
{
if ($set === NULL)
{
if (empty($this->qb_set))
Method anchor_popup
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function anchor_popup($uri = '', $title = '', $attributes = FALSE)
{
$title = (string) $title;
$site_url = preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri);
Method word_censor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function word_censor($str, $censored, $replacement = '')
{
if ( ! is_array($censored))
{
return $str;
Method set_insert_batch
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set_insert_batch($key, $value = '', $escape = NULL)
{
$key = $this->_object_to_array_batch($key);
if ( ! is_array($key))
Method delete_cache
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete_cache($uri = '')
{
$CI =& get_instance();
$cache_path = $CI->config->item('cache_path');
if ($cache_path === '')
Method _parse_routes
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _parse_routes()
{
// Turn the segment array into a URI string
$uri = implode('/', $this->uri->segments);
Method show_php_error
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_php_error($severity, $message, $filepath, $line)
{
$templates_path = config_item('error_views_path');
if (empty($templates_path))
{
Method write
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function write($session_id, $session_data)
{
if ( ! isset($this->_memcached, $this->_lock_key))
{
return $this->_failure;
Method mark_as_temp
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mark_as_temp($key, $ttl = 300)
{
$ttl += time();
if (is_array($key))
Method entities_to_ascii
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function entities_to_ascii($str, $all = TRUE)
{
if (preg_match_all('/\&#(\d+)\;/', $str, $matches))
{
for ($i = 0, $s = count($matches[0]); $i < $s; $i++)
Method _limit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _limit($sql)
{
// As of SQL Server 2012 (11.0.*) OFFSET is supported
if (version_compare($this->version(), '11', '>='))
{
Method _limit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _limit($sql)
{
// As of SQL Server 2012 (11.0.*) OFFSET is supported
if (version_compare($this->version(), '11', '>='))
{