summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Adapter.php
diff options
context:
space:
mode:
authorOle Ostergaard <ole.c.ostergaard@gmail.com>2019-02-26 14:08:55 +0100
committerOle Ostergaard <ole.c.ostergaard@gmail.com>2019-03-21 11:42:00 +0100
commit0d778fcc4e489f541271fa25087777a9253d129e (patch)
tree158dc4b47060c79394580c3365dd778d55ffed6b /lib/private/DB/Adapter.php
parent63350423d48b1d4fef842666ae3b7627396ca8d1 (diff)
downloadnextcloud-server-0d778fcc4e489f541271fa25087777a9253d129e.tar.gz
nextcloud-server-0d778fcc4e489f541271fa25087777a9253d129e.zip
Code cleanup.
Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
Diffstat (limited to 'lib/private/DB/Adapter.php')
-rw-r--r--lib/private/DB/Adapter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/Adapter.php b/lib/private/DB/Adapter.php
index a9c20c735e0..0df2e0769f7 100644
--- a/lib/private/DB/Adapter.php
+++ b/lib/private/DB/Adapter.php
@@ -130,11 +130,11 @@ class Adapter {
/*
* @suppress SqlInjectionChecker
*/
- public function insertIgnoreConflict($table, $input) : int {
+ public function insertIgnoreConflict(string $table,array $values) : int {
try {
$builder = $this->conn->getQueryBuilder();
$builder->insert($table);
- foreach($input as $key => $value) {
+ foreach($values as $key => $value) {
$builder->setValue($key, $builder->createNamedParameter($value));
}
return $builder->execute();