summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
commit1e321406ee2d973e937637ab090cbd83a6eb40cf (patch)
tree78eca74636ab68b3f52ebac9c013c55a1526bd43 /lib/private/db.php
parent635b8f6b83ae37ac262c5f7a0bd40697824b9b67 (diff)
parentc6f4f85e27a10459422ab9789c894d13f0cd34c7 (diff)
downloadnextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.tar.gz
nextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.zip
Merge pull request #7114 from owncloud/scrutinizer_documentation_patches
polish documentation based on scrutinizer patches
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 723c1ee07a3..23e9593a579 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -51,7 +51,7 @@ class OC_DB {
/**
* @brief connects to the database
- * @return bool true if connection can be established or false on error
+ * @return boolean|null true if connection can be established or false on error
*
* Connects to the database as specified in config.php
*/
@@ -196,7 +196,7 @@ class OC_DB {
* @param int $offset
* @param bool $isManipulation
* @throws DatabaseException
- * @return \Doctrine\DBAL\Statement prepared SQL query
+ * @return OC_DB_StatementWrapper prepared SQL query
*
* SQL query via Doctrine prepare(), needs to be execute()'d!
*/
@@ -298,7 +298,7 @@ class OC_DB {
/**
* @brief gets last value of autoincrement
* @param string $table The optional table name (will replace *PREFIX*) and add sequence suffix
- * @return int id
+ * @return string id
* @throws DatabaseException
*
* \Doctrine\DBAL\Connection lastInsertId
@@ -315,7 +315,7 @@ class OC_DB {
* @brief Insert a row if a matching row doesn't exists.
* @param string $table. The table to insert into in the form '*PREFIX*tableName'
* @param array $input. An array of fieldname/value pairs
- * @return int number of updated rows
+ * @return boolean number of updated rows
*/
public static function insertIfNotExist($table, $input) {
self::connect();
@@ -368,7 +368,7 @@ class OC_DB {
* @brief update the database schema
* @param string $file file to read structure from
* @throws Exception
- * @return bool
+ * @return string|boolean
*/
public static function updateDbFromStructure($file) {
$schemaManager = self::getMDB2SchemaManager();