Showing 728 of 865 total issues
Method receive
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function receive()
{
foreach (array('url', 'title', 'blog_name', 'excerpt') as $val)
{
if (empty($_POST[$val]))
Method add_field
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add_field($field)
{
if (is_string($field))
{
if ($field === 'id')
Method _alter_table
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _alter_table($alter_type, $table, $field)
{
if ($alter_type === 'DROP')
{
return parent::_alter_table($alter_type, $table, $field);
Method field_data
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function field_data($table)
{
$sql = 'SELECT "rfields"."RDB$FIELD_NAME" AS "name",
CASE "fields"."RDB$FIELD_TYPE"
WHEN 7 THEN \'SMALLINT\'
Method set_update_batch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set_update_batch($key, $index = '', $escape = NULL)
{
$key = $this->_object_to_array_batch($key);
if ( ! is_array($key))
Method _limit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _limit($sql)
{
$limit = $this->qb_offset + $this->qb_limit;
// As of SQL Server 2005 (9.0.*) ROW_NUMBER() is supported,
Method initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initialize()
{
/* If an established connection is available, then there's
* no need to connect and select the database.
*
Method _alter_table
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _alter_table($alter_type, $table, $field)
{
if ($alter_type === 'DROP')
{
return parent::_alter_table($alter_type, $table, $field);
Method field_data
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function field_data($table)
{
$sql = 'SELECT "rfields"."RDB$FIELD_NAME" AS "name",
CASE "fields"."RDB$FIELD_TYPE"
WHEN 7 THEN \'SMALLINT\'
Method _limit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _limit($sql)
{
$limit = $this->qb_offset + $this->qb_limit;
// As of SQL Server 2005 (9.0.*) ROW_NUMBER() is supported,
Method _alter_table
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _alter_table($alter_type, $table, $field)
{
if ($alter_type === 'DROP')
{
return parent::_alter_table($alter_type, $table, $field);
Method dbforge
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function dbforge($db = NULL, $return = FALSE)
{
$CI =& get_instance();
if ( ! is_object($db) OR ! ($db instanceof CI_DB))
{
Method default_template
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function default_template()
{
return array(
'table_open' => '<table border="0" cellpadding="4" cellspacing="0">',
'heading_row_start' => '<tr>',
Method decode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function decode($array = NULL)
{
$CI =& get_instance();
if (is_array($array))
Method decode_message
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function decode_message($param)
{
$kind = $param->kindOf();
if ($kind === 'scalar')
Method mirror
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mirror($locpath, $rempath)
{
if ( ! $this->_is_conn())
{
return FALSE;
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run($test, $expected = TRUE, $test_name = 'undefined', $notes = '')
{
if ($this->active === FALSE)
{
return FALSE;
Method _reset_data_array
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _reset_data_array(&$data)
{
foreach ($this->_field_data as $field => $row)
{
if ($row['postdata'] !== NULL)
Method xmlrpc_decoder
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function xmlrpc_decoder($xmlrpc_val)
{
$kind = $xmlrpc_val->kindOf();
if ($kind === 'scalar')
Method gc
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function gc($maxlifetime)
{
if ( ! is_dir($this->_config['save_path']) OR ($directory = opendir($this->_config['save_path'])) === FALSE)
{
log_message('debug', "Session: Garbage collector couldn't list files under directory '".$this->_config['save_path']."'.");