code style

This commit is contained in:
Robin Appelman 2021-11-02 15:40:54 +01:00
commit 306ec135c8
3 changed files with 45 additions and 30 deletions

View file

@ -38,9 +38,13 @@ class NativeState {
/** @var bool */
protected $connected = false;
// sync the garbage collection cycle
// __deconstruct() of KerberosAuth should not called too soon
protected $auth;
/**
* sync the garbage collection cycle
* __deconstruct() of KerberosAuth should not called too soon
*
* @var IAuth|null $auth
*/
protected $auth = null;
// see error.h
const EXCEPTION_MAP = [
@ -111,12 +115,12 @@ class NativeState {
}
$auth->setExtraSmbClientOptions($this->state);
/** @var bool $result */
// sync the garbage collection cycle
// __deconstruct() of KerberosAuth should not called too soon
// __deconstruct() of KerberosAuth should not caled too soon
$this->auth = $auth;
/** @var bool $result */
$result = @smbclient_state_init($this->state, $auth->getWorkgroup(), $auth->getUsername(), $auth->getPassword());
$this->testResult($result, '');