Skip to content
Snippets Groups Projects
Unverified Commit cf388e06 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Phpdoc + excess variable declaration

parent 7ab350ec
No related branches found
No related tags found
No related merge requests found
...@@ -262,6 +262,8 @@ class SimpleSAML_Auth_LDAP ...@@ -262,6 +262,8 @@ class SimpleSAML_Auth_LDAP
* @param bool $allowZeroHits * @param bool $allowZeroHits
* Determines if the method will throw an exception if no hits are found. * Determines if the method will throw an exception if no hits are found.
* Defaults to FALSE. * Defaults to FALSE.
* @param string|null $searchFilter
* Additional searchFilter to be added to the (attribute=value) filter
* @return string * @return string
* The DN of the matching element, if found. If no element was found and * The DN of the matching element, if found. If no element was found and
* $allowZeroHits is set to FALSE, an exception will be thrown; otherwise * $allowZeroHits is set to FALSE, an exception will be thrown; otherwise
...@@ -277,7 +279,6 @@ class SimpleSAML_Auth_LDAP ...@@ -277,7 +279,6 @@ class SimpleSAML_Auth_LDAP
{ {
// Traverse all search bases, returning DN if found // Traverse all search bases, returning DN if found
$bases = SimpleSAML\Utils\Arrays::arrayize($base); $bases = SimpleSAML\Utils\Arrays::arrayize($base);
$result = null;
foreach ($bases as $current) { foreach ($bases as $current) {
try { try {
// Single base search // Single base search
...@@ -300,7 +301,7 @@ class SimpleSAML_Auth_LDAP ...@@ -300,7 +301,7 @@ class SimpleSAML_Auth_LDAP
} else { } else {
// Zero hits not allowed // Zero hits not allowed
throw $this->makeException('Library - LDAP searchfordn(): LDAP search returned zero entries for filter \'(' . throw $this->makeException('Library - LDAP searchfordn(): LDAP search returned zero entries for filter \'(' .
$attribute . ' = ' . $value . ')\' on base(s) \'(' . join(' & ', $bases) . ')\'', 2); join(' | ', $attribute) . ' = ' . $value . ')\' on base(s) \'(' . join(' & ', $bases) . ')\'', 2);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment