e107_handlers/e_db_pdo_class.php
Consider simplifying this complex logical expression. Open
Open
if($table && !$where && is_bool($fields))
{
// table is the query, fields used for multi
if($fields)
{
Avoid too many return
statements within this method. Open
Open
return e107::getParser()->toNumber($fieldValue);
Avoid too many return
statements within this method. Open
Open
return "'".$this->escape($fieldValue, false)."'";
Avoid too many return
statements within this method. Open
Open
return e107::getParser()->toDB($fieldValue);
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return "'".e107::getParser()->toDB($fieldValue)."'";
Avoid too many return
statements within this method. Open
Open
return array();
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
if($fieldValue == '') { return "''"; }
Avoid too many return
statements within this method. Open
Open
return $this->rowCount();
Avoid too many return
statements within this method. Open
Open
return ($fieldValue && $fieldValue !== 'NULL' ? "'".$this->escape($fieldValue, false)."'" : 'NULL');
Avoid too many return
statements within this method. Open
Open
return "'". (string) $fieldValue."'";
Avoid too many return
statements within this method. Open
Open
if($fieldValue == '') { return ''; }
Avoid too many return
statements within this method. Open
Open
return array();
Avoid too many return
statements within this method. Open
Open
return array();
Avoid too many return
statements within this method. Open
Open
return "'".e107::serialize($fieldValue, true)."'";
Avoid too many return
statements within this method. Open
Open
return array();
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return $fieldValue;
Avoid too many return
statements within this method. Open
Open
return $this->fetch();
Avoid too many return
statements within this method. Open
Open
return false;
Assigning string
to property but \e_db_pdo->mySQLlastErrNum
is int
Open
Open
$this->mySQLlastErrNum = $e->getCode();
- Exclude checks
Argument 2 (tStart)
is string
but \e107_traffic::Bump()
takes int
defined at /code/e107_handlers/traffic_class.php:90
Open
Open
$this->traffic->Bump('db_Query', $b, $e);
- Exclude checks
Argument 2 (tStart)
is string
but \e107_traffic::Bump()
takes int
defined at /code/e107_handlers/traffic_class.php:90
Open
Open
$this->traffic->Bump('db_Fetch', $b);
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query('SELECT '.$fields.' FROM '.$this->mySQLPrefix.$table.' WHERE '.$arg, NULL, 'db_Select', $debug, $log_type, $log_remark))
- Exclude checks
Returning type null
but dbError()
is declared to return string
Open
Open
return null;
- Exclude checks
Assigning string
to property but \e_db_pdo->mySQLlastErrNum
is int
Open
Open
$this->mySQLlastErrNum = $ex->getCode();
- Exclude checks
Returning type false
but count()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if (($this->mySQLresult = $this->db_Query($query, NULL, 'db_Select_gen', $debug, $log_type, $log_remark)) === false)
- Exclude checks
Reference to constant NONE
from undeclared class \Ifsnop\Mysqldump\Mysqldump
Open
Open
'compress' => !empty($options['gzip']) ? Ifsnop\Mysqldump\Mysqldump::GZIP : Ifsnop\Mysqldump\Mysqldump::NONE,
- Exclude checks
Returning type null
but _getPDOValue()
is declared to return int|string
Open
Open
) ? $fieldValue : null;
- Exclude checks
Returning type ?\PDOStatement|?bool|?int
but copyTable()
is declared to return bool|int
Open
Open
return $result;
- Exclude checks
Assigning array{}
to property but \e_db_pdo->pdoBind
is false
Open
Open
$this->pdoBind = array();
- Exclude checks
Returning type false
but count()
is declared to return int
Open
Open
return false;
- Exclude checks
Assigning null
to property but \e_db_pdo->mySQLaccess
is \PDO
Open
Open
$this->mySQLaccess = null; // correct way to do it when using shared links.
- Exclude checks
Argument 2 (fields)
is ?'*'|?string
but \e_db_pdo::select()
takes string
defined at /code/e107_handlers/e_db_pdo_class.php:661
Open
Open
if($select && !$this->select($table, $fields, $where, $noWhere, $debug))
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query('SELECT '.$fields.' FROM '.$this->mySQLPrefix.$table, NULL, 'db_Select', $debug, $log_type, $log_remark))
- Exclude checks
Argument 2 (haystack)
is string
but \in_array()
takes array
Open
Open
if (strtoupper($fields) == 'ALL' || in_array ($key, $fields))
- Exclude checks
Argument 3 (tFinish)
is string
but \e107_traffic::Bump()
takes int
defined at /code/e107_handlers/traffic_class.php:90
Open
Open
$this->traffic->Bump('db_Query', $b, $e);
- Exclude checks
Argument 2 (value)
is int|string
but \e_db_pdo::_getPDOType()
takes null
defined at /code/e107_handlers/e_db_pdo_class.php:1284
Open
Open
$this->pdoBind[$fn] = array('value'=>$this->_getPDOValue($ftype,$fv), 'type'=> $this->_getPDOType($ftype,$this->_getPDOValue($ftype,$fv)));
- Exclude checks
Call to method start
from undeclared class \Ifsnop\Mysqldump\Mysqldump
Open
Open
$dump->start($backupFile);
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
$result = $this->mySQLresult = $this->db_Query($query, NULL, 'db_Update', $debug, $log_type, $log_remark);
- Exclude checks
When fetching an array index from a value of type array|true,
found an array index of type true,
but expected the index to be of type int|string
Open
Open
$list[$row[$ordermode]][$key] = $value;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query($query, null, 'db_Select', $debug, $log_type, $log_remark))
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
$this->mySQLresult = $this->db_Query($query, NULL, 'db_Insert', $debug, $log_type, $log_remark);
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string fields to retrieve':
after string,
did not see an element name (will guess based on comment order) Open
Open
* @param string fields to retrieve
- Exclude checks
Expected @param annotation for order
to be before the @param annotation for where
Open
Open
* @param string $where (Optional ) where condition.
- Exclude checks
Reference to constant GZIP
from undeclared class \Ifsnop\Mysqldump\Mysqldump
Open
Open
'compress' => !empty($options['gzip']) ? Ifsnop\Mysqldump\Mysqldump::GZIP : Ifsnop\Mysqldump\Mysqldump::NONE,
- Exclude checks
Assigning string
to property but \e_db_pdo->mySQLlastErrNum
is int
Open
Open
$this->mySQLlastErrNum = $ex->getCode();
- Exclude checks
Assigning int
to property but \e_db_pdo->total_results
is false
Open
Open
$this->total_results = intval($rc);
- Exclude checks
Returning type false
but select()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($result = $this->mySQLresult = $this->db_Query('DELETE FROM '.$this->mySQLPrefix.$table, NULL, 'db_Delete', $debug, $log_type, $log_remark))
- Exclude checks
Call to method __construct
from undeclared class \Ifsnop\Mysqldump\Mysqldump
Open
Open
$dump = new Ifsnop\Mysqldump\Mysqldump("mysql:host={$this->mySQLserver};port={$this->mySQLport};dbname={$this->mySQLdefaultdb}", $this->mySQLuser, $this->mySQLpassword, $dumpSettings);
- Exclude checks
Assigning array<string>>|array<string>></string></string>
to property but \e_db_pdo->pdoBind
is false
Open
Open
$this->pdoBind[$fn] = array('value'=>$this->_getPDOValue($ftype,$fv), 'type'=> $this->_getPDOType($ftype,$this->_getPDOValue($ftype,$fv)));
- Exclude checks
Returning type false
but update()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query($query, NULL, 'db_Count', $debug, $log_type, $log_remark))
- Exclude checks
Returning type false
but delete()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($result = $this->mySQLresult = $this->db_Query('DELETE FROM '.$this->mySQLPrefix.$table.' WHERE '.$arg, NULL, 'db_Delete', $debug, $log_type, $log_remark))
- Exclude checks
Returning type false
but select()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query($query, NULL, 'db_Count', $debug, $log_type, $log_remark))
- Exclude checks
Default value for object
$mode
can't be string
Open
Open
public function tables($mode='all')
- Exclude checks
Reference to undeclared property \e_db_pdo->mySQLLastErrNum
(Did you mean expr->mySQLlastErrNum) Open
Open
$this->mySQLLastErrNum = $ex->getCode();
- Exclude checks
Argument 2 (fields)
is ?'*'|?string
but \e_db_pdo::select()
takes string
defined at /code/e107_handlers/e_db_pdo_class.php:661
Open
Open
if($select && !$this->select($table, $fields, $where, $noWhere, $debug))
- Exclude checks
Argument 2 (fields)
is ?'*'|?string
but \e_db_pdo::select()
takes string
defined at /code/e107_handlers/e_db_pdo_class.php:661
Open
Open
if($select && !$this->select($table, $fields, $where, $noWhere, $debug))
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
if ($this->mySQLresult = $this->db_Query('SELECT '.$fields.' FROM '.$this->mySQLPrefix.$table.' '.$arg, NULL, 'db_Select', $debug, $log_type, $log_remark))
- Exclude checks
Returning type false
but select()
is declared to return int
Open
Open
return false;
- Exclude checks
Suspicious array access to false
Open
Open
$this->pdoBind[$fn] = array('value'=>$this->_getPDOValue($ftype,$fv), 'type'=> $this->_getPDOType($ftype,$this->_getPDOValue($ftype,$fv)));
- Exclude checks
Argument 2 (value)
is int|string
but \e_db_pdo::_getPDOType()
takes null
defined at /code/e107_handlers/e_db_pdo_class.php:1284
Open
Open
$bind[$fk] = array('value'=>$this->_getPDOValue($fieldType,$fv), 'type'=> $this->_getPDOType($fieldType,$this->_getPDOValue($fieldType,$fv)));
- Exclude checks
Returning type false
but update()
is declared to return int
Open
Open
if ($result === -1) { return false; } // Error return from mysql_affected_rows
- Exclude checks
Argument 2 (rli)
is null
but \e_db_pdo::db_Query()
takes object
defined at /code/e107_handlers/e_db_pdo_class.php:329
Open
Open
$this->db_Query("ALTER TABLE ".$this->mySQLPrefix.$table." AUTO_INCREMENT=1", NULL, 'db_Insert', $debug, $log_type, $log_remark);
- Exclude checks
Assigning array<string>[]|array<string>[]</string></string>
to property but \e_db_pdo->pdoBind
is false
Open
Open
$this->pdoBind[$fn] = array('value'=>$this->_getPDOValue($ftype,$fv), 'type'=> $this->_getPDOType($ftype,$this->_getPDOValue($ftype,$fv)));
- Exclude checks
Returning type false
but delete()
is declared to return int
Open
Open
return false;
- Exclude checks
Returning type false
but select()
is declared to return int
Open
Open
return false;
- Exclude checks
Argument 2 (fields)
is true
but \e_db_pdo::retrieve()
takes string
defined at /code/e107_handlers/e_db_pdo_class.php:525
Open
Open
$result = $this->retrieve("SHOW INDEXES FROM #".$table, true);
- Exclude checks
Reference to undeclared property \e_db_pdo->mysqlLastErrText
(Did you mean expr->mySQLlastErrText) Open
Open
$this->mysqlLastErrText = "copyRow \$fields list was empty";
- Exclude checks
Class \db
defined at /code/e107_handlers/e_db_pdo_class.php:2823
was previously defined as Class \db
at /code/e107_handlers/mysql_class.php:2712
Open
Open
class db extends e_db_pdo
- Exclude checks
Reference to undeclared property \e_db_pdo->mysqlLastErrText
(Did you mean expr->mySQLlastErrText) Open
Open
$this->mysqlLastErrText = 'mysqldump-php error: ' .$e->getMessage();
- Exclude checks