@@ -429,7 +429,7 @@ |
||
429 | 429 | * LDAP_MODIFY_BATCH_REMOVE_ALL - All values are removed from the attribute named by attrib. |
430 | 430 | * LDAP_MODIFY_BATCH_REPLACE - All current values are replaced by new one. |
431 | 431 | * @param string $dn |
432 | - * @param array $values array associative with three keys: "attrib", "modtype" and "values". |
|
432 | + * @param string[] $values array associative with three keys: "attrib", "modtype" and "values". |
|
433 | 433 | * ```php |
434 | 434 | * [ |
435 | 435 | * "attrib" => "attribute", |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | protected static function encodePassword($password) |
142 | 142 | { |
143 | - $password = "\"" . $password . "\""; |
|
143 | + $password = "\"".$password."\""; |
|
144 | 144 | $adpassword = mb_convert_encoding($password, "UTF-16LE", "UTF-8"); |
145 | 145 | return $adpassword; |
146 | 146 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | public function open($anonymous = false) |
187 | 187 | { |
188 | - $token = 'Opening LDAP connection: ' . LdapHelper::recursive_implode($this->dc, ' or '); |
|
188 | + $token = 'Opening LDAP connection: '.LdapHelper::recursive_implode($this->dc, ' or '); |
|
189 | 189 | Yii::info($token, __METHOD__); |
190 | 190 | Yii::beginProfile($token, __METHOD__); |
191 | 191 | // Connect to the LDAP server. |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | protected function connect($hostname = [], $port = '389') |
213 | 213 | { |
214 | 214 | if (is_array($hostname)) { |
215 | - $hostname = self::PROTOCOL . implode(' ' . self::PROTOCOL, $hostname); |
|
215 | + $hostname = self::PROTOCOL.implode(' '.self::PROTOCOL, $hostname); |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | $this->close(); |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $this->open(); |
332 | 332 | $results = []; |
333 | 333 | $cookie = ''; |
334 | - $token = $function . ' - params: ' . LdapHelper::recursive_implode($params, ';'); |
|
334 | + $token = $function.' - params: '.LdapHelper::recursive_implode($params, ';'); |
|
335 | 335 | |
336 | 336 | Yii::info($token, 'chrmorandi\ldap\Connection::query'); |
337 | 337 |