diff options
author | Ole Ostergaard <ole.c.ostergaard@gmail.com> | 2019-02-26 14:08:55 +0100 |
---|---|---|
committer | Ole Ostergaard <ole.c.ostergaard@gmail.com> | 2019-03-21 11:42:00 +0100 |
commit | 0d778fcc4e489f541271fa25087777a9253d129e (patch) | |
tree | 158dc4b47060c79394580c3365dd778d55ffed6b /lib/private/DB/Adapter.php | |
parent | 63350423d48b1d4fef842666ae3b7627396ca8d1 (diff) | |
download | nextcloud-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.php | 4 |
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(); |