Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
}
public function __destruct() {
- if ($this->connection) {
- ftp_close($this->connection);
- }
- $this->connection = null;
+ ftp_close($this->connection);
}
public function setUtf8Mode(): bool {
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',