mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Fix small psalm errors in FTP and LDAP connections
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
d4229f9f59
commit
72a0da6d4e
2 changed files with 2 additions and 6 deletions
|
|
@ -50,10 +50,7 @@ class FtpConnection {
|
|||
}
|
||||
|
||||
public function __destruct() {
|
||||
if ($this->connection) {
|
||||
ftp_close($this->connection);
|
||||
}
|
||||
$this->connection = null;
|
||||
ftp_close($this->connection);
|
||||
}
|
||||
|
||||
public function setUtf8Mode(): bool {
|
||||
|
|
|
|||
|
|
@ -446,8 +446,7 @@ class Connection extends LDAPUtility {
|
|||
|
||||
private function doCriticalValidation(): bool {
|
||||
$configurationOK = true;
|
||||
$errorStr = 'Configuration Error (prefix '.
|
||||
(string)$this->configPrefix .'): ';
|
||||
$errorStr = 'Configuration Error (prefix ' . $this->configPrefix . '): ';
|
||||
|
||||
//options that shall not be empty
|
||||
$options = ['ldapHost', 'ldapUserDisplayName',
|
||||
|
|
|
|||
Loading…
Reference in a new issue