Some scrutinizer fixes

This commit is contained in:
Timothy Warren 2015-07-30 13:13:12 -04:00
parent d89f34b177
commit 8669fcc4be
7 changed files with 12 additions and 15 deletions

View File

@ -4,11 +4,10 @@
stopOnFailure="false" stopOnFailure="false"
bootstrap="tests/bootstrap.php"> bootstrap="tests/bootstrap.php">
<filter> <filter>
<blacklist> <whitelist>
<directory suffix=".php">coverage</directory> <directory suffix=".php">src/*</directory>
<directory suffix=".php">docs</directory> <file>autoload.php</file>
<directory suffix=".php">tests</directory> </whitelist>
</blacklist>
</filter> </filter>
<testsuites> <testsuites>
<testsuite name="CoreTests"> <testsuite name="CoreTests">

View File

@ -533,7 +533,7 @@ abstract class Abstract_Driver extends \PDO implements Driver_Interface {
* *
* @param string $table * @param string $table
* @param array $data * @param array $data
* @return array * @return null|array<string|array|null>
*/ */
public function insert_batch($table, $data=array()) public function insert_batch($table, $data=array())
{ {

View File

@ -571,7 +571,7 @@ abstract class Abstract_Query_Builder {
* *
* @param string $type * @param string $type
* @param string $table * @param string $table
* @return $string * @return string
*/ */
protected function _compile($type='', $table='') protected function _compile($type='', $table='')
{ {

View File

@ -194,16 +194,16 @@ interface Driver_Interface {
/** /**
* Surrounds the string with the databases identifier escape characters * Surrounds the string with the databases identifier escape characters
* *
* @param mixed $ident * @param string|array $ident
* @return string * @return string|array
*/ */
public function quote_ident($ident); public function quote_ident($ident);
/** /**
* Quote database table name, and set prefix * Quote database table name, and set prefix
* *
* @param string $table * @param string|array $table
* @return string * @return string|array
*/ */
public function quote_table($table); public function quote_table($table);

View File

@ -76,7 +76,6 @@ class Driver extends \Query\Abstract_Driver {
* @param string $pass * @param string $pass
* @param array $options * @param array $options
* @throws \PDOException * @throws \PDOException
* @return void
*/ */
public function __construct($dbpath, $user='SYSDBA', $pass='masterkey', array $options = array()) public function __construct($dbpath, $user='SYSDBA', $pass='masterkey', array $options = array())
{ {

View File

@ -48,7 +48,7 @@ class Result extends \PDOStatement {
/** /**
* Reference to the db drive to de-duplicate error functions * Reference to the db drive to de-duplicate error functions
* *
* @var \Query\Driver\Firebird * @var \Query\Drivers\Firebird\Driver
*/ */
private $db; private $db;
@ -58,7 +58,6 @@ class Result extends \PDOStatement {
* *
* @param resource $link * @param resource $link
* @param Driver|null $db * @param Driver|null $db
* @return void
*/ */
public function __construct($link, Driver $db = NULL) public function __construct($link, Driver $db = NULL)
{ {

View File

@ -43,7 +43,7 @@ class Driver extends \Query\Abstract_Driver {
parent::__construct($dsn, $username, $password, $options); parent::__construct($dsn, $username, $password, $options);
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* Create sql for batch insert * Create sql for batch insert