Fix coding style

This commit is contained in:
Matthias Jentsch 2014-07-03 16:20:45 +02:00
parent 86ad5f738b
commit 57f3023ec4
2 changed files with 14 additions and 10 deletions

View File

@ -93,18 +93,22 @@ class LdapUserBackend extends UserBackend
$result = $q->fetchRow();
if (! isset($result)) {
throw new AuthenticationException(
sprintf('No objects with objectClass="%s" in DN="%s" found.',
sprintf(
'No objects with objectClass="%s" in DN="%s" found.',
$this->userClass,
$this->conn->getDN()
));
)
);
}
if (! isset($result->{$this->userNameAttribute})) {
throw new AuthenticationException(
sprintf('UserNameAttribute "%s" not existing in objectClass="%s"',
sprintf(
'UserNameAttribute "%s" not existing in objectClass="%s"',
$this->userNameAttribute,
$this->userClass
));
)
);
}
}