From 893204ef4a286a77289eeafda7291f95789aea42 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 19 May 2016 10:05:53 +0200 Subject: Fix broken exception naming --- lib/private/DB/Connection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 7904fab0726..7cdc13a7c6d 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -33,7 +33,7 @@ use Doctrine\Common\EventManager; use OC\DB\QueryBuilder\QueryBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; -use OCP\PreconditionNotMetException; +use OCP\PreConditionNotMetException; class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { /** @@ -262,7 +262,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { * @param array $updatePreconditionValues ensure values match preconditions (column name => value) * @return int number of new rows * @throws \Doctrine\DBAL\DBALException - * @throws PreconditionNotMetException + * @throws PreConditionNotMetException */ public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []) { try { @@ -294,7 +294,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { $affected = $updateQb->execute(); if ($affected === 0 && !empty($updatePreconditionValues)) { - throw new PreconditionNotMetException(); + throw new PreConditionNotMetException(); } return 0; -- cgit v1.2.3