From 2b4154a91b7348c79164dc8b88f30d0c2135e508 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Tue, 18 Mar 2014 00:35:25 +0100 Subject: [PATCH] Scrutinizer Auto-Fixes This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13 Enabled analysis tools: - PHP Analyzer - PHP Copy/Paste Detector - PHP PDepend --- classes/db_pdo.php | 2 +- classes/query_builder.php | 2 +- drivers/firebird/firebird_driver.php | 8 ++++---- drivers/firebird/firebird_result.php | 2 +- drivers/sqlite/sqlite_driver.php | 2 +- drivers/sqlite/sqlite_sql.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/classes/db_pdo.php b/classes/db_pdo.php index 6119ccb..6175836 100644 --- a/classes/db_pdo.php +++ b/classes/db_pdo.php @@ -82,7 +82,7 @@ abstract class DB_PDO extends PDO { * * @param string $sql * @param array $data - * @return mixed PDOStatement / FALSE + * @return PDOStatement PDOStatement / FALSE * @throws InvalidArgumentException */ public function prepare_query($sql, $data) diff --git a/classes/query_builder.php b/classes/query_builder.php index 4e1fba2..de620e9 100644 --- a/classes/query_builder.php +++ b/classes/query_builder.php @@ -856,7 +856,7 @@ class Query_Builder implements iQuery_Builder { * * @param int $limit * @param int $offset - * @return string + * @return Query_Builder */ public function limit($limit, $offset=FALSE) { diff --git a/drivers/firebird/firebird_driver.php b/drivers/firebird/firebird_driver.php index 866ead7..8339489 100644 --- a/drivers/firebird/firebird_driver.php +++ b/drivers/firebird/firebird_driver.php @@ -108,7 +108,7 @@ class Firebird extends DB_PDO { * Wrapper public function to better match PDO * * @param string $sql - * @return $this + * @return Firebird_Result * @throws PDOException */ public function query($sql) @@ -135,7 +135,7 @@ class Firebird extends DB_PDO { * * @param string $query * @param array $options - * @return $this + * @return Firebird_Result * @throws PDOException */ public function prepare($query, $options=NULL) @@ -155,7 +155,7 @@ class Firebird extends DB_PDO { /** * Start a database transaction * - * @return bool + * @return boolean|null */ public function beginTransaction() { @@ -193,7 +193,7 @@ class Firebird extends DB_PDO { * * @param string $sql * @param array $args - * @return resource + * @return Firebird_Result */ public function prepare_execute($sql, $args) { diff --git a/drivers/firebird/firebird_result.php b/drivers/firebird/firebird_result.php index 3a0bdbe..8f344bb 100644 --- a/drivers/firebird/firebird_result.php +++ b/drivers/firebird/firebird_result.php @@ -126,7 +126,7 @@ class Firebird_Result extends PDOStatement { * Run a prepared statement query * * @param array $args - * @return bool + * @return Firebird_Result */ public function execute($args = NULL) { diff --git a/drivers/sqlite/sqlite_driver.php b/drivers/sqlite/sqlite_driver.php index 34a7c86..b16b592 100644 --- a/drivers/sqlite/sqlite_driver.php +++ b/drivers/sqlite/sqlite_driver.php @@ -80,7 +80,7 @@ class SQLite extends DB_PDO { /** * List system tables for the current database * - * @return array + * @return string[] */ public function get_system_tables() { diff --git a/drivers/sqlite/sqlite_sql.php b/drivers/sqlite/sqlite_sql.php index f68f42a..2db729a 100644 --- a/drivers/sqlite/sqlite_sql.php +++ b/drivers/sqlite/sqlite_sql.php @@ -172,7 +172,7 @@ SQL; /** * SQL to show list of field types * - * @return array + * @return string[] */ public function type_list() {