fix: Fix small psalm errors in FTP and LDAP connections

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44658/head
Côme Chilliet 2 years ago committed by Côme Chilliet
parent d4229f9f59
commit 72a0da6d4e
  1. 5
      apps/files_external/lib/Lib/Storage/FtpConnection.php
  2. 3
      apps/user_ldap/lib/Connection.php

@ -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…
Cancel
Save