mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-07 00:46:59 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Code refactoring
This commit is contained in:
@@ -65,7 +65,7 @@ final class QueryAssignment
|
||||
public function setFields(array $fields, array $values)
|
||||
{
|
||||
$this->fields = array_map(function ($value) {
|
||||
return strpos($value, '=') === false ? $value . ' = ?' : $value;
|
||||
return strpos($value, '=') === false ? "$value = ?" : $value;
|
||||
}, $fields);
|
||||
|
||||
$this->values = array_merge($this->values, $values);
|
||||
|
||||
Reference in New Issue
Block a user