mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
chore: Minor code changes.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -350,9 +350,9 @@ interface ConfigDataInterface
|
||||
public function setCheckUpdates(?bool $checkUpdates): ConfigDataInterface;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function getConfigHash();
|
||||
public function getConfigHash(): ?string;
|
||||
|
||||
/**
|
||||
* Generates a hash from current config options
|
||||
@@ -891,9 +891,9 @@ interface ConfigDataInterface
|
||||
public function jsonSerialize();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function getConfigSaver();
|
||||
public function getConfigSaver(): ?string;
|
||||
|
||||
/**
|
||||
* @param string|null $configSaver
|
||||
|
||||
@@ -86,7 +86,7 @@ class DatabaseUtil
|
||||
{
|
||||
try {
|
||||
self::getConnection()
|
||||
->exec(sprintf('DROP USER \'%s\'@\'%s\'', $user, $host));
|
||||
->exec(sprintf('DROP USER IF EXISTS \'%s\'@\'%s\'', $user, $host));
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user